How should I set up the legal structure of my business?

If you plan on operating the online business by yourself, then the simplest and easiest business structure might be a sole proprietorship. However, this would also depend on which jurisdiction you are residing.

The best person to speak to regarding this matter would be an accountant or a taxation agent.