legally binding custody