Custodial arrangements are typically decided by a court upon divorce or separation, based on the best interests of the child.