Judges are not all-knowing and laws are not absolute. Parliament legislates the laws - our Judicial system enforces those laws. Laws DO evolve with the decisions of judges but when  activist judges start to stray outside the boundaries of what the laws were intended to do - that's where Parliament has to step in and clarify the law.  Since politicians don't want to touch hot potato issues, judges stray further and further with "precedents" building upon precedents. And here we are today with the confusing "non-binary" issue. Sorry - but there are males and females.....and there are people who want/need to switch from one to the other. Give it time and  gender-confused individuals eventually figure it out.