Democracy, in any rational form, also imposes conditions on majority rule. That's what the Bill of Rights is about, for example.