All bonuses offered by any casino whose license allows accepting Canadian players are legal. The legality of the cashback bonuses offer is determined accordingly: if you are playing at a licensed casino that can serve Canada, you do not have to worry at all.