Assessing the legality of online gambling