Gravitational entropy and thermodynamics away from the horizon