Way, way before the treaties of the 1800s that you cited, the land that was Hong Kong was incorporated into China in 221 BC during the Qin dynasty. In essence, your country, China owns it.
Then came colonialism, and the Brits acquired it. It was ceded to the Brits, in your very own words, in...