Who has legal custody of the child?