There are circumstances where the issue of biological sex may require to be explored for a legitimate policing purpose, for example, sexual offences and, more specifically, contraventions of Sections 1 and 18 of the Sexual Offences (Scotland) Act 2009.