Physical custody refers to the parent with whom the child primarily resides. Legal custody refers to the parent who has the authority to make decisions for the child's welfare, such as healthcare, education, and religion. In some cases, both parents may share joint legal custody, but only one parent may have physical custody. It is important to understand the difference between physical and legal custody when determining custody arrangements in a divorce or separation.