India’s top court legalizes gay sex in landmark ruling