A Foundational Framework for Child Custody