BRASÍLIA - Elon Musk’s X will now comply with court demands in Brazil so it can resume operations in the country and potentially end its feud with a powerful judge over free speech, far-right accounts and misinformation. The Brazilian Supreme Court asked the social media platform Saturday to present documents validating its new legal representative in the country. X was shut down in Brazil in late August after it did not comply with orders from the top court related to hate speech moderation on the platform.

But in recent days, X representatives have started to publicly vocalize intentions to address the court demands, even though the firm had previously said it would not meet them. X lawyers said late Friday that the platform had named a legal representative in Brazil, addressing a key demand imposed by the court. In a Saturday decision, Supreme Court judge Alexandre de Moraes gave X five days to provide commercial registries and other documents proving that X formally signed Rachel de Oliveira Conceicao as its Brazil legal representative.

Brazilian law requires foreign companies to have a legal representative in order to operate in the country. The representative would assume the legal responsibilities for the firm locally. X had a legal representative in Brazil until mid-August, when it decided to close its offices and fire its local staff.

The move followed a months-long dispute between Musk and Moraes over the firm’s non-compliance with court orders demanding the p.