; (ii) contracting with a secondary or elementary school or local educational agency; or (iii) employed by a secondary or elementary school or local educational agency; (B) has the legal power to detain, arrest, issue a citation, perform a custodial investigation, or refer a person to a criminal or juvenile court; (C) meets the definition of a law enforcement personnel under State law