First... I’m a CPA.
I am no longer a member of the AICPA so the their rules and regulations do not apply to me.
IRS circular 230 would govern most return preparers.
The legality of this depends upon the source of the returns. I find it ironic that they are only state returns and not federal.