A duty prescribed by the law, to act or forbear from acting.
legal beagle
A lawyer, specifically one regarded as astute and skilful.