I’m not a lawyer, but basically it is illegal to discriminate in hiring because of sexual orientation. It seems it is not illegal to ask about it. However, any reasonable hiring process will forbid asking about sexual orientation, because it is not relevant to the job, so there isn’t any reason to ask, except because…