Welcome to our Forum. I'll be happy to comment. The events you describe carry no meaningful risk for any STD, including HSV or HPV. Masturbation, whether carried out with hands, feet or breasts is safe sex with no risk for infection. Similarly, there is no risk for infection from kissing your partner's leg. I urge you not to worry, in our over 70 years of STI-focused practice, neither of us has ever seen, or heard, of an STI acquired through masturbation.