Twitter's content policy explicitly bans several things that are not illegal [1] [2] [3].
[1] https://help.twitter.com/en/rules-and-policies/hateful-condu...
[2] https://help.twitter.com/en/rules-and-policies/glorification...
[3] https://help.twitter.com/en/rules-and-policies/medical-misin...