A legal case would be having female workers only as cleaners of female restrooms and bathrooms. This is done to prevent men from entering female only bathrooms because they might be pervs or cause discomfort to those who go to the bathroom. It is legal therefore to employ only ladies for that position.