How do we please entitled people here guys?
Your answer is 'the courts,' and it is a very bad answer for a number of reasons.
In the U.S., a common saying is that ignorance of the Law is no excuse when caught violating it. Understandable, and if that were as far as it went, likely the way things must be (never mind that the laws are so extensive virtually no one knows them all).
The problem is that activist types (and some on the political Left and Right are guilty of this) use the courts to achieve 'case law' precedents, what's called 'legislating from the bench,' in order to establish legally binding precedents and get their way without going through Congress.
Problem: that means you can be charged with something based on an unforeseen possible future interpretation of the law and amounts to new law, but if a judge and jury are sympathetic (and ethically lacking) enough, and you win, BAM!, new case law!
This means companies have to not only obey the Law, but obey future interpretations of the Law, which aren't very foreseeable so it becomes necessary to obey potential future interpretations of the Law, and despite your lack of reliable psychic prophesying resources, ignorance of the Law
as it will unforeseeably be interpreted in the future is also no exclusive.
People who work in mental health often hear the name Tarasoff, dealing with a couple of cases related to alleged caregiver duty to protect 3rd parties from a patient. The 'Scopes Monkey Trial' over teaching evolution vs. creationism in U.S. public schools was an opportunistic move to use the courts to make changes.
The issue isn't what you think public policy should be on any of these topics (e.g.: whether Apple should or should not routinely scan private content on their services with no warrant). The issue is the courts are used to settle it, and the new 'case law' can then effectively rob the defendant of millions.