And to be complete on the context, I expect it to have teeth.
Brazil has dialed this up to 11 by declaring the Internet as being under their jurisdiction. That means they can act as judge, prosecutor, and jury and issue court orders regarding anything that happens on the Internet. There is zero recourse because they are the supreme court.
> How does the court have what also seems like legislative power?
It doesn't. It just does it anyway.
(Technically, it can dictate to courts how to interpret laws. On practice, it dictates things like "a person can only be arrested after a judge hosts a trial and orders it" as "a person can only be arrested after all judges host a trial". The power to interpret laws is extremely ambiguous.)
Anyway a thorough explanation of the applicable law, point by point
I'm sorry, but... what?
The Executive is the one closest to this qualification, but Lula, Haddad, Zé Múcio, Tebet and the others in power are nowhere even close to being socialists! Lula perhaps, until about a couple decades ago was a little bit closer but now he's not even on the left very much.
The Congress and the Senate, on the other hand, are mostly in the hands of neopentecostal evangelicals, the pro-gun nutjobs, the agrobusiness tycoons and other capitalists and fascists.