Thermodynamics of the vacuum