Legality and Legitimacy in Global Affairs