This is between nation states. Concepts like laws and legality really don’t apply at this level of abstraction. Agreements are a matter of convenience and convention because there is no higher authority that can enforce them.
Geopolitics operates in an explicitly anarchic arena.
Geopolitics operates in an explicitly anarchic arena.