Why Does the Moon Always Show Us the Same Face? How Gravitational Tides Reshape Planetary Rotation and Orbits