Clip over path problem

Tbh not sure if this is a bug or I’m not fully understanding how clipping works.

I have a duplicated layer (named R Hand front - stroke leg) that follows the hand when it moves (I put the hand in pink for reference) and creates an automatic shading when the hand goes over the leg. I used this method for the arm over the body (which is a shape), and it works well, but the moment I use the same method for shading the leg (which is a path) and I clip the shading layer to the leg, the results are not the same as for the body, and I don’t fully understand why.

Thanks in advance for the help 🫡