Any person subject to this code is guilty of sexual harassment and shall be punished as a court-martial may direct who:
(1) Influences, offers to influence, or threatens the career, reputation, pay, or job of another person in exchange for sexual favors;
(2) Makes deliberate or repeated unwanted offensive comments or gestures of a sexually explicit nature toward, or in the presence of, another person; or (3) Displays or transmits to another person, without legal justification or lawful authorization, imagery of a sexually explicit nature.