Democracy vs. capitalism: a question

These two posts should get you on the right track:

What Law Is

A Praxeological Account of Law