So I tell a sexually explicit joke to a female colleague or I make an advance. She complains to management or someone oversees or hears about it, and comes forward, because that’s the company policy. I’m called in before my supervisor and told to stop whatever, and I do, or if they have zero tolerance I’m fired.
The offended person, has a legitimate claim for damages? I think not.
Generally the problem with this stuff is that the woman reports it and nothing happens. When I was young it happened to me many times but in the 80s, there was nothing you could do. You just quit the job and moved on. Finally, I did get a job where it came down from the top that if you tried any hanky-panky you were going to have the roof crash down. That was a great place to work.
You are talking about “hostile environment” harassment.
If you had supervisory authority (or even indirect authority) over her, she could claim that there was an implied quid pro quo: that favorable treatment was promised in exchange for sexual favors, etc.