You can vote your way into a dictatorship, but you cannot vote your way out.
The judicial branch, not the presidency, is the issue in brazil.
I didn't say anything about illegality.
Dictatorships can be perfectly legal. Especially if a court says so.
And, given the fact that this is about the judicial branch taking dictatorial actions, almost by definition anything that they decide or choose to do would be legal (As the judicial branch is the one that decides in the first place if its legal or not!)
And so, where is the evidence? Even 3 high impact examples would suffice as a starting point.
[EDIT]; typo fix