v3.20.4
Stockholders' Equity - Additional Information (Details)
$ / shares in Units, $ in Millions
12 Months Ended
Dec. 31, 2020
USD ($)
Plan
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Dec. 31, 2018
USD ($)
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Number of share-based employee compensation plans | Plan 3    
Weighted-average fair value of employee stock options | $ / shares $ 12.11 $ 7.44  
Fair values of options vested | $ $ 11.1 $ 23.3 $ 24.8
Intrinsic values of stock options exercised | $ $ 75.5 44.0 289.1
Maximum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Percentage of capital stock outstanding 5.00%    
Shares reserved for issuance, automatic increase date Jan. 01, 2027    
Minimum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2018    
Stock Options      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Weighted average recognition period 1 year 3 months 18 days    
Unrecognized compensation cost | $ $ 8.4    
Stock Options | Maximum      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Maximum term for stock options from the grant date 10 years    
RSUs and RSAs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Fair value of vested shares | $ $ 969.4 $ 964.7 $ 890.4
Post-2017 RSUs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Unrecognized compensation cost | $ $ 1,800.0    
Weighted average recognition period 2 years 7 months 6 days    
RSUs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Share based compensation arrangement by share based payment award vesting   9,400,000  
Class A Non-voting Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 3,000,000,000 3,000,000,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stock voting rights no voting rights    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 1,248,010,076 1,160,127,000  
Common stock outstanding 1,248,010,076 1,160,127,000  
Class A Non-voting Common Stock | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 87,270,108    
Class A Non-voting Common Stock | 2014 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 17,858,235    
Class A Non-voting Common Stock | 2012 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 11,004,580    
Class A Non-voting Common Stock | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 16,484,690    
Number of shares issued or offered under plan 0    
Class A Non-voting Common Stock | Maximum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Additional common stock reserved for future issuance 86,737,997    
Class A Non-voting Common Stock | Maximum | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2027    
Percentage of number of shares, common stock outstanding 1.00%    
Increase in number of shares reserved for issuance 15,000,000    
Class A Non-voting Common Stock | Minimum | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2018    
Class A Non-voting Common Stock | 2014 Equity Incentive Plan | Maximum | France      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Awards granted to employees and consultants 2,500,000    
Class A Non-voting Common Stock | Stock Options And Unvested RSUs | 2014 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 96,993,064    
Class A Non-voting Common Stock | Stock Options And Unvested RSUs | 2012 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 37,228,865    
Class A Non-voting Common Stock | RSUs and RSAs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Awards granted to employees and consultants 61,337,000    
Share based compensation arrangement by share based payment award vesting 71,301,000    
Class B Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 700,000,000 700,000,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stock voting rights one vote    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 23,696,369 24,522,000  
Common stock outstanding 23,696,369 24,522,000  
Class C Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 260,887,848 260,888,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stock voting rights ten votes    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 231,626,943 231,147,000  
Common stock outstanding 231,626,943 231,147,000