A personality disorder is a long-term, inflexible pattern of inner experience and behavior that deviates from societal expectations, leading to distress or impairment.