Is ‘Dharma’ a set of ‘Rules’?

Dharma is ‘Alignment’. It’s a guide on how to live so your life doesn’t collapse. It is natural law, not dogma.