Merely having no office in some country not sufficient, for the same reason it wasn't sufficient for preventing New Zealand based Kim Dotcom to be prosecuted (and his Hong Kong-based Mega Upload domain to be seized) by the USA.
Or how X sued Media Matters in Texas before X moved there and despite Media Matters not being based there: https://www.threads.net/@sherrilynifill/post/Cz5Im7VONzd
Or all the defamation suits against US citizens filed in the UK on the grounds that being published on the internet counted as if it was published in the UK, forcing the US (Federal and State) to pass laws preventing payment of penalties in such cases: https://en.wikipedia.org/wiki/Libel_tourism
Edit:
Just found an interesting claim, thought I cannot verify it myself:
"Notably, Brazilian law necessitates all internet businesses to have a legal representative in the country who is authorised to receive judicial orders and respond legally." - https://www.opindia.com/2024/08/moraes-is-the-dictator-of-br...
and
"Under Brazilian law, social networks must have a representative to receive and consider government takedown notices about political misinformation. X has no such person after closing down its Brazil office. Moraes gave the X platform 24 hours to name a new legal representative or face a nationwide suspension." - https://www.siliconrepublic.com/business/x-brazil-suspension...