Canadian legislation allows offshore online casinos to provide their service on the territory of Canadian provinces. So, if the licensed Canadian casino offers you to play lotteries, then you don’t need to worry. You can participate in the Euro Millions, for example, even though it’s a European lottery.
https://casinobest.ca/faq/is-it-legal-to-play-online-lottery-in-canada/