If online poker is legal in my country, is online casino too and vice versa?
Not always. Note that it is your responsibility to check if what you intend to do is legal beforehand. Although most online gambling venues will automatically ban players from forbidden countries to play on their sites, you should always find out for yourself.
