As Mark Zuckerberg prepares to testify in a landmark social media trial, here’s a deep dive into how these platforms keep you clicking, the potential harms to children, and how a ruling could reshape how social media companies operate around the world.