Complex sentence: Amazon.com defense was based mostly on the Communications Decency Act of 1996, which it claimed gave them immunity from prosecution.
Split into simpler sentences: Amazon.com defense was based mostly on the Communications Decency Act of 1996. The Defendant was claiming the Act gave them immunity from prosecution.