; and (B) in a portable, structured, and machine-readable format. (d) Rule of Construction Nothing in subsection (c) shall be construed to prohibit a social media platform from retaining a record of the termination of an account or profile and the minimum information necessary for the purposes of ensuring compliance with this section. 104. Prohibition on the use of personalized recommendation systems on children or teens (a) In general (1) Prohibition on use of personalized recommendation systems on children or teens Except as provided in paragraph (2), a social media platform shall not use the personal data of a user or visitor in a personalized recommendation system to display content if the platform knows that the user or visitor is a child or teen. (2) Exception A social media platform may use a personalized recommendation system to display content to a child or teen if the system only uses the following personal data of the child or teen: (A) The type of device used by the child or teen. (B) The languages used by the child or teen to communicate. (C) The city or town in which the child or teen is located. (D) The fact that the individual is a child or teen. (E) The age of the child or teen. (b) Rule of construction The prohibition in subsection (a) shall not be construed to— (1) prevent a social media platform from providing search results to a child or teen deliberately or independently searching for (such as by typing a phrase into a search bar or providing spoken input), or specifically requesting, content, so long as such results are not based on the personal data of the child or teen (except to the extent permitted under subsection (a)(2)); (2) prevent a social media platform from taking reasonable measures to— (A) block, detect, or prevent the distribution of unlawful or obscene material; (B) block or filter spam, or protect the security of a platform or service; or (C) prevent criminal activity