“Not legal.
See: “Bill Of Attainder”.”
It isn’t an attainder.
The congress can only conduct prosecution of government officials not private citizens.
However Trump doesn’t become a private citizen until Jan.20.
That’s why they are rushing the process.
You must have misunderstood the wording of the question as it was asked.