Lawful Good alignment

The question is which law, and what if the law contradicts itself?

In D&D terms, it's better to think of alignment more as religion than academic/constituional law (which generally doesn't exist in a D&D environment and if it does it's limited to specific locales). Think of "good" being some omnipresent religion - lawful good is the absolute adherence to that guideline. Chaotic good would be a more interpretive version of that (the "spirit" of the law, rather than the "letter" of the law), and neutral good would be closer to adherence as a matter of convenience.

In my opinion, of course.