The European Commission has confirmed that the Catalan independence referendum was “not legal” according to Spanish law, and described aggressive beating of peaceful protesters by the Spanish riot police as an “internal matter”.