Planning child custody agreements before divorce