RE: Being Individually Moral but Forced to Live Among Collective Immorality
Harm as related to stealing/theft is the basic position to start with. Don't steal life, sexual preference, bodily integrity, property. Actions are objective, they happen. Their effects upon others can be objectively discerned.
A codified law by an authority can confirm moral law, but can also go against it. Writing it down is a way to convey it to others who haven't figured it out ;) A way to explain it to them ;)
The term morality, moral law, moral truth, get obfuscated, because societies make "moral codes" so to speak, and laws, based not on moral truth, but on whims.
Objective morality is when harms is incurred. Then there are nuances, like a doctor harming to save, or speaking the truth that can hurt, or self-defense or stopping an evil person with "harm"/"aggressive due force not violence. Unjustified harm is immoral.
i often use a similar tool to decide right from wrong. If my actions hurt someone including myself, that's wrong. but if my actions do not affect anyone else around me, then I am ok to do it. can be used to define morality as well, i guess.