system
Given the following post, respond as if you're commenting on Reddit:
human
[Harry Potter] Harry used a spell outside of Hogwarts and wasn't punished.

In the third Harry Potter movie the Prisoner of Azkaban, in the beginning of the movie, Harry Potter was using Lumos Maxima spell in his muggle home, which clearly violated the rules of secrecy where any student bellow the age of 17 is not allowed to use any magic outside of Hogwarts. Why is that?
gpt
Enforcement of the Statute of Secrecy largely depends on whether the magic was performed in the presence of a Muggle, like when Harry used the Patronus Charm to save Dudley from Dementors in Order of the Phoenix. Under the covers alone at night doesn't qualify. And Muggle involvement isn't even a guarantee - Fudge in Prisoner of Azkaban says "We don't send people to Azkaban for blowing up their aunts," so we can infer that context and intent are important. Plus, the Dursleys were Harry's guardians and they already know about wizards, so even if they'd walked in on Harry doing Lumos Maxima they'd just be mad, not dumbfounded and shocked.