I believe only the X rating has any sort of law associated with it. It might not even be a direct "cinema" related law, but indirectly you'd be guilty of corrupting a minor or something to that effect.
And of course, this varies by country, state/province, etc