It's a sad fact that modern day internet service providers basically have to exist as law firms with a tech branch incidentally attached.
Denise (@rahaeli) is no longer active here, but wrote up this outstanding summary of the most important legal obligations. It's everything from DMCA copyright takedown demands to handling CSAM to processing national security letters.