Instacart's hotly anticipated initial public offering has generated about $4.17 million in legal fees, according to a new S-1 filing on Monday.