/* ═══════════════════════════════════════════════════════════════
   xcPEP Trust Center — Standalone CSS
   Design tokens extracted from ASI design system + page styles
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ── DESIGN TOKENS (from ASI design system) ── */
:root {
  --bg-body: #f4f5f9;
  --bg-white: #ffffff;
  --font-sans: 'Inter', sans-serif;
  --font-headline: 'Outfit', sans-serif;
  --text-heading: #0c0f1a;
  --text-body: #3a3f54;
  --text-muted: #727891;
  --heading-color: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #0a58ca;
  --glass-bg: rgba(255,255,255,0.55);
  --glass-border: 1px solid rgba(255,255,255,0.7);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.06);
  --accent-gradient: linear-gradient(135deg, #1a3a7a 0%, #0a58ca 40%, #3b82f6 100%);
}
[data-theme="dark"] {
  --bg-body: #060a14;
  --text-heading: #f1f5f9;
  --text-body: #94a3b8;
  --text-muted: rgba(255,255,255,0.45);
  --heading-color: #fff;
  --text-primary: rgba(255,255,255,0.85);
  --text-secondary: rgba(255,255,255,0.6);
  --accent-primary: #38bdf8;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: 1px solid rgba(255,255,255,0.08);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
body {
  background: var(--bg-body);
  color: var(--text-body);
  transition: background 0.4s ease, color 0.4s ease;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── GRADIENT TEXT ── */
.gradient-text, .tc-gradient {
  background: linear-gradient(135deg, #1a3a7a 0%, #0a58ca 40%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .gradient-text, [data-theme="dark"] .tc-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── XCPEP HEADER ── */
.xc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="dark"] .xc-header {
  background: rgba(10,15,30,0.75);
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.xc-header-logo {
  height: 28px; display: block;
  background: #fff; padding: 4px 8px; border-radius: 6px;
  transition: box-shadow 0.2s ease;
}
.xc-header-logo:hover { box-shadow: 0 2px 8px rgba(0,85,212,0.15); }
/* Theme Toggle - Segmented Sun/Moon */
.xc-theme-toggle {
  display: flex; align-items: center;
  position: relative;
  background: rgba(0,0,0,0.05);
  border-radius: 10px; border: none;
  padding: 2px; cursor: pointer;
  height: 36px;
  transition: background 0.3s ease;
}
[data-theme="dark"] .xc-theme-toggle { background: rgba(255,255,255,0.08); }
.xc-theme-slide {
  position: absolute; top: 2px; left: 2px;
  width: calc(50% - 2px); height: calc(100% - 4px);
  background: #fff;
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 0;
}
[data-theme="dark"] .xc-theme-slide { transform: translateX(100%); background: rgba(255,255,255,0.15); }
.xc-theme-seg {
  position: relative; z-index: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #64748b;
  transition: color 0.3s ease;
}
.xc-theme-seg.sun { color: #f59e0b; }
[data-theme="dark"] .xc-theme-seg.sun { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .xc-theme-seg.moon { color: #38bdf8; }

/* ── XCPEP FOOTER ── */
.xc-footer {
  background: #0055d4;
  color: rgba(255,255,255,0.85);
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  font-size: 0.82rem;
  transition: background 0.4s ease, color 0.4s ease;
}
[data-theme="dark"] .xc-footer {
  background: #0a1628;
  border-top: 1px solid rgba(56,189,248,0.08);
}
.xc-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
}
.xc-footer-brand-logo {
  height: 32px; margin-bottom: 1rem;
  background: #fff; padding: 5px 10px; border-radius: 8px;
  transition: box-shadow 0.2s ease;
}
.xc-footer-brand-logo:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.xc-footer-desc {
  font-size: 0.82rem; line-height: 1.7;
  color: rgba(255,255,255,0.7); max-width: 320px;
}
[data-theme="dark"] .xc-footer-desc { color: rgba(255,255,255,0.45); }
.xc-footer-heading {
  font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.8rem;
}
[data-theme="dark"] .xc-footer-heading { color: rgba(255,255,255,0.9); }
.xc-footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.xc-footer-links a {
  color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.82rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.xc-footer-links a:hover { color: #fff; padding-left: 3px; }
[data-theme="dark"] .xc-footer-links a { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .xc-footer-links a:hover { color: #38bdf8; }
.xc-footer-bottom {
  max-width: 1200px; margin: 2.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
}
[data-theme="dark"] .xc-footer-bottom {
  border-top-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
}
.xc-footer-social a {
  color: rgba(255,255,255,0.5); font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.xc-footer-social a:hover { color: #fff; transform: scale(1.15); }
[data-theme="dark"] .xc-footer-social a { color: rgba(255,255,255,0.3); }
[data-theme="dark"] .xc-footer-social a:hover { color: #38bdf8; }
@media (max-width: 768px) {
  .xc-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .xc-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .xc-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .xc-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}



/* ═══════════════════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES (from xcpep-tos.css)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   xcPEP Terms of Service - Premium Legal Hub
   Inspired by: Cost Lab, Homepage, Trust Center hero patterns
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero - Full Viewport, Theme-Aware ── */
.tos-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 56px;
    background-color: #060a14;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(14,165,233,0.08), transparent),
        radial-gradient(rgba(56,189,248,0.05) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px;
    background-position: center;
}
[data-theme="light"] .tos-hero {
    background-color: var(--bg-body, #f8faff);
    background-image: radial-gradient(rgba(14,165,233,0.08) 1px, transparent 1px);
}

.tos-mesh-1, .tos-mesh-2, .tos-mesh-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.tos-mesh-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.3), transparent 70%);
    top: -18%; left: -10%;
    opacity: 0.35;
    animation: tosMeshFloat 22s ease-in-out infinite;
}
.tos-mesh-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(34,211,238,0.25), transparent 70%);
    bottom: -10%; right: -8%;
    opacity: 0.25;
    animation: tosMeshFloat 22s ease-in-out infinite;
    animation-delay: -8s;
}
.tos-mesh-3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
    top: 35%; left: 55%;
    opacity: 0.2;
    animation: tosMeshFloat 22s ease-in-out infinite;
    animation-delay: -16s;
}
[data-theme="light"] .tos-mesh-1 { opacity: 0.15; }
[data-theme="light"] .tos-mesh-2 { opacity: 0.10; }
[data-theme="light"] .tos-mesh-3 { opacity: 0.08; }

@keyframes tosMeshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(35px, -45px) scale(1.06); }
    66% { transform: translate(-25px, 25px) scale(0.94); }
}

.tos-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.tos-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: tosFadeUp 0.6s ease forwards 0.15s;
}
[data-theme="light"] .tos-eyebrow { color: #64748b; }

.tos-eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34,211,238,0.6);
    animation: tosPulse 2s ease-in-out infinite;
}
@keyframes tosPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34,211,238,0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(34,211,238,0.3); }
}
.tos-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: tosFadeUp 0.6s ease forwards 0.3s;
}
[data-theme="light"] .tos-hero h1 { color: #0f172a; }

.tos-hero-subtitle {
    font-size: clamp(0.92rem, 1.6vw, 1.08rem);
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0;
    animation: tosFadeUp 0.6s ease forwards 0.45s;
}
[data-theme="light"] .tos-hero-subtitle { color: #475569; }

.tos-hero-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    opacity: 0;
    animation: tosFadeUp 0.6s ease forwards 0.55s;
}
[data-theme="light"] .tos-hero-date { color: #94a3b8; }

/* Hero Stats Row */
.tos-hero-stats {
    display: flex; justify-content: center; gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    animation: tosFadeUp 0.6s ease forwards 0.65s;
}
[data-theme="light"] .tos-hero-stats { border-top-color: rgba(0,0,0,0.06); }
.tos-hero-stat {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; font-weight: 500;
    color: rgba(255,255,255,0.45);
}
[data-theme="light"] .tos-hero-stat { color: #64748b; }
.tos-hero-stat-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(56,189,248,0.08);
    color: #38bdf8; font-size: 0.65rem;
}
[data-theme="light"] .tos-hero-stat-icon {
    background: rgba(14,165,233,0.06);
    color: #0055d4;
}
.tos-hero-stat-value {
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}
[data-theme="light"] .tos-hero-stat-value { color: #0f172a; }

/* Decorative floating icon behind hero */
.tos-hero-deco {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    width: 200px; height: 200px;
    opacity: 0.04;
    font-size: 180px;
    color: #38bdf8;
    z-index: 0;
    pointer-events: none;
}
[data-theme="light"] .tos-hero-deco { color: #0055d4; opacity: 0.03; }


/* ═══════════════════════════════════════════════════════════
   SUMMARY INDEX - Policy cards with "View" buttons
   ═══════════════════════════════════════════════════════════ */
.tos-index-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--bg-body, #060a14);
}
[data-theme="light"] .tos-index-section {
    background: var(--bg-body, #f8faff);
}
.tos-index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.tos-index-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.tos-index-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 0.6rem;
}
[data-theme="light"] .tos-index-eyebrow { color: #0284c7; }
.tos-index-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--heading-color, #fff);
    line-height: 1.2;
}
[data-theme="light"] .tos-index-title { color: #0f172a; }

.tos-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tos-index-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(56,189,248,0.10);
    border-radius: 1rem;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease, border-color 0.4s ease;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.tos-index-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.tos-index-item:hover {
    transform: translateY(-4px);
    border-color: rgba(56,189,248,0.25);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 0 24px rgba(56,189,248,0.06);
}
.tos-index-item:hover::before { opacity: 1; }
[data-theme="light"] .tos-index-item {
    background: rgba(255,255,255,0.7);
    border-color: rgba(14,165,233,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .tos-index-item:hover {
    border-color: rgba(14,165,233,0.3);
    box-shadow: 0 12px 40px rgba(14,165,233,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}

.tos-index-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(56,189,248,0.06));
    border: 1px solid rgba(56,189,248,0.15);
    color: #38bdf8;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="light"] .tos-index-icon {
    background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(14,165,233,0.03));
    border-color: rgba(14,165,233,0.18);
    color: #0284c7;
}
.tos-index-item:hover .tos-index-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

.tos-index-info {
    flex: 1;
    min-width: 0;
}
.tos-index-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading-color, #f1f5f9);
    margin-bottom: 0.3rem;
}
[data-theme="light"] .tos-index-name { color: #0f172a; }

.tos-index-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.55;
}
[data-theme="light"] .tos-index-desc { color: #64748b; }

.tos-index-view {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.15);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.25s ease;
    white-space: nowrap;
    margin-top: auto;
}
.tos-index-view:hover {
    background: rgba(56,189,248,0.18);
    border-color: rgba(56,189,248,0.35);
}
[data-theme="light"] .tos-index-view {
    color: #0284c7;
    background: rgba(14,165,233,0.06);
    border-color: rgba(14,165,233,0.18);
}
[data-theme="light"] .tos-index-view:hover {
    background: rgba(14,165,233,0.14);
    border-color: rgba(14,165,233,0.35);
}
.tos-index-view i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}
.tos-index-item:hover .tos-index-view i {
    transform: translateX(3px);
}


/* ═══════════════════════════════════════════════════════════
   BODY + CONTENT SECTIONS (unchanged)
   ═══════════════════════════════════════════════════════════ */
.tos-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}

.tos-policy-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}
.tos-policy-section:last-child {
    margin-bottom: 0;
}

/* Section Header */
.tos-section-header {
    margin-bottom: 1.5rem;
}
.tos-section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 0.6rem;
}
[data-theme="light"] .tos-section-eyebrow { color: #0284c7; }

.tos-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--heading-color, #fff);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
[data-theme="light"] .tos-section-title { color: #0f172a; }

/* Glass Card */
.tos-glass-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(56,189,248,0.10);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.03),
        0 8px 40px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.04);
}
[data-theme="light"] .tos-glass-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(14,165,233,0.15);
    box-shadow:
        0 0 0 1px rgba(14,165,233,0.06),
        0 4px 24px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Numbered section headings */
.tos-heading {
    display: flex;
    align-items: center;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}
.tos-heading:first-child { margin-top: 0; }

.tos-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    margin-right: 0.6rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(14,165,233,0.25);
    padding: 0 6px;
}
.tos-heading-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--heading-color, #fff);
}
[data-theme="light"] .tos-heading-text { color: #0f172a; }

.tos-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--heading-color, rgba(255,255,255,0.9));
    margin: 1rem 0 0.35rem;
}
[data-theme="light"] .tos-subheading { color: #0f172a; }

/* Body text */
.tos-text {
    font-size: 0.85rem;
    line-height: 1.72;
    color: var(--text-secondary, rgba(255,255,255,0.6));
}
[data-theme="light"] .tos-text { color: #334155; }
[data-theme="light"] .tos-text strong { color: #0f172a; }

.tos-text p { margin-bottom: 0.85rem; }
.tos-text p:last-child { margin-bottom: 0; }

.tos-text ul, .tos-text ol {
    padding: 0;
    margin: 0.6rem 0 1rem;
    list-style: none;
}
.tos-text ol { counter-reset: tos-ol; }
.tos-text ol li { counter-increment: tos-ol; }
.tos-text ol li::before {
    content: counter(tos-ol) ".";
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #38bdf8;
    opacity: 0.8;
}

.tos-text ul li, .tos-text ol li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.45rem;
    font-size: 0.83rem;
}
.tos-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    opacity: 0.6;
}

/* Divider */
.tos-divider {
    border: none;
    border-top: 1px solid rgba(56,189,248,0.06);
    margin: 1.2rem 0;
}
[data-theme="light"] .tos-divider { border-color: rgba(14,165,233,0.1); }

/* Section separator */
.tos-section-sep {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56,189,248,0.15), transparent);
    margin: 2.5rem 0;
}
[data-theme="light"] .tos-section-sep {
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.12), transparent);
}

/* Email links */
.tos-email {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}
.tos-email:hover { opacity: 0.7; }
[data-theme="light"] .tos-email { color: #0284c7; }

/* Contact CTA - Purple/Indigo Glassmorphic Variant */
.tos-contact-section {
    margin-top: 3rem;
}
.tos-contact-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05), rgba(56,189,248,0.03));
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    box-shadow: 0 12px 48px rgba(99,102,241,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.tos-contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa, transparent);
    opacity: 0.6;
}
[data-theme="light"] .tos-contact-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.03), rgba(255,255,255,0.6));
    border-color: rgba(99,102,241,0.15);
    box-shadow: 0 8px 32px rgba(99,102,241,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}
.tos-contact-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color, #fff);
    margin-bottom: 0.5rem;
}
[data-theme="light"] .tos-contact-title { color: #0f172a; }

.tos-contact-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255,255,255,0.55));
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
[data-theme="light"] .tos-contact-desc { color: #475569; }

.tos-email-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(139,92,246,0.06);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 100px;
    padding: 0.65rem 1.2rem;
    margin: 0.3rem 0.25rem;
    transition: border-color 0.25s ease;
}
.tos-email-row:hover { border-color: rgba(139,92,246,0.3); }
[data-theme="light"] .tos-email-row {
    background: rgba(255,255,255,0.8);
    border-color: rgba(99,102,241,0.15);
}
.tos-email-row i { color: #8b5cf6; font-size: 0.85rem; }
[data-theme="light"] .tos-email-row i { color: #6366f1; }
.tos-email-row span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-primary, rgba(255,255,255,0.85));
}
[data-theme="light"] .tos-email-row span { color: #0f172a; }

/* ═══════════════════════════════════════════════════════════
   READING PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
.xc-progress-bar {
  position: fixed; top: 0; left: 0; z-index: 1002;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, #0055d4, #38bdf8, #0ea5e9);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 8px rgba(56,189,248,0.4);
}

/* ═══════════════════════════════════════════════════════════
   STICKY SECTION NAVIGATOR
   ═══════════════════════════════════════════════════════════ */
.tos-sticky-nav {
  position: fixed; top: -60px; left: 0; right: 0; z-index: 999;
  height: 48px;
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: top 0.35s cubic-bezier(0.16,1,0.3,1);
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tos-sticky-nav::-webkit-scrollbar { display: none; }
.tos-sticky-nav.visible { top: 56px; }
[data-theme="dark"] .tos-sticky-nav {
  background: rgba(10,15,30,0.85);
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.tos-sticky-nav-item {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0 1rem; height: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  color: #64748b;
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  cursor: pointer; user-select: none;
  flex-shrink: 0;
}
.tos-sticky-nav-item:hover { color: #0055d4; }
[data-theme="dark"] .tos-sticky-nav-item { color: rgba(255,255,255,0.45); }
[data-theme="dark"] .tos-sticky-nav-item:hover { color: #38bdf8; }
.tos-sticky-nav-item.active {
  color: #0055d4; font-weight: 600;
  border-bottom-color: #0055d4;
}
[data-theme="dark"] .tos-sticky-nav-item.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}
.tos-sticky-nav-item i { font-size: 0.65rem; opacity: 0.7; }

/* ═══════════════════════════════════════════════════════════
   POLICY-LEVEL ACCORDION (whole card collapse/expand)
   ═══════════════════════════════════════════════════════════ */
.tos-policy-section .tos-section-header {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(56,189,248,0.06);
  border-radius: 16px;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
[data-theme="light"] .tos-policy-section .tos-section-header {
  background: rgba(255,255,255,0.7);
  border-color: rgba(14,165,233,0.08);
}
.tos-policy-section .tos-section-header:hover {
  opacity: 0.9;
  background: rgba(255,255,255,0.05);
  border-color: rgba(56,189,248,0.12);
}
[data-theme="light"] .tos-policy-section .tos-section-header:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(14,165,233,0.15);
}
.tos-policy-section.open .tos-section-header {
  border-color: rgba(56,189,248,0.15);
  background: rgba(56,189,248,0.04);
}
[data-theme="light"] .tos-policy-section.open .tos-section-header {
  background: rgba(14,165,233,0.04);
  border-color: rgba(14,165,233,0.12);
}
.tos-section-chevron {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(56,189,248,0.06);
  color: #38bdf8; font-size: 0.75rem;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), background 0.2s ease;
}
[data-theme="light"] .tos-section-chevron { background: rgba(14,165,233,0.06); color: #0055d4; }
.tos-policy-section.open .tos-section-chevron { transform: rotate(180deg); }
.tos-policy-section .tos-section-header:hover .tos-section-chevron { background: rgba(56,189,248,0.12); }

.tos-policy-section .tos-glass-card {
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
}
.tos-policy-section.open .tos-glass-card {
  max-height: 20000px;
  opacity: 1;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   CLAUSE COUNT BADGE
   ═══════════════════════════════════════════════════════════ */
.tos-clause-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 500;
  color: #38bdf8;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.1);
  border-radius: 100px;
  margin-left: 0.75rem;
  vertical-align: middle;
}
[data-theme="light"] .tos-clause-badge {
  color: #0055d4;
  background: rgba(0,85,212,0.05);
  border-color: rgba(0,85,212,0.1);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════════════════════ */
.xc-scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 998;
  width: 44px; height: 44px;
  border-radius: 14px; border: none;
  background: #0055d4; color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,85,212,0.3);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}
.xc-scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.xc-scroll-top:hover { background: #003da0; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,85,212,0.4); }
[data-theme="dark"] .xc-scroll-top { background: #0ea5e9; box-shadow: 0 4px 20px rgba(14,165,233,0.3); }
[data-theme="dark"] .xc-scroll-top:hover { background: #38bdf8; box-shadow: 0 6px 24px rgba(56,189,248,0.4); }

/* Animations */
@keyframes tosFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .tos-index-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Hero — tighter, breathing room */
    .tos-hero { min-height: 100vh; min-height: 100dvh; padding: 5rem 0 3rem; }
    .tos-hero-content { padding: 0 1.25rem; }
    .tos-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: 1rem; }
    .tos-hero-subtitle { font-size: 0.82rem; line-height: 1.65; margin-bottom: 1rem; }
    .tos-hero-date { font-size: 0.65rem; }
    .tos-hero-stats { gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1rem; }
    .tos-hero-stat { font-size: 0.68rem; }
    .tos-hero-stat-icon { width: 24px; height: 24px; font-size: 0.58rem; border-radius: 6px; }
    .tos-hero-deco { display: none; }
    .tos-eyebrow { font-size: 0.65rem; margin-bottom: 1rem; }

    /* Index — compact list */
    .tos-index-section { padding: 2rem 0; }
    .tos-index-container { padding: 0 1rem; }
    .tos-index-header { margin-bottom: 1.25rem; }
    .tos-index-title { font-size: 1.3rem; }
    .tos-index-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid rgba(56,189,248,0.10); border-radius: 1rem; overflow: hidden; }
    .tos-index-item { flex-direction: row; align-items: center; padding: 0.85rem 1rem; gap: 0.7rem; border-radius: 0; border: none; border-bottom: 1px solid rgba(56,189,248,0.06); background: rgba(255,255,255,0.02); backdrop-filter: none; box-shadow: none; min-height: unset; }
    .tos-index-item:last-child { border-bottom: none; }
    .tos-index-item::before { display: none; }
    .tos-index-item:hover { transform: none; }
    [data-theme="light"] .tos-index-item { background: rgba(255,255,255,0.7); border-bottom-color: rgba(14,165,233,0.08); }
    .tos-index-icon { width: 30px; height: 30px; font-size: 0.72rem; border-radius: 8px; flex-shrink: 0; }
    .tos-index-name { font-size: 0.8rem; }
    .tos-index-desc { font-size: 0.68rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .tos-index-view { padding: 0.3rem 0.6rem; font-size: 0.65rem; margin-top: 0; align-self: center; flex-shrink: 0; }

    /* Body — refined spacing */
    .tos-body { padding: 1.5rem 1rem; }
    /* Section headers — mobile polish */
    .tos-policy-section .tos-section-header { padding: 1rem 1.1rem; border-radius: 12px; }
    .tos-section-eyebrow { font-size: 0.62rem; margin-bottom: 0.3rem; }
    .tos-section-title { font-size: 1.15rem; line-height: 1.3; }
    .tos-section-chevron { width: 30px; height: 30px; font-size: 0.6rem; border-radius: 8px; }
    .tos-policy-section.open .tos-glass-card { margin-top: 0.75rem; }
    .tos-glass-card { padding: 1.25rem 1rem; border-radius: 1rem; }
    .tos-heading { margin-top: 1rem; margin-bottom: 0.35rem; }
    .tos-num { min-width: 22px; height: 22px; font-size: 0.58rem; border-radius: 6px; margin-right: 0.4rem; }
    .tos-section-sep { margin: 1rem 0; opacity: 0.3; }
    .tos-heading-text { font-size: 0.84rem; }
    .tos-text { font-size: 0.76rem; line-height: 1.65; }
    .tos-text p { margin-bottom: 0.55rem; }
    .tos-text ul li, .tos-text ol li { font-size: 0.73rem; padding-left: 1rem; margin-bottom: 0.3rem; }
    .tos-text ul li::before { width: 4px; height: 4px; }
    .tos-divider { margin: 0.65rem 0; }
    .tos-subheading { font-size: 0.78rem; }

    /* Contact — centered, compact */
    .tos-contact-section { margin-top: 1rem; }
    .tos-contact-card { padding: 1.25rem 1rem; border-radius: 1rem; }
    .tos-contact-title { font-size: 1rem; }
    .tos-contact-desc { font-size: 0.75rem; margin-bottom: 0.75rem; }
    .tos-email-row { padding: 0.5rem 0.75rem; border-radius: 0.75rem; justify-content: center; }
    .tos-email-row i { font-size: 0.75rem; }
    .tos-email-row span { font-size: 0.72rem; }

    /* Hide sticky nav on mobile — index cards serve as navigation */
    .tos-sticky-nav { display: none !important; }
    .tos-clause-badge { display: none; }
    .xc-scroll-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; border-radius: 12px; }
}

@media (max-width: 420px) {
    .tos-hero { padding: 4.5rem 0 2.5rem; }
    .tos-hero-content { padding: 0 1rem; }
    .tos-hero h1 { font-size: 1.55rem; letter-spacing: -0.02em; }
    .tos-hero-subtitle { font-size: 0.78rem; }
    .tos-hero-stats { gap: 1rem; }
    .tos-hero-stat { font-size: 0.62rem; }
    .tos-eyebrow { font-size: 0.6rem; letter-spacing: 0.1em; }

    .tos-index-container { padding: 0 0.75rem; }
    .tos-index-title { font-size: 1.15rem; }
    .tos-index-item { padding: 0.75rem 0.85rem; }
    .tos-index-desc { display: none; }

    .tos-body { padding: 1rem 0.65rem; }
    .tos-section-title { font-size: 1.05rem; }
    .tos-glass-card { padding: 1rem 0.8rem; border-radius: 0.85rem; }
    .tos-text { font-size: 0.73rem; }
    .tos-heading-text { font-size: 0.8rem; }
    .tos-section-sep { margin: 1.25rem 0; }

    .tos-contact-card { padding: 1rem 0.85rem; }
    .tos-email-row { padding: 0.45rem 0.65rem; }
    .tos-sticky-nav-item { padding: 0 0.5rem; font-size: 0.64rem; }
}
