Every time I read something like this it blows my mind that there are still places in the world where you can be "let go" so easily. I'm really sorry to hear that this happened to you. I hope your next employer can be more communicative.
However, lawyers and leader roles exist in Europe to provide all the necessary red tape, should this be necessary there too. All they have to do it explain/document it is for the economic health of company and that they've researched alternative solutions.
Asia, Russia, Latin America: Expectations of significant protections aren't even reasonable. Everywhere you may sue or win something if due process not followed, but that's about it and could be costly.
And then they wonder why nobody has time and energy to win their engineered climate crisis.