What is legalism and how did it help accomplish the goals of the Qin Dynasty?

put answers in 2 sentences

Legalism is a political philosophy that emphasizes strict adherence to laws and the use of harsh punishments to maintain order and control. It helped accomplish the goals of the Qin Dynasty by centralizing power, establishing a strong bureaucratic system, and implementing reforms that standardized laws and regulations, leading to effective governance and social stability.