https://en.wikipedia.org/wiki/Constitution_of_Pylyp_Orlyk#Preamble
It is sometimes called the first constitution of Ukraine.
The preamble briefly discusses Cossack history, their Khazar and Roxolani origin mythos, the rise of the Zaporizhian Sich and its downfall when after under Bohdan Khmelnytsky it rebelled against the Polish-Lithuanian Commonwealth and ended up serving Imperial Russia. According to the introduction, using all available means, Moscow limited and nullified rights and freedoms of the Zaporizhian Host and eventually subjugated the free Cossack nation. Ivan Mazepa's politics and alliance with Charles XII of Sweden are explained as logical and inevitable, mandated by the need to free the homeland.