Curie–Weiss Type Models for General Spin Spaces and Quadratic Pressure in Ergodic Theory