"In loco parentis" means a person who has been treated as a parent by the child and who has formed a meaningful parental relationship with the child for a substantial period of time. 2. "Legal parent" means a biological or adoptive parent whose parental rights have not been terminated.