Lesbian, gay, bisexual, transgender persons in Japan may face legal challenges not experienced by non-LGBT persons. Same-sex sexual activity was legalized in 1880 after the installation of the Napoleonic Code and the age of consent is currently equalized. Same-sex couples and households headed by same-sex couples are ineligible for the legal protections available to opposite-sex couples. Japanese culture and major religions originated in and imported to Japan do not have a history of hostility towards homosexuality, and a majority of Japanese citizens are reportedly in favor of accepting homosexuality, with a recent poll indicating that 54 percent agreed that homosexuality should be accepted by society whilst 36 percent disagreed, with a large age gap. Although many political parties have not openly supported or
opposed LGBT rights, there are several openly LGBT politicians joined in office. A law allowing transgender individuals to change their legal gender post-sex reassignment surgery was passed in 2002. Discrimination on the basis of sexual orientation is banned in certain cities.