Yes, it is perfectly legal. There are some countries with stricter food sale regulations and we’re working on our roll-out plan for those. The payment you receive is compensation for the time you’ve spent preparing the meal and to cover the costs of the ingredients.
Please consider your country’s tax regulations in respect to the money you earn from selling your dishes. It is your obligation to report any income you make.