Legalizing Secession: The Catalan Case