The makers of MyPillow have agreed to a $1 million civil fine over allegations the company made unfounded claims that its bedding products could lessen the effects of everything from fibromyalgia to restless leg syndrome.

The agreement comes after district attorneys in 10 California counties filed suit against Minnesota-based MyPillow over what they said were unsubstantiated claims the pillow could treat medical conditions such as fibromyalgia, neck pain, insomnia, migraines, joint disorders and restless leg syndrome. MyPillow "knew or reasonably should have known" its statements "were untrue or misleading," the suit noted.

The California suit also raised questions over MyPillow's description as the "official pillow" of the National Sleep Foundation and financial arrangements between the two groups.

MyPillow has agreed to stop marketing its pillows with claims it can prevent, treat or cure diseases unless it has reliable scientific evidence to back up those assertions. The company will also make a $100,000 donation to California homeless and domestic violence shelters.

Consumer protection group Truthinadvertising.org, which conducted the investigation that led to the suit, praised the decision by MyPillow to remove the claims from its advertising.

"While MyPillow is doing the right thing by taking down these unsubstantiated health claims, they never should have been there in the first place," said TINA.org Executive Director Bonnie Patten. "I'm certain that there were consumers who relied on these deceptive marketing claims in making their purchases."

MyPillow founder and CEO Michael Lindell said the company did not admit any wrongdoing, adding the settlement allowed the company to "avoid a costly and drawn-out court case and turn our attention back to our number one passion, our customers."

Marketed heavily through infomercials and home-shopping networks, MyPillow sells for about $100 on the company's website, with more than 30,000 pillows a day leaving its factories. Annual sales for MyPillow have topped $100 million in recent years.