Is it not? From the method that I've seen legal logic applied, it feels heavily political. What counts as a loophole that will be struck down and what counts as a loophole that will be allowed often doesn't have any core logical justification that isn't political. There are a bunch of rules, but even more exceptions. There is a bunch of consistency, but not on the level that you find in actual logic, math, or computational science (like with Turing machines). This has long led me to view it like a bunch of political entities playing pretend at being logical. Pretty decent pretend, better than most other systems, but when compared to truly logical systems, still clearly pretend.
You can also see this at macro scale application of the law. For example look at how the law is applied when you break it down by class, race, and sex. It clearly is done so unfairly, which leads on to conclude that either the unfairness is logical, or that the system isn't logical at the core.
Jury nullification is another example where it breaks down, as to say it doesn't exist when the things that logically give rise to it must exist is a contradiction.