I think top-tier law is still overwhelmingly male. Read up on the double bell-curve for the legal industry, which is quickly becoming a problem for tech as well. Though for the legal industry, there's gatekeeping in the form of school pedigree.
For medicine, it's easier to balance the ratios when you can fully control the pipeline, and also control the total number of new practitioners entering the workforce regardless of demand.
If you only have 28,000 residency slots a year, institutions can pick whoever they want, and get the diversity numbers that they want. They decide who eventually gets to work in the field. Employers and customers don't have any real choice. They're going to get whatever the schools provide, and if they don't like it, they can go without doctors.
Modern tech is nothing like that, but it could be someday. Imagine if schools decided who could be professionally employed as a software engineer.
Yes, every evolutionary psychologist talks about it. And you can see it in the outcomes - one of them being men commit most violent crime (>80%) and usually on one another.
I would speculate law and medicine appeal to people differently than tech.
ON AVERAGE, men and women differ in biological traits and desires. We see this in massively egalitarian societies like in Norway who have huge sex based gaps in employments yet the most effort to be egalitarian. Interesting.