New Mexico’s attorney general sued Google on Thursday, saying the tech giant used its educational products to spy on the state’s children and families.

Google collected a trove of students’ personal information, including data on their physical locations, websites they visited, YouTube videos they watched and their voice recordings, Hector Balderas, New Mexico’s attorney general, said in a federal lawsuit.

“The consequences of Google’s tracking cannot be overstated: Children are being monitored by one of the largest data mining companies in the world, at school, at home, on mobile devices, without their knowledge and without the permission of their parents,” the lawsuit said.

Over the last eight years, Google has emerged as the predominant tech brand in American public schools, outpacing rivals like Apple and Microsoft by offering a suite of inexpensive, easy-to-use tools.