True, but that framework seems to have lost its teeth in recent decades. Uruguay, Portugal, Canada and many US states are flagrantly violating international law with no consequences.
"What’s often overlooked, however, is that these legal victories would probably not have been possible without the ability to break the law." - Moxie Marlinspike
[1] https://moxie.org/blog/we-should-all-have-something-to-hide/