How does thermal scattering shape the infrared spectra of cloudy exoplanets? A theoretical framework and consequences for atmospheric retrievals in the JWST era. Issue 1 (1st July 2021)