OK, basically, the law is influenced by society as a whole, because that is one of the characteristics of law (it needs to be suited to the society we're in, and that's why it changes internationally). This influence that society has on the law comes down to those areas you said - legal, imposed...