Ethique, société et législation