How do individuals reconcile competing belief systems within a given society ( e. g moral beliefs conflicting with legal codes)?

How do individuals reconcile competing belief systems within a given society ( e. g moral beliefs conflicting with legal codes)?
Post Opinion