Legal duty

A legal duty is a duty arising by contract or by operation of law.  It is an obligation the breach of which would be a legal wrong.