Gravitational Phase Transitions and the Sine-Gordon Model