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

After serving as deputy general counsel for 5½ years, she was handed the legal reins in May, becoming the San Francisco-based company’s first female general counsel.