This requirement for just compensation does not apply to a land use regulation: (1) restricting or prohibiting an activity recognized as a public nuisance by law; (2) restricting or prohibiting an activity for the protection of public health and safety, such as fire and building codes, health and sanitation regulations, solid or hazardous waste regulations, and pollution control regulations; (3) t