legal duty

Noun

 * 1)  A duty prescribed by the law, to act or forbear from acting.
 * I've done my legal duty.