Legal gender assignments are stupid. It’s all legislating morality as defined by archaic norms. I’m sorry it has wasted your time and been humiliating. Great job maintaining a long-term relationship though! My spouse and I just celebrated 30 years. It hasn’t all been bliss, but it’s been worth it.