In some European jurisdictions democratic states can in fact send you to prison if you so much as draw pornography depicting children out of your imagination (no models) or even write such stories in the basement of your house and only for the "benefit" of your own (debased) "pleasure" in that basement, without said "works" ever leaving said basement or be "appreciated" by other persons. The laws do not specifically describe the above scenario but are so broadly worded such as the above scenario perfectly falls within the definition of the "child pornography" crime. Poses interesting "thought crime" philosophical questions as much as any of us would abhor such a person and find his "works" extremely offensive, sick and repugnant.

So I guess the way even the most democratic society can enact laws that from a philosophical, or perhaps even legal, point of view may appear technically problematic is to not enact them explicitly but allow these border cases to emanate out of the "penumbras" of not very precisely worded but obviously well-intended laws.