These are basically parts of a “common agreement” of DOs & DONTs among a group of people to minimize conflicts and establish “Harmony”. The group can be very small to very big … expanding from a small village to a state, a nation, a continent of the whole world. Morality is the foundation of “Man Made Laws” for the legal systems – providing for rewards, awards & punishments. Morality will vary with varying choices of people in different locations at different times with different circumstances & environments. Some conditions of morality may be common across the world but many may not be.
Morality also forms the foundation of “Culture” of a society and thus culture & laws often get intermingled in that society, influencing the administration & governance as a whole. Morality defines the good & bad conduct in each particular society covering food & dressing, education & training, professions & careers, social & community behaviour. Monogamy & polygamy, matriarchy & patriarchy, gender differentiation for awards, rewards & punishments, distribution of duties & responsibility among the genders etc are all parts of cultural morality extending to legalities. Morals can be changed by those who are part of that community through common agreement. Religions also play an important role in defining the morality in any society as any religion is a common agreement dictated by common culture, belief & faith. But morals are “Never Universal”.