The legal and physical aspects of child custody