Legal liability is imposed when legal norms are violated and can take various forms such as criminal, administrative, disciplinary, civil, or material liability. The foundations of legal liability include the presence of applicable legal norms, the commission of a legal violation, and an enforcement decision. Legal liability serves punitive, preventative, and restorative functions. It aims to punish offenders, prevent future offenses, and restore violated rights.