There are several federal guidelines that also prohibit place of work discrimination, together with termination arising from membership within a guarded class.
While employment is at will in California, which means https://jmllaw.com/areas-of-practice/employment-law/wrongful-termination.shtml