It's not been all that disproportionate for me, as far as I remember.
Primary school - all I remember are female teachers, but I can only remember my main class teacher.
Secondary school - mixed. I remember female teachers in basically every class. We'd get new teachers every 2 or 3 years though, mainly intended. New class teacher, too.
first two male class teachers, then a female one. Male teachers in German, R.E., physics, biology, maths, chemistry, art, music, P.E., social studies, geography, ... that's plenty of male teachers I remember from my own classes. I also had female teachers in these classes in other years at the same school, the only classes I can only remember having female teachers there are English and French. But there was a male English teacher, I would have had him in class if I hadn't transferred when I did.
Grammar School (only L6) - male teachers in: French, Politics, Geography, P.E., Maths GCSE....... female : French, R.E., English GCSE (I had to do English and Maths GCSE, because I didn't have any GCSEs, so I had to do the repeat class... which was very cool, we were like 5 students and our Maths teacher was a really cool dude who was also the school team's Rugby coach and would teach in the school tracksuit most of the time. First we'd chat for a really long time and he'd rehash some stories from the team or other funny stuff, then we'd do practice papers or ask questions if there were any. It was like having a private teacher.)
Last school (3 year school, I only transferred for the last 2 years), there were no small kids, people would be at least 16 usually.
More male teachers: I had male teachers in English (also my class teacher), French, P.E., Maths, R.E., History, Social Studies
female teachers in Biology, German, Art......
I think that's it. I didn't even realize that I had so many more male teachers in my last school. But they didn't seem too worried about lawsuits or allegations. Our English teacher would talk grades in private, just him and the student. He also had us over at his house for a class meeting once, because he lived out of town and at the first class meeting he couldn't drink because he had to drive ;-) His wife cooked us a big dinner and his kid was running around all excited and trying to get us to play with her. He was pretty young though for a class teacher, we were his first real assignment.
One teacher was known for having married a former student only a few years earlier, though. She was like 25 or more years younger than him, but they only made it official after she had already graduated. People would speculate of course, but it's not like anyone "knew" when the relationship started. He still taught there, I didn't have his class though. If I remember correctly, she had a baby or she was pregnant, but we'd just gossip a little bit, she'd already graduated, they were married... nothing to see there. (I think she was in school once for a small party or just to pick him up, "psst.. that's her!" someone would go, that sort of thing)
I graduated about 10 years ago, maybe it was still different back then.