I'm actually curious about this. I'm defining sex as the most common combinations of chromosomes and gonads.
How would you enforce that only people with a particular combination uses a particular bathroom? In the case of intersex people, or transgender people who pass well?