The term that describes the obligation or duty that is enforced by a court of law, it can be a debt and the legal responsibility to carry out what the law asks.
TLD Example: Going to the assistance of the victim of a motor vehicle accident on a busy highway might be the morally correct thing to do, but the law normally does not impose a legal obligation on the average person to do so.