What is the meaning of Legalism?

Focusing on the text of written law to the exclusion of the intent of law, elevating strict adherence to law over justice, mercy, grace and common sense.

A belief that salvation is attained or maintained by adherence to the requirements of moral law; salvation by works rather than by faith alone.

A legal axiom, term or rule.

Alternative letter-case form of Legalism

Source: wiktionary.org