Are there even any criminal laws against this? I mean, it strikes me that there should be, but my non lawyerly self has never heard of any.
I had to briefly look up the difference between criminal law and case law to see what you mean. I have no idea if there are any criminal cases in the US about this.
In Civil Law countries as opposed to Common Law countries the plaintiff could very well be the state for this type of legislation. For example, look at tech companies being fined for GDPR violations, same basic idea.