legalism

noun

1.
strict conformity to the letter of the law rather than its spirit