By that, I mean that if the person thought they had a moral or ethical defense for a thing, then they'd use that instead of "it was legal". Legality only has a loose association with whether something is right or wrong.