IDIOMS

legal duty

(law, idiomatic) A duty prescribed by the law, to act or forbear from acting.

Example: I've done my legal duty.