Here's the specific part of the policy:
Family-Friendly
To maintain a safe, family-friendly environment, we don’t allow profanity or vulgarities in reviews. We also reject reviews that include sexually explicit comments, hate speech, prejudiced language, threats, or personal insults. So keep it PG-13! Any reviews that describe reviewer participation in illegal activities, including those that advocate or describe drug use in defiance of local laws, will be removed.
Full policy is here: https://www.tripadvisorsupport.com/hc/en-us/articles/2006147...