Just because you can do it doesn’t mean it’s not illegal. I played poker online for a while while it was nominally illegal. I did lose ~$80 or something when the Feds shut down PartyPoker and seized all their assets, but I came out WAY far ahead of that when I was playing all the time.