Legality refers to the quality or state of being in accordance with the law. It means that something is done within the boundaries set by legal authority, and it follows all applicable rules, regulations, and statutes. In other words, legality implies legitimacy, as something that is considered lawful does not violate any established laws or norms.