It’s absolutely legal for gambling websites to offer players with this kind of bonuses. In fact, given the nature of competition among the different websites, it’s become an industry standard that a site has such offers for its players.