He would play 'footsie' with me under the table and wink. He would bend down and rub my leg. He shaved his beard and said 'Do you fancy me now that I look 10 years younger?'.
I'm a guy and this is clearly flirty behavior. Since he touched you, I would call it sexual harassment. I try not to overdo the sexual harassment claims, but I do have my limits and unwanted touching is my limit. That doesn't mean you have a court case. He got into your personal space and that's a main requirement for flirting IMO.
Just don't go near this guy again or work at that company. He's a jerk.
I have a long time interest in psychology, specializing in relationship dynamics for 30 years.
(Please note, we give the best advice we can based on the information given in a post. For better advice, please include the age of all romantic partners.)