/* ============================================================
           Obsidian Amber design — Terms of Service page
           ============================================================ */

        :root {
            --ink: #0a0a0a;
            --ink-soft: #3f3f46;
            --muted: #6b7280;
            --faint: #9ca3af;
            --line: #e7e8ec;
            --surface: #ffffff;
            --surface-alt: #f7f7f9;
            --accent-amber: #f59e0b;
            --accent-amber-deep: #d97706;
            --accent-amber-light: #fbbf24;
            --accent-amber-dark: #b45309;
            --hero-dark: #070604;
        }

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

        body {
            background: linear-gradient(160deg, #fffbf2 0%, #ffffff 40%, #fffdf5 72%, #fff9ed 100%);
            color: var(--ink);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            margin: 0;
        }

        main h1, main h2, main h3 { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
        main p { margin: 0; }

        .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

        /* ---------- Scroll reveal ---------- */
        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .reveal.revealed { opacity: 1; transform: translateY(0); }
        .reveal-delay-1 { transition-delay: 0.08s; }
        .reveal-delay-2 { transition-delay: 0.16s; }
        .reveal-delay-3 { transition-delay: 0.24s; }

        /* ---------- Shared building blocks ---------- */
        .eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em;
            text-transform: uppercase; color: var(--accent-amber-deep); margin-bottom: 14px;
        }
        .eyebrow .dot {
            width: 7px; height: 7px; border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-amber-light), var(--accent-amber-deep));
            flex-shrink: 0; box-shadow: 0 0 6px rgba(245,158,11,0.55);
        }

        /* Glass card */
        .clean-card {
            background: rgba(255,255,255,0.78);
            border: 1px solid rgba(255,255,255,0.6);
            border-radius: 20px;
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 2px 12px rgba(15,23,42,0.05), 0 1px 3px rgba(15,23,42,0.03), inset 0 1px 0 rgba(255,255,255,0.88);
        }

        /* ==================== HERO (dark) ==================== */
        .page-hero {
            padding: 120px 0 80px;
            background: var(--hero-dark);
            position: relative; overflow: hidden; isolation: isolate;
        }
        .page-hero-mesh {
            position: absolute; inset: 0;
            background:
                radial-gradient(ellipse 70% 70% at 12% 40%, rgba(245,158,11,0.18) 0%, transparent 55%),
                radial-gradient(ellipse 50% 50% at 85% 20%, rgba(217,119,6,0.14) 0%, transparent 55%),
                radial-gradient(ellipse 40% 40% at 60% 90%, rgba(251,191,36,0.09) 0%, transparent 55%);
            animation: mesh-breathe 13s ease-in-out infinite;
            pointer-events: none;
        }
        @keyframes mesh-breathe {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.72; }
        }
        .page-hero-grid {
            position: absolute; inset: 0;
            background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
            background-size: 40px 40px;
            mask-image: linear-gradient(to bottom, transparent 5%, black 25%, black 75%, transparent 100%);
            pointer-events: none;
        }
        .page-hero .wrap { position: relative; z-index: 2; }

        /* Hero badge */
        .hero-badge {
            display: inline-flex; align-items: center; gap: 9px;
            padding: 7px 18px 7px 12px; border-radius: 999px;
            background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13);
            font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.72);
            backdrop-filter: blur(12px); margin-bottom: 24px;
        }
        .hero-badge .badge-dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-amber-light), var(--accent-amber));
            flex-shrink: 0; box-shadow: 0 0 8px rgba(245,158,11,0.7);
        }

        .page-hero h1 {
            font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em;
            color: #fff; font-weight: 800; margin-bottom: 20px;
        }
        .page-hero h1 em {
            font-style: normal;
            background: linear-gradient(135deg, #fde68a 0%, #fbbf24 40%, #d97706 100%);
            -webkit-background-clip: text; background-clip: text; color: transparent;
        }
        .page-hero-lead {
            font-size: 0.95rem; color: rgba(255,255,255,0.52); line-height: 1.8;
            max-width: 560px;
        }
        .page-hero-meta {
            display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
            margin-top: 32px;
        }
        .hero-meta-pill {
            display: inline-flex; align-items: center; gap: 7px;
            font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55);
        }
        .hero-meta-pill svg { color: var(--accent-amber); }

        /* ==================== LEGAL LAYOUT ==================== */
        .legal-outer {
            max-width: 1160px; margin: 0 auto; padding: 52px 24px 96px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 28px;
            align-items: flex-start;
        }

        /* ---- TOC Sidebar ---- */
        .legal-toc {
            position: sticky; top: 88px;
            border-radius: 20px;
            overflow: hidden;
        }
        .legal-toc-header {
            padding: 18px 22px 14px;
            background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(217,119,6,0.06));
            border-bottom: 1px solid rgba(245,158,11,0.18);
        }
        .legal-toc-header .eyebrow { margin-bottom: 4px; }
        .legal-toc-header span {
            font-size: 0.75rem; color: var(--muted); font-weight: 500; display: block;
        }
        .legal-toc nav { padding: 10px 0; }
        .legal-toc-link {
            display: flex; align-items: center; gap: 10px;
            padding: 9px 22px;
            font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
            text-decoration: none;
            border-left: 2.5px solid transparent;
            transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
        }
        .legal-toc-link:hover {
            background: rgba(245,158,11,0.06); color: var(--accent-amber-deep);
            border-left-color: rgba(245,158,11,0.35);
        }
        .legal-toc-link.active {
            background: rgba(245,158,11,0.09); color: var(--accent-amber-deep);
            border-left-color: var(--accent-amber);
        }
        .toc-num {
            display: inline-flex; align-items: center; justify-content: center;
            width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
            font-size: 10px; font-weight: 800;
            background: rgba(245,158,11,0.10); color: var(--accent-amber-deep);
        }
        .legal-toc-link.active .toc-num {
            background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-deep));
            color: #1a0e00;
        }

        /* ---- Legal Content ---- */
        .legal-body { display: flex; flex-direction: column; gap: 16px; }

        .legal-section {
            padding: 32px 36px;
            scroll-margin-top: 96px;
            position: relative;
        }
        .legal-section-head {
            display: flex; align-items: center; gap: 14px;
            margin-bottom: 22px;
            padding-bottom: 18px;
            border-bottom: 1px solid rgba(245,158,11,0.16);
        }
        .sec-badge {
            display: inline-flex; align-items: center; justify-content: center;
            width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
            background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(217,119,6,0.09));
            border: 1px solid rgba(245,158,11,0.22);
            font-size: 11px; font-weight: 800; color: var(--accent-amber-deep);
        }
        .legal-section h2 {
            font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink);
        }
        .legal-section h3 {
            font-size: 0.88rem; font-weight: 700; color: var(--ink);
            margin: 20px 0 9px;
            display: flex; align-items: center; gap: 8px;
        }
        .legal-section h3::before {
            content: '';
            display: inline-block; width: 3px; height: 14px; border-radius: 2px; flex-shrink: 0;
            background: linear-gradient(to bottom, var(--accent-amber), var(--accent-amber-deep));
        }
        .legal-section p {
            font-size: 0.9rem; color: var(--ink-soft); line-height: 1.82;
        }
        .legal-section p + p { margin-top: 10px; }
        .legal-section strong { color: var(--ink); font-weight: 700; }

        /* List */
        .legal-list {
            list-style: none; padding: 0; margin: 12px 0 0;
            display: flex; flex-direction: column; gap: 8px;
        }
        .legal-list li {
            display: flex; align-items: flex-start; gap: 10px;
            font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75;
        }
        .legal-list li .list-dot {
            flex-shrink: 0; margin-top: 6px;
            width: 6px; height: 6px; border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-deep));
        }

        /* Warning / highlight box */
        .legal-warning {
            display: flex; align-items: flex-start; gap: 13px;
            margin-top: 18px; padding: 16px 18px; border-radius: 14px;
            background: rgba(245,158,11,0.06);
            border: 1px solid rgba(245,158,11,0.22);
        }
        .legal-warning-icon {
            flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
            background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.22);
            display: flex; align-items: center; justify-content: center;
            color: var(--accent-amber-deep); font-size: 12px; margin-top: 1px;
        }
        .legal-warning p {
            font-size: 0.88rem; color: var(--ink-soft); line-height: 1.75; margin: 0;
        }

        /* Info box */
        .legal-info {
            margin-top: 18px; padding: 18px 20px; border-radius: 14px;
            background: var(--surface-alt);
            border: 1px solid var(--line);
        }
        .legal-info-row {
            display: flex; align-items: center; gap: 12px;
            font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6;
        }
        .legal-info-row + .legal-info-row { margin-top: 10px; }
        .legal-info-row .info-icon {
            flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
            background: rgba(255,255,255,0.85); border: 1px solid var(--line);
            display: flex; align-items: center; justify-content: center;
            color: var(--accent-amber-deep); font-size: 11px;
        }

        /* ==================== BOTTOM CTA ==================== */
        .legal-cta-section {
            padding: 0 0 80px;
        }
        .legal-cta-inner {
            border-radius: 24px;
            background: rgba(255,255,255,0.68); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
            border: 1px solid rgba(255,255,255,0.65);
            box-shadow: 0 20px 56px rgba(15,23,42,0.08), 0 4px 16px rgba(245,158,11,0.05), inset 0 1px 0 rgba(255,255,255,0.92);
            padding: 36px 40px;
            display: flex; align-items: center; justify-content: space-between;
            flex-wrap: wrap; gap: 24px;
            position: relative; overflow: hidden;
        }
        .legal-cta-inner::before {
            content: ''; position: absolute;
            width: 300px; height: 300px; border-radius: 50%;
            background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 65%);
            top: -140px; right: -60px; pointer-events: none;
        }
        .legal-cta-title {
            font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 6px;
        }
        .legal-cta-sub {
            font-size: 0.88rem; color: var(--muted);
        }
        .cta-btn-group { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

        .btn-pill {
            display: inline-flex; align-items: center; justify-content: center; gap: 7px;
            padding: 11px 22px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
            text-decoration: none; cursor: pointer; border: 1px solid transparent;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
            white-space: nowrap;
        }
        .btn-pill-amber {
            background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 60%, #fde68a 100%); color: #1a0e00;
            box-shadow: 0 3px 14px rgba(245,158,11,0.38), inset 0 1px 0 rgba(255,255,255,0.35);
        }
        .btn-pill-amber:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 26px rgba(245,158,11,0.50), inset 0 1px 0 rgba(255,255,255,0.4);
        }
        .btn-pill-light {
            background: rgba(255,255,255,0.75); color: var(--ink);
            border-color: rgba(230,232,240,0.8); backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
        }
        .btn-pill-light:hover {
            border-color: rgba(245,158,11,0.38); background: rgba(255,255,255,0.9);
            transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.08);
        }

        /* ==================== RESPONSIVE ==================== */
        @media (min-width: 860px) {
            .legal-outer {
                grid-template-columns: 240px 1fr;
            }
        }
        @media (max-width: 600px) {
            .legal-section { padding: 24px 20px; }
            .legal-cta-inner { padding: 28px 24px; }
        }

        @media (prefers-reduced-motion: reduce) {
            .page-hero-mesh { animation: none; }
            .reveal { opacity: 1; transform: none; transition: none; }
        }


/* ── Footnote / supplemental note within content sections ── */
.page-note {
    margin-top: 14px;
    font-size: 0.83rem;
    color: var(--faint);
}
