That is the same document I linked and this is the relevant section:
The position toward Occupation and political solutions
18. The following are considered null and void: the Balfour Declaration, the British Mandate Document, the UN Palestine Partition Resolution, and whatever resolutions and measures that derive from them or are similar to them. The establishment of “Israel” is entirely illegal and contravenes the inalienable rights of the Palestinian people and goes against their will and the will of the Ummah; it is also in violation of human rights that are guaranteed by international conventions, foremost among them is the right to self-determination.
19. There shall be no recognition of the legitimacy of the Zionist entity. Whatever has befallen the land of Palestine in terms of occupation, settlement building, judaisation or changes to its features or falsification of facts is illegitimate. Rights never lapse.
20. Hamas believes that no part of the land of Palestine shall be compromised or conceded, irrespective of the causes, the circumstances and the pressures and no matter how long the occupation lasts. Hamas rejects any alternative to the full and complete liberation of Palestine, from the river to the sea. However, without compromising its rejection of the Zionist entity and without relinquishing any Palestinian rights, Hamas considers the establishment of a fully sovereign and independent Palestinian state, with Jerusalem as its capital along the lines of the 4th of June 1967, with the return of the refugees and the displaced to their homes from which they were expelled, to be a formula of national consensus.