Thing is, it’s not that easy to find a definitive law.
the law has changed many times in the last few years, the law is not the same when applied to emirati’s or Muslims, or westerners. Something can be legal, unless reported by a woman’s husband or legal guardian. Sex can be legal, then there’s several paragraphs of “unless”…
most websites will say “generally legal” when you check. Not that it is or isn’t. Because it might be, unless certain other things apply, when it isn’t.
then the punishment also depends on a number of things- in Markus case it should have been a misdemeanor but somehow the prosecution managed to escalate it it to a prison sentence.
i am pretty good with google and research, but i can’t be sure about what the actual law is. Add to that Dubai sells itself as this paradise where local laws don’t apply to foreigners, you can drink, wear bikinis, have sex- only if you are really unlucky will you come to the attention of the authorities, and most people don’t think it will happen to them.