If it was illegal, it wouldn’t be legal. You might want to think on that.
It isn’t legal. It is just enforced.
There are also things which are legal, and NOT enforced. There is a difference between what is legal, and what the Federal government does.
Are you just finding out about that?