> The New York State Human Rights Law covers employers with four or more employees. It protects persons 18 and over from age discrimination in employment
> An employer may not refuse to hire or promote an employee, and may not terminate an individual because of age, and must provide the same terms and conditions of employment irrespective of age, including salary.
https://dhr.ny.gov/sites/default/files/pdf/age-discriminatio...
This is exactly how it works for most other hiring discrimination too. If a court finds an email titled "how we can use a college degree requirement to decrease the number of Hispanics at our company" you have a problem, but requiring a degree isn't itself illegal even though different races currently graduate from college at different rates in this country.
If you couldn’t discriminate against someone younger, you couldn’t post that you wanted someone with a master degree and 10 years of experience.