Balance Sheet Components - Schedule of Property and Equipment, Net (Details) - USD ($) $ in Thousands |
Jun. 30, 2021 |
Dec. 31, 2020 |
|---|---|---|
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | $ 218,486 | $ 201,277 |
| Accumulated depreciation and amortization | (57,942) | (46,080) |
| Property and equipment, net | 160,544 | 155,197 |
| Computer and Equipment | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 34,600 | 30,859 |
| Leasehold Improvements | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 156,664 | 144,013 |
| Website and Internal-Use Software | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 7,319 | 6,744 |
| Office Equipment and Furniture | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | $ 19,903 | $ 19,661 |