Legitimacy in a non-democratic environment