that sexual orientation is a protected personal characteristic under the equality clause of the Canadian Charter of Rights and Freedoms. The federal Parliament and provincial legislatures began to amend their laws to treat same-sex relations in the same way as opposite-sex relations. Beginning in 2003, the courts in Canada began to rule that excluding same-sex couples from marriage violated the equality clause of the Charter. In 2005, the federal Parliament enacted the Civil Marriage Act, which legalised same-sex marriage across Canada. Canada has been referred to as the most gay-friendly country in the world, ranked first in the Gay Travel Index chart in 2018, and among the five safest in Forbes magazine in 2019. It was also ranked first in Asher & Lyric's LGBTQ+ Danger Index in a 2021 update. United States In 1986, the Supreme Court of the United States ruled in Bowers v. Hardwick that a state could criminalize sodomy, but, in 2003, overturned itself in Lawrence v. Texas and thereby legalized homosexual activity throughout the United States of America. It is only since the 2010s that census forms and political conditions have facilitated the visibility and enumeration of same-sex relationships. Same-sex marriage in the United States expanded from one state in 2004 to all 50 states in 2015, through various state court rulings, state legislation, direct popular votes (referendums and initiatives), and federal court rulings. East Asia In East Asia, same-sex love has been referred to since the earliest recorded history. Homosexuality in China, known as the passions of the cut peach and various other euphemisms, has been recorded since approximately 600 BCE. Homosexuality was mentioned in many famous works of Chinese literature. The instances of same-sex affection and sexual interactions described in the classical novel Dream of the Red Chamber seem as familiar to observers in the present as do equivalent stories of romances between heterosexual people during the same period. Confucianism, being primarily a social and political philosophy, focused little on sexuality, whether homosexual or heterosexual. Ming Dynasty literature, such as Bian Er Chai (弁而釵/弁而钗), portray homosexual relationships between men as more enjoyable and more "harmonious" than heterosexual relationships. Writings from the Liu Song Dynasty by Wang Shunu claimed that homosexuality was as common as heterosexuality in the late 3rd century. Opposition to homosexuality in China originates in the medieval Tang Dynasty (618–907), attributed to the rising influence of Christian and Islamic values, but did