In Germany a regulated system of costs exists, the amount of compensation you pay to the winning party is capped and uses a fixed hourly rate equal for both parties.
I don't think there really is any feasible way to prevent rich people and companies to have access to more/better representation.