This is outright illegal here, so I sent anonymously a screenshot of that to our government. The person that replied was a female judge, that said what the company is doing is fixing historical distortions so it is fine.
Thing is... it is still illegal (in fact companies here that really need a specific gender, for example when hiring female airport security so they can deal with female passengers and whatnot, companies go through crazy legal hoops, because our gender discrimination law has no exception, no loophole, nothing).