A person (A) discriminates against another (B) if, because of a protected characteristic, A treats B less favourably than A treats or would treat others.
If the protected characteristic is age, A does not discriminate against B if A can show A's treatment of B to be a proportionate means of achieving a legitimate aim.
If the protected characteristic is disability, and B is not a disabled person, A does not discriminate against B only because A treats or would treat disabled persons more favourably than A treats B.
If the protected characteristic is marriage and civil partnership, this section applies to a contravention of Part 5 (work) only if the treatment is because it is B who is married or a civil partner.
If the protected characteristic is race, less favourable treatment includes segregating B from others.
If the protected characteristic is sex—
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
This section is subject to sections 17(6) and 18(7).