Legal gender
one's sex or gender which is recognized by law
Legal gender is a word that is used to regard someone as male or female under the law. They consider sex and gender to determine legal gender of someone. If someone's legal gender is different from their feeling, they face problems in their life. Some countries allow their people to say that they are neither male, nor female.