The main purpose of this legislation, known as the Healthy Hair Act, is to enhance consumer safety by regulating hair straightening and smoothing products that contain formaldehyde or substances that release formaldehyde. The act aims to protect individuals from potential health risks associated with these chemicals, which are commonly found in many hair care products.