The Legitimacy of the Middle Ages