(1) A public servant is guilty of official misconduct if, with intent to obtain a benefit or to deprive another person of a lawful right or privilege:
(a) He or she intentionally commits an unauthorized act under color of law; or
(b) He or she intentionally refrains from performing a duty imposed upon him or her by law.
(2) Official misconduct is a gross misdemeanor.