I'd be willing to bet that in most places they're not legal, there's just nobody enforcing it. They're willfully in violation of a lot of rules and regulations that are already in place. And harming the locals so entitled tourists can think they're at home.