The Political legitimacy of markets and governments