you are exempt from all laws if you are a few hundred miles out to sea. The problem is that includes any laws that say that people cant murder you. If you are doing something that a nation doesn't like they cant arrest you, but they can declare war on you.
Another cool thing about the ocean.
There is a loophole to the "100 miles" or "1 mile" law (I think in some places 1 mile out is open ocean)...
Here it is:
Say you are in China and pirate one of their ships (China actually has military pirates that do this too), so you pirate the ship and while on board, take it to Japanese waters. Now, China and Japan aren't the best of friends, so if China send war ships to chase you into Japanese water, Japan can declare war on all of China, lol. So China will let you go.