The humor is essentially dark for a cartoon and sophisticated. But at the same time, being a cartoon gives the writers more freedom than in a normal sitcom. It always pushes the line that, despite human failings, the Simpsons are really decent people.
It is even possible that laws which have not their origin in the mind may be irrational, and we can never succeed in formulating them.

