Suppose it is a dry (effectively no water vapor in the ambient air ) and hot day ($T_{ambient}\approx 40\ C$). My body temperature on this day is $T_{body}\approx 37C$. As a cooling mechanism, my body begins to sweat releasing pure water (to a good approximation at least) onto the surface of my skin. This water (I will refer to sweat as water from now on) is at the same temperature as my body initially. The molecules in this water roughly obey a Maxwell-Boltzmann distribution and hence a sizable fraction of the water molecules have enough energy to escape and enter the vapor phase. When these high energy molecules escape into the vapor phase, the water on my skin cools to some temperature $T_{reduced}$ which is lower than my body temperature ($T_{reduced}<T_{body}$). Now because of this temperature gradient between my body and the water, heat flows from my body which is at the higher temperature to the water which is at the reduced temperature, heating the water whilst cooling my body at the same time.
Now my question can be stated as follows: If we take the water molecules (both those in the liquid and vapour phase) as a system, does this system do work on the surroundings when evaporation occurs? That is, when the most energetic of liquid phase molecules break free into the gaseous phase, do they push against the atmosphere and as a result do work on it? Secondly, if the answer to the first question is yes, can this be assumed to be the reason the water cools during evaporation? That is, the system (initially only liquid water) partly evaporates and hence expands against the atmosphere doing work on it. This work reduces the energy of the system and hence its temperature. After this reduction in temperature, heat flows from the human body to the cooled system heating it up and causing the cycle to repeat.
I ask these two questions because if there is no expansion work or if the expansion work is not the cause of the temperature reduction, then the evaporation of sweat on a body at a temperature lower than that of the surroundings (as in this case where $T_{body} = 37C < T_{ambient} =40C$) appears to be an example of a system colder than its surroundings spontaneously cooling without doing work on the surroundings. This would be a violation of the second law. So am I correct in thinking that the evaporation of sweat leads to the system (all sweat molecules, both vapour and liquid) doing work on the surroundings as it expands against the atmosphere and it is this work which reduces the internal energy of the system which reduces its temperature?