I am not seeing how dS = dQ/T can describe a system where entropy is strongly influenced by gravity.
If I have my B level concepts straight, considering a system containing a neutron star and nothing else, with a relatively large boundary (say one light year) that system has a very high entropy because it is in a very probable state given that gravity is clumping all the particles together as one would expect. If there were no gravity in this one-light year diameter system, then the entropy would be, I think, very low, because only considering thermal interactions and no gravity it is very unlikely (probably no mechanism to even have such a configuration) that all the particles would end up grouped together as tightly as the particles of a neutron star.
So trying to make sense of dS = dQ/T in a system where entropy is very influenced by gravity may not work - it seems like some needed modelling is missing. I tried a couple Google searches but can't find anything that looks like what I am picturing.