:root {
    /* Color Palette - Dark Premium Tesla-inspired */
    --bg-primary: #04070d;
    --bg-secondary: #0a0f1a;
    --bg-card: rgba(15, 19, 30, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Accent Colors - Electric Blue/Cyan */
    --accent-primary: #4de0ff;
    --accent-secondary: #6c5ce7;
    --accent-gradient: #4de0ff;
    --accent-glow: rgba(77, 224, 255, 0.15);

    /* Text Colors */
    --text-primary: #f5f7fb;
    --text-secondary: rgba(245, 247, 251, 0.7);
    --text-muted: rgba(245, 247, 251, 0.5);

    /* Borders & Effects */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(77, 224, 255, 0.3);
    --shadow-large: 0 40px 100px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(77, 224, 255, 0.1);

    /* Typography */
    --font-main: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "SF Mono", "Fira Code", monospace;

    /* Spacing */
    --section-padding: clamp(60px, 10vw, 120px);
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradient Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(77, 224, 255, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(108, 92, 231, 0.06), transparent),
        radial-gradient(ellipse 50% 50% at 0% 80%, rgba(77, 224, 255, 0.04), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(4, 7, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--bg-primary);
}

.logo-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-wordmark {
    height: 22px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    color: var(--accent-primary) !important;
    font-weight: 500 !important;
}

.nav-cta:hover {
    opacity: 0.8 !important;
}

/* Navbar Language Dropdown */
.nav-lang {
    position: relative;
    margin-left: 4px;
}

.nav-lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.nav-lang-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
}

.nav-lang-toggle svg {
    width: 18px;
    height: 18px;
}

.nav-lang-toggle .chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-lang.open .nav-lang-toggle .chevron {
    transform: rotate(180deg);
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: rgba(15, 19, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.nav-lang.open .nav-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-lang-dropdown a {
    display: block;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.nav-lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.nav-lang-dropdown a.active {
    color: var(--accent-primary);
    background: rgba(77, 224, 255, 0.08);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding) 0;
    padding-top: calc(var(--section-padding) + 40px);
    position: relative;
    background-image: url('downloads/fonshero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(4, 7, 13, 0.85) 0%,
            rgba(4, 7, 13, 0.7) 50%,
            rgba(4, 7, 13, 0.6) 100%);
    z-index: 0;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: auto;
    height: 80px;
    margin-bottom: 24px;
    display: block;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-badge-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    max-width: 900px;
}

.hero h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-store-badge {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.app-store-badge img {
    height: 54px;
    width: auto;
}

.secondary-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.secondary-link:hover {
    color: var(--accent-primary);
}

.secondary-link svg {
    width: 20px;
    height: 20px;
}

/* iPhone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.iphone-container {
    position: relative;
    width: 340px;
    height: auto;
}

.iphone-bezel {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.4));
}

.iphone-screen {
    position: absolute;
    top: 1.8%;
    left: 4.5%;
    width: 91%;
    height: 96.4%;
    border-radius: 40px;
    overflow: hidden;
    z-index: 1;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    background: linear-gradient(145deg, #1a1f2e, #0f1320);
    border-radius: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    box-shadow:
        0 60px 120px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0f1a 0%, #04070d 100%);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-screen-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.phone-screen-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Screenshot Carousel */
.screenshot-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Floating elements around phone */
.floating-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--shadow-large);
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    right: -20%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    left: -15%;
    animation-delay: -2s;
}

.floating-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.floating-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    position: relative;
    background-image: url('downloads/features-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            var(--bg-primary) 0%,
            rgba(4, 7, 13, 0.92) 15%,
            rgba(4, 7, 13, 0.9) 85%,
            var(--bg-primary) 100%);
    z-index: 0;
}

.features>* {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Feature Blocks */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.feature-block+.feature-block {
    border-top: 1px solid var(--border-subtle);
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse>* {
    direction: ltr;
}

.feature-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.feature-block-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.feature-block-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 440px;
}

.feature-block-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-block-visual img,
.feature-block-visual [data-widget] {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 20px;
}

.feature-block-visual img {
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Feature Carousel */
.feature-carousel {
    position: relative;
}

.feature-carousel img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.feature-carousel img.active {
    position: relative;
    left: auto;
    transform: none;
    opacity: 1;
}

/* Screenshots Section */
.screenshots {
    padding: var(--section-padding) 0;
    overflow: hidden;
    position: relative;
    background-image: url('downloads/fonshero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.screenshots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            var(--bg-primary) 0%,
            rgba(4, 7, 13, 0.85) 20%,
            rgba(4, 7, 13, 0.8) 80%,
            var(--bg-primary) 100%);
    z-index: 0;
}

.screenshots>* {
    position: relative;
    z-index: 1;
}

.screenshots-scroll {
    display: flex;
    gap: 24px;
    padding: 20px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 260px;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.screenshot-item:hover img {
    border-color: rgba(77, 224, 255, 0.25);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(77, 224, 255, 0.08);
}

.screenshot-label {
    display: block;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.screenshot-item:hover .screenshot-label {
    color: var(--text-secondary);
}

/* Privacy Section */
.privacy {
    padding: var(--section-padding) 0;
}

.privacy-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.privacy-shield {
    width: 36px;
    height: 36px;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.privacy-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 16px;
}

.privacy-header>p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.privacy-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.privacy-pillar {
    padding: 32px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-pillar:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pillar-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.privacy-pillar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.privacy-pillar p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding) 0;
    position: relative;
    background-image: url('downloads/fonshero.jpg');
    background-size: cover;
    background-position: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 13, 0.85);
}

.cta-section>.container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom .social-links {
    display: flex;
    gap: 16px;
}

.footer-bottom .social-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-bottom .social-links a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 32px;
        overflow: hidden;
    }

    .iphone-container {
        width: 280px;
    }

    .floating-card {
        display: none;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .privacy-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .privacy-pillar:nth-child(2) {
        border-right: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-lang {
        margin-left: auto;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-logo {
        height: 48px;
        margin-bottom: 16px;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-visual img {
        max-width: 260px;
    }

    .iphone-container {
        width: 240px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .feature-block {
        padding: 36px 0;
        gap: 32px;
    }

    .feature-block-content h3 {
        font-size: 1.4rem;
    }

    .feature-block-content p {
        font-size: 0.95rem;
    }

    .feature-block-visual img {
        max-width: 100%;
    }

    .screenshot-item {
        flex: 0 0 200px;
    }

    .privacy-pillars {
        grid-template-columns: 1fr;
    }

    .privacy-pillar:not(:last-child) {
        border-right: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ===== Styles for Legal Pages (kept for compatibility) ===== */

/* New legal section style - works with main navbar */
.legal-section {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-section .container {
    max-width: 900px;
}

/* Legacy page wrapper style */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page header {
    padding: 32px 24px 0;
}

.page .logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.page .logo span {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
}

.page main {
    flex: 1;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
}

.page footer {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page footer nav {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.page footer nav a {
    color: var(--text-secondary);
    text-decoration: none;
}

.legal-page main {
    padding-top: 20px;
}

.legal-content {
    width: min(840px, 100%);
    padding: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-content h1 {
    color: var(--text-primary);
    margin-top: 0;
}

.legal-content h2 {
    color: var(--text-primary);
    margin-top: 32px;
}

.legal-content h3 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content .highlight-box {
    background: rgba(77, 224, 255, 0.06);
    border: 1px solid rgba(77, 224, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

.legal-content .warning-box {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.legal-content th,
.legal-content td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-content th {
    color: var(--text-primary);
    font-weight: 600;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.lang-selector {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lang-selector a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.lang-selector a:hover {
    border-color: var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
}

.lang-selector a.active {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(77, 224, 255, 0.08);
}

.tag {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ===== Support Page Styles ===== */

.support-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Mini Status Banner */
.support-mini-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #22c55e;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.support-mini-status:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
}

.support-mini-status.degraded {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.support-mini-status.down {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.support-mini-status .mini-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s infinite;
}

/* Support Header */
.support-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.support-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.support-header .support-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.support-header .lang-selector {
    justify-content: center;
}

/* Category Navigation Cards */
.support-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 64px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--border-accent);
    background: rgba(77, 224, 255, 0.04);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.category-card svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.category-card:hover svg {
    opacity: 1;
}

.category-card span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* FAQ Sections */
.support-section {
    margin-bottom: 48px;
}

.support-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.support-section-header svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.support-section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* FAQ Accordion Items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item[open] {
    border-color: var(--border-accent);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(245,247,251,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-answer a {
    color: var(--accent-primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer .highlight-box {
    background: rgba(77, 224, 255, 0.06);
    border: 1px solid rgba(77, 224, 255, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 0.88rem;
}

/* Contact Card */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.contact-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-card .contact-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 24px;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-method:hover {
    border-color: var(--border-accent);
    background: rgba(77, 224, 255, 0.04);
}

.contact-method .contact-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-method .contact-email {
    color: var(--accent-primary);
    font-size: 0.92rem;
    font-weight: 500;
}

.contact-response-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.contact-response-time svg {
    width: 14px;
    height: 14px;
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Support Page Responsive */
@media (max-width: 1024px) {
    .support-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .support-page {
        padding-top: 100px;
    }

    .support-header h1 {
        font-size: 1.6rem;
    }

    .support-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-card {
        padding: 18px 12px;
    }

    .category-card span {
        font-size: 0.8rem;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .faq-item summary {
        font-size: 0.9rem;
        padding: 16px;
    }

    .faq-answer {
        padding: 0 16px 16px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .support-categories {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Status Page Styles ===== */
.status-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.status-header {
    text-align: center;
    margin-bottom: 48px;
}

.status-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.status-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Status Banner */
.status-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 48px;
    transition: all 0.3s ease;
}

.status-banner.operational {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-banner.degraded {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.status-banner.down {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-banner.unknown {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.status-banner.operational .status-dot {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.status-banner.degraded .status-dot {
    background: #facc15;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
}

.status-banner.down .status-dot {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.status-banner.unknown .status-dot {
    background: var(--text-muted);
}

.status-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    margin-bottom: 48px;
}

.services-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: var(--border-accent);
}

.service-card.loading {
    opacity: 0.6;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-uptime {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.service-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-status.operational {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.service-status.degraded {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.service-status.down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.service-status.unknown {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.status-dot-small {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Uptime Section */
.uptime-section {
    margin-bottom: 48px;
}

.uptime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.uptime-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.uptime-range {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.uptime-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.uptime-service {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px 24px;
}

.uptime-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.uptime-service-name {
    font-weight: 600;
    color: var(--text-primary);
}

.uptime-percentage {
    color: #22c55e;
    font-weight: 500;
    font-size: 0.9rem;
}

.uptime-bars {
    display: flex;
    gap: 2px;
    height: 32px;
    align-items: flex-end;
}

.uptime-bar {
    flex: 1;
    min-width: 2px;
    height: 100%;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.uptime-bar:hover {
    transform: scaleY(1.1);
    opacity: 0.8;
}

.uptime-bar.bar-operational {
    background: #22c55e;
}

.uptime-bar.bar-degraded {
    background: #facc15;
}

.uptime-bar.bar-down {
    background: #ef4444;
}

.uptime-bar.bar-empty {
    background: var(--border-subtle);
}

.uptime-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

/* Status Info Note */
.status-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(77, 224, 255, 0.06);
    border: 1px solid rgba(77, 224, 255, 0.15);
    border-radius: 12px;
}

.status-info svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.status-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.status-info a {
    color: var(--accent-primary);
    text-decoration: none;
}

.status-info a:hover {
    text-decoration: underline;
}

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

.footer-links-mini a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links-mini a:hover {
    color: var(--text-primary);
}

/* Status Page Responsive */
@media (max-width: 768px) {
    .status-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }

    .service-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .uptime-bars {
        height: 24px;
    }

    .uptime-bar {
        min-width: 1px;
    }

    .footer-links-mini {
        gap: 16px;
    }
}

/* ========================================
   Legal Pages v2 — Terms & Privacy Redesign
   ======================================== */

.legal-v2 {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Header */
.legal-v2-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.legal-v2-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.legal-v2-header .legal-v2-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.legal-v2-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

.legal-v2-header .lang-selector {
    justify-content: center;
}

/* Layout: TOC + Content */
.legal-v2-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Table of Contents */
.legal-v2-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.legal-v2-toc h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 16px;
    font-weight: 600;
}

.legal-v2-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-v2-toc li {
    margin-bottom: 2px;
}

.legal-v2-toc a {
    display: block;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.legal-v2-toc a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.legal-v2-toc a.active {
    color: var(--accent-primary);
    background: rgba(77, 224, 255, 0.06);
}

/* Content Area */
.legal-v2-body {
    color: var(--text-secondary);
    line-height: 1.75;
    min-width: 0;
}

/* Section */
.legal-v2-section {
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-v2-section:first-child {
    padding-top: 0;
}

.legal-v2-section:last-child {
    border-bottom: none;
}

.legal-v2-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.legal-v2-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.legal-v2-section p {
    margin: 0 0 14px;
}

.legal-v2-section ul,
.legal-v2-section ol {
    padding-left: 20px;
    margin: 0 0 14px;
}

.legal-v2-section li {
    margin-bottom: 6px;
}

.legal-v2-section a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-v2-section a:hover {
    text-decoration: underline;
}

/* Callout boxes */
.legal-v2-callout {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-v2-callout p {
    margin: 8px 0 0;
}

.legal-v2-callout.info {
    border-left: 3px solid var(--accent-primary);
    background: rgba(77, 224, 255, 0.04);
}

.legal-v2-callout.warning {
    border-left: 3px solid #facc15;
    background: rgba(250, 204, 21, 0.04);
}

.legal-v2-callout.warning strong {
    color: #facc15;
}

.legal-v2-callout.info strong {
    color: var(--accent-primary);
}

/* Tables */
.legal-v2-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}

.legal-v2-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-v2-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.legal-v2-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.legal-v2-table a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-v2-table a:hover {
    text-decoration: underline;
}

/* Contact card */
.legal-v2-contact {
    margin-top: 48px;
    padding: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-v2-contact h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.legal-v2-contact p {
    color: var(--text-secondary);
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.legal-v2-contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.legal-v2-contact-item {
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.legal-v2-contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.legal-v2-contact-item .contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.legal-v2-contact-item .contact-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.92rem;
}

.legal-v2-contact-item a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-v2-contact-item a:hover {
    text-decoration: underline;
}

/* Cross-links */
.legal-v2-related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.legal-v2-related a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-v2-related a:hover {
    text-decoration: underline;
}

/* Legal v2 Responsive */
@media (max-width: 900px) {
    .legal-v2-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .legal-v2-toc {
        position: relative;
        top: 0;
        max-height: none;
        overflow: visible;
        padding: 0 0 32px;
        margin-bottom: 32px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .legal-v2-toc ol {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .legal-v2-toc li {
        margin-bottom: 0;
    }

    .legal-v2-toc a {
        padding: 4px 10px;
        font-size: 0.78rem;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .legal-v2-header h1 {
        font-size: 1.8rem;
    }

    .legal-v2-section {
        padding: 24px 0;
    }

    .legal-v2-contact {
        padding: 24px;
    }

    .legal-v2-contact-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Privacy Page V3 — Glassmorphism ===== */

.pp {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Hero */
.pp-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.pp-hero-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    opacity: 0.9;
}

.pp-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.pp-hero-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pp-hero-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto 28px;
}

/* Language Selector */
.pp-langs {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pp-langs a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.pp-langs a:hover {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.pp-langs a.active {
    color: var(--accent-primary);
    border-color: rgba(77, 224, 255, 0.25);
    background: rgba(77, 224, 255, 0.06);
}

/* Two-column layout */
.pp-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}

/* Table of contents */
.pp-toc {
    position: sticky;
    top: 100px;
}

.pp-toc-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pp-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pp-toc li {
    margin-bottom: 2px;
}

.pp-toc a {
    display: block;
    padding: 5px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    line-height: 1.4;
    border-left: 2px solid transparent;
}

.pp-toc a:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.pp-toc a.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    background: rgba(77, 224, 255, 0.04);
}

/* Main content */
.pp-main {
    min-width: 0;
}

/* Section cards */
.pp-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.pp-section:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.pp-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pp-section-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    opacity: 0.8;
    flex-shrink: 0;
}

.pp-section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0;
}

.pp-section h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.pp-section p,
.pp-section li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pp-section p {
    margin-bottom: 12px;
}

.pp-section p:last-child {
    margin-bottom: 0;
}

.pp-section ul,
.pp-section ol {
    padding-left: 18px;
    margin-bottom: 12px;
}

.pp-section li {
    margin-bottom: 6px;
}

.pp-section a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.pp-section a:hover {
    opacity: 0.8;
}

.pp-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Callout boxes */
.pp-callout {
    background: rgba(77, 224, 255, 0.04);
    border: 1px solid rgba(77, 224, 255, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

.pp-callout p {
    margin-bottom: 8px;
}

.pp-callout p:last-child {
    margin-bottom: 0;
}

.pp-callout-warn {
    background: rgba(251, 191, 36, 0.04);
    border-color: rgba(251, 191, 36, 0.12);
}

/* Services grid */
.pp-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.pp-service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s ease;
}

.pp-service-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.pp-service-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pp-service-purpose {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.pp-service-link {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.pp-service-link:hover {
    opacity: 1;
}

/* Security features pills */
.pp-security-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.pp-security-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: border-color 0.2s ease;
}

.pp-security-pill:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.pp-security-pill strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Contact card */
.pp-contact {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    margin-top: 8px;
    text-align: center;
}

.pp-contact h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pp-contact p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pp-contact-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pp-contact-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pp-contact-link:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.pp-contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.pp-contact-email {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

/* Related docs */
.pp-related {
    margin-top: 20px;
    text-align: center;
    padding: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pp-related a {
    color: var(--accent-primary);
    text-decoration: none;
}

.pp-related a:hover {
    opacity: 0.8;
}

/* ===== Privacy Page V3 Responsive ===== */

@media (max-width: 860px) {
    .pp-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pp-toc {
        position: static;
        padding: 0 0 24px;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .pp-toc ol {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .pp-toc li {
        margin-bottom: 0;
    }

    .pp-toc a {
        padding: 4px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .pp-toc a.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-primary);
    }
}

@media (max-width: 640px) {
    .pp {
        padding-top: 80px;
    }

    .pp-hero h1 {
        font-size: 1.8rem;
    }

    .pp-section {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .pp-services {
        grid-template-columns: 1fr;
    }

    .pp-security-grid {
        flex-direction: column;
    }

    .pp-contact {
        padding: 24px 20px;
    }

    .pp-contact-links {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ═══════════════════════════════════════════ */
/* Pricing Page                                */
/* ═══════════════════════════════════════════ */

.pricing-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.pricing-page .section-header {
    margin-bottom: 56px;
}

.pricing-hero {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.pricing-hero-price {
    font-size: clamp(3.5rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.pricing-hero-period {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-hero-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.pricing-hero-trial {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-hero-trial strong {
    color: var(--text-primary);
}

.pricing-includes {
    max-width: 560px;
    margin: 56px auto 48px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 48px;
}

.pricing-includes-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.pricing-includes ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
}

.pricing-includes li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.pricing-includes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.pricing-cta-wrap {
    text-align: center;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
}

.pricing-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pricing-cta-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

/* Pricing FAQ */
.pricing-faq {
    padding: var(--section-padding) 0;
}

.pricing-faq .section-header {
    margin-bottom: 24px;
}

.pricing-faq .faq-list {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .pricing-includes ul {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════ */
/* Pricing Section (Homepage)                  */
/* ═══════════════════════════════════════════ */

.pricing-section {
    padding: var(--section-padding) 0;
}

.pricing-details-link {
    display: block;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pricing-details-link:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════ */
/* Cookie Consent Banner                       */
/* ═══════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;
    width: calc(100% - 48px);
    max-width: 520px;
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(77, 224, 255, 0.05);
    animation: cookie-slide-up 0.5s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes cookie-slide-up {
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    animation: cookie-slide-down 0.3s ease forwards;
}

@keyframes cookie-slide-down {
    to {
        transform: translateX(-50%) translateY(120%);
        opacity: 0;
    }
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.cookie-banner a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.cookie-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 32px);
        padding: 20px;
        border-radius: 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }
}

