Which of these phrases best describes legalism?

The strict adherence to laws and rules, often without considering the individual circumstances or intentions.