Your like ironic actual point is well taken but I just wanted to note that even without the irony this is actually a very cool thought provoking question and I couldn't answer it at first.
One hint is that some jurisdictions, including France, have a law that says that merely breaking the spirit of the law is also illegal. Other countries, especially dictatorships, are less textbook about legal interpretation. In other words, if you wanna play with loopholes, do it in the US and similar countries.