Self-Declaration in the Legal Recognition of Gender