When a building’s occupants are harmed because the structure was badly constructed, inspected or maintained, who is legally responsible?

It depends on timing and location: https://t.co/FnN0Fszwzf
Who pays when a building fails? Depends on timing and location