Family court rules on parental rights in complex custody case