It means knowledgeable person, wise, very educated. Learned, illustrated, scholarly. You can also call that a person who can advise on legal or legal matters.