The justice system was intended to protect the individual, but it is twisted to defend the party when it is coopted by the government.
Justice cannot survive democracy or republic. It must be completely independent, as in, not part of the government. Law is something that is discovered by men, not dictated by men. A man can no more dictate the morality of rape, theft, assault and murder than he cam dictate the laws of gravitation, electric and magnetic fields, or the density of gold. The police, the bar, the courts, all must be private organizations functioning independent from government.
When justice and money is separated from the state, there is no longer a need for legislation. From there, the only remaining function of government is to regulate the militia.
You are going for the good way
Your 2nd and 3rd sentences bend the definition of government in my mind into something I don't recognize. What is government if not the monopoly on the use of force in order to defend the law? If it is something else, I don't think we need it.
But I do think you have pointed out something of critical import that is not well understood. I wouldn't be as absolute as you, but law derives from nature. Laws that work well must be in line with nature and in that sense, such laws are discovered by men, not created by or dictated by them. But only to a degree. The real situation is far messier once you get into the details. Theft depends on a shared agreement as to ownership which isn't always clearly agreed upon. Rape depends upon the will of the victim which cannot easily be adjudicated (believe all women?), and what about age of consent does nature give you an absolute number? Murder depends upon whether or not it is just (in defense of your family for example). Principles can be stated, but details will always exist making the whole affair a giant mess that few people want to soil themselves with, other than those whose minds were soiled already (typically the lawyers).
I would be in favor of a nation whose citizens voluntarily joined (and contains no other citizens) which is founded on foundational law that cannot change, not by any democratic or republic means, and if those laws become "bad" you are free to quit, but you cannot change the foundation... but which then has subservient laws and rules that hierarchically have different statuses and which can be changed and are voted upon perhaps by democratic vote, perhaps by republican representation, or whatever.
This is a good starting point. Text and audiobook with rss included.
https://mises.org/podcasts/new-liberty
Chapter 12 references police, law and courts.
The common law system arose out of anarchy.
This is why you’re not in charge of anything. Sounds like an absolute nightmare.
If the system I describe requires that I'm in charge, it would not be the system I describe.