How governments and institutions lose and regain public legitimacy — and what policy design has to do with it.