Law pretty much requires you at least be comfortable with some douchey stuff. It's very classist. Some of them look like you just murdered a baby if you got mcdonalds for lunch. Their version of nerd is pretentious yuppie.
It's not far off from working in tech and not being a nerd. Maybe even worse since nerds don't actively look down on regular people the way lawyers do.
I suspect the reason why women find the nerd culture more off putting is because being nerd is sort of bad. So thinking tech is nerdy means tech is embarrassing and undesirable. Not that they won't fit in. They don't want to fit in.
Either way, the solution is to encourage some women to do tech and they can trail blaze. Then future women can see that you don't have to be a nerd to do tech.