Part of the payment is tied to whether rivals like TikTok and YouTube adopt similar protections for young users.