Alex3917 is right that sexual harassment outside the workplace is not illegal, but it's incorrect to say it's not "legally sexual harassment." It is sexual harassment, it's just not illegal sexual harassment.
For example, catcalling on the street isn't illegal. It's still sexual harassment, it's still unethical, but it's not illegal.
That's fair. In many developed countries sexual harassment laws extend to any situation where there is a power imbalance such as in education or in housing (landlord vs. tenant).
For example, catcalling on the street isn't illegal. It's still sexual harassment, it's still unethical, but it's not illegal.