Which of these phrases the best summarizes LEGALISM

Strict adherence to the letter of the law or strict adherence to a set of rules and regulations.