/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  --ink:      #0d1117;
  --ink2:     #1e2a38;
  --steel:    #1b95c5;
  --steel-dk: #1378a0;
  --bronze:   #ab7442;
  --cream:    #f7f4ef;
  --paper:    #ffffff;
  --muted:    #6b7280;
  --border:   #e2e0da;
  --success:  #2d7d4f;
  --danger:   #c0392b;
  --radius:   6px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --ff-head:  'DM Serif Display', Georgia, serif;
  --ff-body:  'DM Sans', sans-serif;
  --ff-mono:  'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--ff-body); background: var(--cream); color: var(--ink); overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 68px;
  background: rgba(247,244,239,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1100px; width: 100%; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--ff-mono); font-size: 14px; font-weight: 700;
  color: var(--ink); letter-spacing: 2px; text-decoration: none;
}
.nav-brand span { color: var(--steel); }
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: var(--ink2);
  text-decoration: none; border: 1.5px solid var(--border);
  transition: all .15s;
}
.nav-back:hover { border-color: var(--steel); color: var(--steel); }

/* ═══════════════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════════════ */
.doc-hero {
  padding: 108px 24px 56px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(27,149,197,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 85% 75%, rgba(45,125,79,.05) 0%, transparent 55%),
    var(--cream);
  position: relative; overflow: hidden;
}
.doc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,.025) 39px, rgba(0,0,0,.025) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,.025) 39px, rgba(0,0,0,.025) 40px);
  pointer-events: none;
}
.doc-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.doc-eyebrow {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 3px; color: var(--success); text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.doc-eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 2px; background: var(--success);
}
.doc-hero h1 {
  font-family: var(--ff-head); font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1; color: var(--ink); margin-bottom: 16px;
}
.doc-hero h1 em { color: var(--steel); font-style: normal; }
.doc-hero-sub {
  font-size: 15px; line-height: 1.75; color: var(--muted);
  max-width: 540px; margin-bottom: 20px;
}
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 13px; color: var(--muted); margin-top: 4px;
}
.doc-meta span { display: flex; align-items: center; gap: 6px; }
.doc-meta i { color: var(--success); }

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */
.doc-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR TOC
═══════════════════════════════════════════════════ */
.toc {
  position: sticky; top: 88px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.toc-label {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 3px; color: var(--success); text-transform: uppercase;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  display: block; padding: 5px 8px; border-radius: 4px;
  font-size: 12px; color: var(--muted); text-decoration: none;
  transition: all .15s; line-height: 1.4;
}
.toc-list a:hover { background: var(--cream); color: var(--steel); }
.toc-list a.active { background: rgba(27,149,197,.08); color: var(--steel); font-weight: 600; }
.toc-num {
  font-family: var(--ff-mono); font-size: 10px; color: var(--border);
  margin-right: 4px;
}
.toc-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 10px 0;
}
.toc-contact {
  font-size: 11px; color: var(--muted); padding: 8px;
  line-height: 1.6;
}
.toc-contact a { color: var(--steel); text-decoration: none; }

/* ═══════════════════════════════════════════════════
   DOCUMENT BODY
═══════════════════════════════════════════════════ */
.doc-body { min-width: 0; }

/* Intro box */
.intro-box {
  background: var(--paper); border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: 0 8px 8px 0; padding: 18px 22px;
  margin-bottom: 36px;
}
.intro-box p { font-size: 14px; line-height: 1.8; color: var(--ink2); margin-bottom: 10px; }
.intro-box p:last-child { margin-bottom: 0; }

.clause {
  margin-bottom: 48px;
  scroll-margin-top: 88px;
}
.clause-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.clause-num {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  color: var(--success); letter-spacing: 1px;
  background: rgba(45,125,79,.08); border: 1px solid rgba(45,125,79,.15);
  border-radius: 4px; padding: 3px 8px;
  white-space: nowrap; flex-shrink: 0; margin-top: 4px;
}
.clause h2 {
  font-family: var(--ff-head); font-size: clamp(18px, 2.5vw, 24px);
  color: var(--ink); line-height: 1.2;
}

.clause p {
  font-size: 14.5px; line-height: 1.85; color: var(--ink2);
  margin-bottom: 14px;
}
.clause p:last-child { margin-bottom: 0; }

/* Sub-section headings */
.sub-heading {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; color: var(--bronze); text-transform: uppercase;
  margin: 24px 0 10px;
}

/* Data cards grid */
.data-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 14px 0;
}
.data-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
}
.data-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(27,149,197,.1); color: var(--steel);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; margin-bottom: 10px;
}
.data-card h4 {
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.data-card p { font-size: 12.5px; line-height: 1.65; color: var(--muted); margin: 0; }

/* Bullet list */
.clause-list { list-style: none; margin: 10px 0 14px; }
.clause-list li {
  font-size: 14px; line-height: 1.75; color: var(--ink2);
  padding: 5px 0 5px 22px; position: relative;
  border-bottom: 1px solid var(--border);
}
.clause-list li:last-child { border-bottom: none; }
.clause-list li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
}
.clause-list li strong { color: var(--ink); }

/* Purpose table */
.purpose-table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 13.5px;
}
.purpose-table th {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  padding: 10px 14px; background: var(--cream);
  border-bottom: 1.5px solid var(--border); text-align: left;
}
.purpose-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  color: var(--ink2); line-height: 1.6; vertical-align: top;
}
.purpose-table tr:last-child td { border-bottom: none; }
.purpose-table tr:hover td { background: rgba(45,125,79,.02); }
.basis-badge {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}
.basis-consent  { background: rgba(27,149,197,.1); color: var(--steel); }
.basis-contract { background: rgba(45,125,79,.1); color: var(--success); }
.basis-legal    { background: rgba(192,57,43,.08); color: var(--danger); }
.basis-legit    { background: rgba(171,116,66,.1); color: var(--bronze); }

/* Rights cards */
.rights-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 14px 0;
}
.right-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.right-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(45,125,79,.08); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.right-card h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.right-card p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Info box */
.info-box {
  background: rgba(27,149,197,.05); border: 1px solid rgba(27,149,197,.15);
  border-left: 3px solid var(--steel);
  border-radius: 0 6px 6px 0; padding: 14px 18px; margin: 14px 0;
}
.info-box p { font-size: 13.5px; line-height: 1.7; color: var(--ink2); margin: 0; }

/* Cookie table */
.cookie-table {
  width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px;
}
.cookie-table th {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  padding: 8px 12px; background: var(--cream);
  border-bottom: 1.5px solid var(--border); text-align: left;
}
.cookie-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  color: var(--ink2); line-height: 1.6; vertical-align: top;
}
.cookie-table tr:last-child td { border-bottom: none; }
.ck-required { color: var(--success); font-weight: 700; font-size: 11px; }
.ck-optional { color: var(--bronze); font-weight: 700; font-size: 11px; }

/* Contact card */
.contact-card {
  background: var(--ink2); border-radius: 12px; padding: 28px 32px;
  display: flex; gap: 24px; align-items: center; margin-top: 48px;
  flex-wrap: wrap;
}
.contact-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: rgba(27,149,197,.2); color: #4fc3f7;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-text h3 {
  font-family: var(--ff-head); font-size: 20px; color: #fff; margin-bottom: 4px;
}
.contact-text p { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 12px; line-height: 1.6; }
.contact-text a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius);
  background: var(--steel); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .15s;
}
.contact-text a:hover { background: var(--steel-dk); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.doc-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 12px; color: var(--muted);
}
.doc-footer a { color: var(--steel); text-decoration: none; }
.doc-footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .contact-card { flex-direction: column; }
}