I agree in principle. That said, a law about washing hands would be impossible to actually enforce without some kind of highly intrusive surveillance, which itself would be a severe downside. But a law that wasn’t actively enforced and only existed so posters could say “wash your hands - it’s the law!” would be… fine, IMO… though I doubt it would produce much if any actual increase in handwashing.