You can be prosecuted for opening your legally-separated spouse's postal mail; in fact, that's been a crime since (it appears) 1948.
You also clearly have a legally enforceable expectation of privacy in your personal email account, so I don't know what your point is; just because Reddit also asks for a password doesn't mean that the Gmail login screen is optional.
They were not separated. They were married and still living together.
Having a password on your account does not give you a reasonable expectation of privacy from your spouse. Having a piece of paper that says "Please don't read my gmail" does.
My point is that the password alone does not give you that expectation - you need an additional something.
A password does not in and of itself mean "don't look" because all online services require one anyway, so it doesn't work as a special "don't look" request. And especially when they share computers.