We have an example of how the great Poskim solve human and social problems within the guardrails of Halacha by fully understanding the context of the circumstance
Source Sheet