legally required