Regions in international cooperation: the role of political and legal institutions