In most modern legal contexts, sexual harassment is illegal. Laws surrounding sexual harassment generally do not prohibit simple teasing, offhand comments, or minor isolated incidents—that is due to the fact that they do not impose a "general civility code." In the workplace, harassment may be considered illegal when it is frequent or severe thereby creating a hostile or offensive work environment or when it results in an adverse employment decision (such as the victim's demotion, firing or quitting). The legal and social understanding of sexual harassment, however, varies by culture.