You forget to exclude it from the law that legalize pornography. Denmark was the first country to legalize pornography, so obviously there where a bunch of, should we say "edge cases" that the lawmakers forgot to think about.
The Danish national television made a documentary, there's also a short article: https://www.dr.dk/om-dr/programmer-og-koncerter/candy-film-d... you can probably just run it through Google translate. The worst part is that it took like 10 - 11 years to fix.