Is the Australia Lottery legal?

Can you answer this question?