This section applies where—
In this section, a “relevant relationship” is a relationship during the course of which an act of discrimination by one party to the relationship against the other party to it is unlawful under—
It is unlawful for the relevant person to discriminate against the woman by subjecting her to a detriment where the discrimination arises out of and is closely connected to the relevant relationship.
It is unlawful for the relevant person to subject a woman to harassment where that treatment arises out of or is closely connected to the relevant relationship.