Remember one of the truisms I always stated at the beginning of teaching a course was that what is moral isn't always legal and what is legal isn't always moral.
That is so true. I had a custody case and the attorney on the other side was a former Jefferson County Circuit Judge. We were arguing about our case in the Judge’s office and she looked at me and said “well sometimes you have to ignore the law and just do what’s right.” My response was “maybe that’s why you’re no longer on the bench!” She lost the case.