SAN FRANCISCO (AP) — Apple will refund up to $400 million to consumers ensnared in a plot to raise the prices of digital books unless the company gets a court to overturn a decision affirming its pivotal role in the collusion.