An effective-gravity perspective on the Sun–Jupiter–comet three-body system