Idk about other countries but I'm almost certain in the US, if you're trans, you can have your government documents changed from male to female or vice versa, but there's no special category for trans people or anything, and I'm almost sure there's not a non-binary option on official documents.