Courts are failing to protect children