POLITICAL LEARNING AND INSTITUTIONAL DESIGN. THE ROLE OF LEGACIES IN SPAIN AND PORTUGAL