Democracy and the rule of law