legal duties