Marginal and conditional second laws of thermodynamics