legal eagle

 
(also legal beagle)

noun

informal
  • a lawyer, especially one who is keen and astute.