Hi @Richa, if there were 4 layers of clothing between you two then I’d say its almost impossible for you to get pregnant. Even if your leggings got wet with his ejaculate, the likelihood of any sperm surviving and getting into your vagina and then eventuating in a pregnancy is almost non-existent. If you were being intimate the moisture could have also been sweat or something else, rather than his ejaculate.
If you’re still worried or want to calm any nerves, you can always grab a pregnancy test from the chemist, but I reckon you should be okay 🙂