How can a society ensure that its legal code respects natural law?