Your friends probably didn't tell you, that ordinary justice condemns the political leaders, not because organizing a referendum, but for public funds misappropriation, corruption and refuse to follow the law. Something reasonable, since on other countries and 99% of history when you revolt, either you win or you will get your head off. The trial was public, documented and fair. Probably an exemplary for the future on how to deal when a corrupt government wants to take over.
You also need to go back a few years and read what happened on the previous referendum, that they were legal because they were organized following the rules and because this is a democracy. If you don't like the rules you have a political parliament and elections to change the laws. Thats fine.