>>96334514
The Alignment system in D&D 5E was basically included as a side note and is condensed so as not to overwhelm infantile minds who don't even understand the basics of right and wrong.
In every edition before D&D 4th edition Lawful alignments are meant to represent how the character values, recognizes, and utilizes the concept of law itself and doesn't mean obeyance to specific laws.
Lawful Good means a character respects and adheres to laws that are just and not tools of corruption.
While the opposite is the case for Lawful Evil. These characters only see the benefit of laws they impose on others or ones they can use for their selfish and evil intentions.