@Schneur0 Yes, of course hosts should respect a guest's privacy. I never enter my guest's room or bathroom during their stay, unless they ask me to for some reason.
But I have read on these forums where hosts in a shared home, asked their guest politely many times to please turn out the lights in their room when they go out, or not leave the AC running, or the heater turned up high (that was actually a safety concern, rather than just wasted utilities) and the host finally went in to do it because the guest simply continued to ignore the requests.
These hosts you have really don't seem like they were intending to invade your privacy, or piss you off, and they did let you know that they came in to turn out the lights. Rather than get all upset and "legal" about it, how about just messaging them to let them know that you felt your privacy was disrespected and that if they need to enter for some reason in the future, to please let you know ahead of time.
None of us, hosts or guests, are perfect and we all make errors in judgement sometimes.