* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: white;
    border-bottom: 2px solid #224191;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(34, 65, 145, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: #224191 !important;
    text-decoration: none;
    gap: 10px;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateX(5px);
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(10deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #224191;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #224191;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 2px solid #224191;
    color: #224191;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #224191;
    color: white;
}

.lang-btn.active {
    background: #224191;
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    color: #224191;
    margin-bottom: 30px;
    letter-spacing: -1px;
    white-space: nowrap;
}

.description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 60px;
    max-width: 1000px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: linear-gradient(135deg, #4A90E2 0%, #00A6D6 100%);
    border-radius: 8px;
    padding: 40px 30px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
    top: -60%;
    right: -60%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 166, 214, 0.3);
}

.card-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.card-title::before {
    content: '';
    width: 30px;
    height: 2px;
    background: white;
    display: block;
    margin-bottom: 15px;
}

.card-description {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Members Section (Ecosystem Brands) */
.members-section {
    margin: 80px 0;
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.members-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.members-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00A6D6;
    border-radius: 2px;
}

.members-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.members-track {
    display: flex;
    animation: scroll-members 35s linear infinite;
    width: fit-content;
}

.member-item {
    flex: 0 0 auto;
    padding: 0 20px;
}

.member-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 166, 214, 0.2);
    background: #ffffff;
}

.member-logo {
    width: 200px;
    height: 126px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.member-box:hover .member-logo {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-members {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Partners Section */
.partners-section {
    margin: 80px 0;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00A6D6, transparent);
}

.partners-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00A6D6, transparent);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00A6D6;
    border-radius: 2px;
}

.partners-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    animation: scroll-left 40s linear infinite;
    width: fit-content;
}

.partner-item {
    flex: 0 0 auto;
    padding: 0 30px;
}

.partner-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-box:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 166, 214, 0.15);
}

.partner-logo {
    width: 180px;
    height: 113px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-box:hover .partner-logo {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    background-color: white;
    color: #333;
    padding: 12px 0;
    margin-top: 60px;
    border-top: 2px solid #224191;
    box-shadow: 0 -2px 10px rgba(34, 65, 145, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-center {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.footer-bottom {
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: #224191 !important;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-logo:hover {
    transform: translateX(5px);
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
    transform: rotate(10deg);
}

.footer-description {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 3px 8px;
    border-radius: 20px;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 1px;
    background: #224191;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #224191;
    background-color: rgba(34, 65, 145, 0.05);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-links a.active {
    color: #224191;
    background-color: rgba(34, 65, 145, 0.1);
}

/* Language change notification */
.lang-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 166, 214, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 166, 214, 0.3);
    backdrop-filter: blur(10px);
}

/* Language-specific styles */
body.lang-vi {
    /* Vietnamese specific styles */
}

body.lang-en {
    /* English specific styles */
}

body.lang-zh {
    /* Chinese specific styles */
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* Ensure logo font weight and color are consistent across languages */
.logo,
.footer-logo {
    color: #224191 !important; /* Force logo color consistency */
}

body.lang-zh .logo,
body.lang-zh .footer-logo {
    font-weight: 700; /* Explicitly set to 700 for Chinese */
    font-family: 'Segoe UI', Arial, sans-serif; /* Use font that supports bold */
}

/* Add header scroll effect */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(34, 65, 145, 0.1);
}

/* ===================== TERMS PAGE STYLES - REDESIGNED TO MATCH PDF ===================== */

/* Terms Page Layout - Clean and Document-like with Beautiful Background */
.terms-content {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay */
.terms-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(34, 65, 145, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 166, 214, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(34, 65, 145, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.terms-content .container {
    max-width: 800px; /* Narrower width for better readability like PDF */
    margin: 0 auto;
    padding: 0 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(34, 65, 145, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(34, 65, 145, 0.1);
}

/* Document-style Header */
.terms-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 40px 40px 40px;
    border-bottom: 2px solid #224191;
    background: linear-gradient(135deg, rgba(34, 65, 145, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 12px 12px 0 0;
    position: relative;
}

.terms-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #224191, #00A6D6);
    border-radius: 2px;
}

.terms-title {
    font-size: 28px;
    font-weight: 600;
    color: #224191;
    margin-bottom: 10px;
    text-align: center;
}

.terms-brand {
    font-size: 36px;
    font-weight: 700;
    color: #224191;
    margin-bottom: 20px;
    text-align: center;
}

.terms-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
    text-align: center;
}

/* Remove status badge, intro stats, and navigation */
.terms-status,
.terms-intro,
.intro-stats,
.terms-nav,
.nav-description,
.nav-grid {
    display: none;
}

/* PDF-style Content */
.terms-body {
    margin-bottom: 60px;
    padding: 0 40px;
}

.terms-section {
    margin-bottom: 40px;
    padding: 30px 0; /* Add some padding for better spacing */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    position: relative;
    border-bottom: 1px solid rgba(34, 65, 145, 0.08); /* Subtle separator */
}

.terms-section:last-child {
    border-bottom: none; /* Remove border from last section */
}

.terms-section:hover {
    transform: none; /* Remove hover effects */
    box-shadow: none;
}

.terms-section h2 {
    font-size: 24px; /* Increased from 18px to match index page headings */
    font-weight: 700;
    color: #224191;
    margin-bottom: 20px;
    display: block; /* Change from flex to block */
    align-items: baseline;
    position: relative;
}

/* Remove section numbers styling */
.section-number {
    display: none; /* Hide section numbers completely */
}

.terms-section h3 {
    font-size: 20px; /* Increased from 16px */
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.terms-section h4 {
    font-size: 18px; /* Increased from 16px */
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.terms-section p {
    font-size: 16px; /* Increased from 14px to match index page description */
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

/* Clean bullet points */
.terms-section ul {
    margin: 15px 0;
    padding-left: 20px;
    line-height: 1.6;
}

.terms-section li {
    font-size: 16px; /* Increased from 14px to match paragraph text */
    color: #333;
    margin-bottom: 8px;
    text-indent: 0;
}

.terms-section strong {
    color: #333;
    font-weight: 600;
}

/* Service List - Clean styling */
.service-list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.service-list li {
    padding-left: 0;
    position: relative;
    margin-bottom: 10px;
}

.service-list li:before {
    display: none; /* Remove custom bullets */
}

/* Remove enhanced styling - make it simple like PDF */
.highlight-box,
.warning-box,
.data-category,
.cookie-type,
.step,
.contact-info,
.commitment-box,
.response-time {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 20px 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.highlight-box::before,
.warning-box::before,
.data-category::before,
.cookie-type::before,
.step::before,
.contact-info::before {
    display: none;
}

.highlight-box h4,
.warning-box h4,
.data-category h4,
.cookie-type h4,
.step h4,
.contact-info h3,
.commitment-box h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px; /* Increased from 16px */
    font-weight: 600;
    color: #333;
}

/* Fix list indentation */
.highlight-box ul,
.warning-box ul,
.data-category ul,
.cookie-type ul,
.step ul,
.contact-info ul,
.commitment-box ul {
    padding-left: 20px;
    margin: 10px 0;
}

/* Step Process - Simple styling */
.step-process {
    margin: 20px 0;
}

.step {
    margin-bottom: 20px;
}

.step h4 {
    margin-top: 0;
    color: #333;
    font-size: 18px; /* Increased from 16px */
    font-weight: 600;
}

/* Note styling - minimal */
.note {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
    font-style: italic;
    color: #666;
    font-size: 16px; /* Added font-size to match paragraph text */
}

/* Simple conclusion styling */
.terms-conclusion {
    background: linear-gradient(135deg, rgba(34, 65, 145, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 40px;
    border-top: 3px solid #224191;
    margin: 60px 0 40px 0;
    box-shadow: none;
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: visible;
}

.terms-conclusion::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, #224191, #00A6D6);
    border-radius: 3px;
}

.divider {
    display: none; /* Remove decorative dividers */
}

.terms-conclusion h3 {
    font-size: 20px; /* Increased from 18px */
    margin-bottom: 15px;
    text-align: left;
    color: #333;
    font-weight: 600;
}

.conclusion-list {
    list-style: disc;
    margin: 15px 0 15px 20px;
    padding-left: 0;
}

.conclusion-list li {
    padding-left: 0;
    position: relative;
    margin-bottom: 8px;
    font-size: 16px; /* Increased from 14px */
    color: #333;
}

.conclusion-list li::before {
    display: none; /* Remove custom checkmarks */
}

.validity-note {
    margin-top: 20px;
    font-style: italic;
    text-align: left;
    color: #666;
    font-size: 16px; /* Increased from 14px */
}

/* Terms Meta - Simple */
.terms-meta {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(34, 65, 145, 0.1);
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
}

.brandtagline {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #224191;
}

.version-info {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* Remove action buttons to match PDF */
.terms-actions {
    display: none;
}

/* Remove all enhanced features */
.reading-progress,
.copy-section-btn,
.terms-notification,
.nav-item.active-section,
.skip-link {
    display: none;
}

/* Clean links */
.terms-section a {
    color: #224191;
    text-decoration: underline;
}

.terms-section a:hover {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .page-title {
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-center {
        margin-bottom: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .partners-track {
        animation-duration: 20s;
    }

    .partner-logo {
        width: 120px;
        height: 75px;
    }

    .members-track {
        animation-duration: 20s;
    }

    /* Terms page mobile styles */
    .terms-content {
        padding: 40px 0; /* Reduce padding on mobile */
    }
    
    .terms-content .container {
        padding: 0 20px;
        margin: 0 15px; /* Add margin for mobile */
        border-radius: 8px; /* Smaller border radius */
    }
    
    .terms-header {
        padding: 30px 20px 25px 20px; /* Adjust header padding */
        border-radius: 8px 8px 0 0;
    }
    
    .terms-body {
        padding: 0 20px; /* Adjust body padding */
    }
    
    .terms-conclusion {
        padding: 25px 20px; /* Adjust conclusion padding */
        border-radius: 0 0 8px 8px;
    }
    
    .terms-brand {
        font-size: 28px;
    }
    
    .terms-title {
        font-size: 22px;
    }
    
    .terms-section {
        padding: 20px 0; /* Reduce section padding on mobile */
    }
    
    .terms-section h2 {
        font-size: 20px; /* Adjusted for mobile */
    }
    
    .terms-section h3 {
        font-size: 18px; /* Adjusted for mobile */
    }
    
    .terms-section h4 {
        font-size: 16px; /* Adjusted for mobile */
    }
    
    .terms-section p,
    .terms-section li {
        font-size: 15px; /* Increased from 13px for better mobile readability */
    }
    
    .terms-header {
        padding: 20px 0;
    }
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .terms-nav,
    .terms-actions,
    .copy-section-btn,
    .reading-progress {
        display: none;
    }
    
    .terms-content {
        padding: 0;
        min-height: auto;
    }
    
    .terms-content .container {
        max-width: none;
        padding: 0;
    }
    
    .terms-section {
        break-inside: avoid;
        box-shadow: none;
        border: none;
        page-break-inside: avoid;
    }

    .terms-content::before,
    .terms-header::before,
    .terms-intro::before,
    .highlight-box::before,
    .warning-box::before,
    .contact-info::before,
    .terms-conclusion::before {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}