There's the law, that applies upon everyone in a society. There are treaties that try to make laws from countries work together.
No morality in that, just practical, time-tested and updated (and updatable) rules & codes. No need to leave a society to refuse and change its laws, hopefully.