If you are narrowly focused on rules, then you lose sight of the well-being of the people involved. (I.e., the law becomes something of a game with winning and losing moves rather than a statement about human need. Although in some cases, this can still be good for a particular client in the right context.)
Somebody who is focused on the well-being of people is a humanist.
From Merriam-Webster's definition of humanism:
2 : devotion to human welfare : HUMANITARIANISM
// renowned for his humanism
3 : a doctrine, attitude, or way of life centered on human interests or values
especially : a philosophy that usually rejects supernaturalism and stresses an individual's dignity and worth and capacity for self-realization through reason
// Chay Yew directs this world premiere with a warmth and generosity that matches the humanism and balance of the script.
— Chris Jones, chicagotribune.com, "'Lettie' at Victory Gardens: A mother's years lost to prison are years she can't get back," 17 Apr. 2018
A lawyer who approaches a case in a humanistic fashion may well argue for or against some rules not just because of their effect on their client's case but because of how much they think they do or don't express the spirit of a situation.
Such a lawyer would be the type who would conclude a movie or TV episode with a passionate speech about forgetting about the rules and doing what's fair.