All great movements of the past were illegal; that's what made them great in the history books, even if they were carefully planned by Machiavellian types in the background. One very popular past dictator in Germany was democratically elected though. If Spain wants to stay united, they really need to start talking to Catalonia instead of literally kicking their butts and smashing them on the ground, or they risk an abrupt end (maybe not today, but in 20 years when a new generation remembering this comes to full force and resentment can't be contained any longer).