"Treason doth never prosper, what's the reason? For if it prosper, none dare call it treason."
It may be illegal, but this is not legally relevant at the moment.