While there are some major deviations from Rufi Thorpe’s book, David E. Kelley and his stellar cast have created a tragic-comic slice of life shaped by the digital economy