Definitions of legalism:

  • noun:   strict conformity to the letter of the law rather than its spirit