It's well known that a non-zero value for the electric dipole moment (EDM) would imply CP violation. If we consider the interaction Hamiltonian of an EDM $d$ with an electric field $\vec{E}$,
$$ H = -\frac{d}{S}\vec{S}\cdot \vec{E}, \quad \mbox{$\vec{S}$ is the spin} $$
we see it is P- and T-odd, but is it C-even? If CPT theorem holds, then it should be C-even but because $\vec{E}$ is C-odd it should imply that the spin changes sign under C. Is this true? My question comes from the answer to this post Does Charge conjugation change the spin momentum?, where it is said that it should be clear the spin does not change under C.
Therefore, there is a contradiction, isn't it?