When Sophia Contreras Schwartz joined Nextdoor in 2018, the company had been around 10 years, but she was only its second lawyer.