Check out the amount of lawyers per capita. From experience in Berlin, one of the most dysfunctional German states, the length of lawsuits is a big problem, complexity I don't know - but costs are not crazy, and loser pays (a fixed amount depending on properties of the case). AFAIU, a side can pay more than the fixed amount for their lawyer, but the loser will not pay more. All that discourages outspending someone with frivolous litigation.
https://worldpopulationreview.com/country-rankings/lawyers-p...