The legal system is a framework of rules and institutions that govern a society. It includes laws created by legislatures, enforced by law enforcement agencies, and interpreted by courts. The primary purpose of the legal system is to maintain order, protect individual rights, and resolve disputes.
In most countries, the legal system is divided into two main branches: civil law and criminal law. Civil law deals with disputes between individuals or organizations, while criminal law addresses actions that are offenses against the state or public. Together, these branches help ensure justice and uphold societal norms.