You're making a fundamental mistake in conflating legality with democratic will.
I can point to a HUGE number of laws that make a farce of the democratic process in almost any modern democracy. A short list that applies mostly to the USA but some to other countries also:
* Gerrymandering (the act of designing districts along demographic lines to influence an election outcome)
* First past the post voting (where voters can't vote for who they really want, they have to vote 'strategically' for the person they think will come first or second)
* Voter ID laws that seek to disenfranchise certain demographics by requiring hard(or expensive)-to-acquire ID they are less likely to have