Well, on the face of it, it surely doesn't appear that it was illegal.
I mean, there were properly filed complaints in an official court of law, appropriate pre-trial hearings, expensive & competent counsel on both sides, a long experienced judge on the bench for decades overseeing thousands of trials and hearings, and then and most likely the most important aspect....we had 18 individual local citizens and peers of the defendant in two separate jury boxes making two separate judgments; and each did it unanimously in just about 3hrs each (including lunch).
Golly, I ain't a lawyer but it sure has the appearance of legal proceeding. Also appears to be rather decisive (only 3 friggin' hours?)
It was likely more legal than some bloke slamming a woman into a wall, pulling down her tights, and ramming his fingers into her genitals. IMHO