You, my dear anon, are a gift and a godsend.
Right, so, the absolute MOST loopholey bit of law in Alleirat is based on the ongoing detente between the two criminal organizations in most major cities and the lathan, the city guards. The way the major cities (there are four) and some of the smaller cities (to a lesser degree) operate is that there’s an undercity (Kal [city name], as in Kal Dase) in sewer tunnels or foundations and an overcity (Lai [city name], as in Lai Dase) on rooftops and abandoned balconies/etc. There’s generally a boss of Kal and Lai sub-cities, with ‘Below’ criminals specializing in more rough-and-tumble crimes and ‘Above’ criminals having a more cat burgler rep. Now, in order to prevent any gang-vs-law wars that might risk the Streets (the civilians between Kal and Lai), the lathan have a deal, and the deal goes something like this.
Any criminal from Above or Below is at jeopardy for the crimes they have committed for a given amount of time, and during that time capture by the lathan can result in trial and sentencing, which can range from labor to execution. However, the lathan cannot trespass onto Kal or Lai subcities without a writ for the arrest of a criminal and proof of their identity. If one of the lathan does enter the subcities without a writ, no crime committed against them in that location can be charged against any individual. On the other hand, the latha cannot be charged for any actions they take in self-defense.
The balance is extremely delicate and largely predicated on the fact that Kal and Lai operate on a certain code of honor. Other situations, like the ongoing bandit problem in the most rural areas and the White Touch, do not so much have that code, although the Touch has their own rules.