The law of democracy : legal structure of the poli