Sounds like our current legal system lol.
Ever read 3 felonies a day? It's all intentional. Create a morass of insanely complicated and obscured laws, then pass a law, or have the courts rule that "ignorance of the law is no excuse" and you have either current day USA or whatever the commies called their version of a just-us system.