Political legitimacy, citizens' mobilization, and leaders' survival