Is Brazil’s ban of social media platform X legal or political?

Site failed to comply with court order to block accounts linked to disinformation.

Is Brazil’s ban of social media platform X legal or political?
Site failed to comply with court order to block accounts linked to disinformation.