That’s where we differ. Religious doctrine has never, in my view, reflected social views, just the view of a section, riding rough shod over the majority. That’s why they came to be widely ignored in the secular age. People started to live by their own beliefs, not something imposed.Historically, religious doctrine both shapes and reflects social attitudes and in practice often simply adds authority to the majority view as reflected in law. In our secular culture the revelatory source of our legal system is often not understood and the imprinting of Judaeo Christian values goes similarly unrecognised. Interesting article on the subject linked below in case it is of interest, although clearly not appropriate for this context.
https://brill.com/view/journals/jrat/7/1/article-p3_2.xml?language=en&ebody=pdf-117260