/* Helix legal centre — same tokens and type as the landing site, tuned for long-form reading. */
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --night: #040826;
  --night-2: #0a1446;
  --text: #eef1ff;
  --body: #cdd3ee;
  --muted: #a3acd3;
  --dim: #6d77a3;
  --line: rgba(170, 190, 255, 0.14);
  --cyan: #3ee8de;
  --accent: linear-gradient(100deg, #9cbcff 0%, #3ee8de 100%);

  --sans: "Satoshi", -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(70% 420px at 85% 0%, rgba(13, 29, 107, 0.7) 0%, transparent 100%) no-repeat, var(--night); color: var(--body); font: 500 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: var(--night); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 12px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--night); }

em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(4, 8, 38, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top__in { height: 100%; display: flex; align-items: center; gap: 16px; }
.top__logo img { height: 24px; width: auto; }
.top__sep { width: 1px; height: 20px; background: var(--line); }
.top__label { color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; transition: color 0.2s; }
.top__label:hover { color: var(--text); }

/* ---------- policy page shell ---------- */
.shell { flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding-top: 56px; padding-bottom: 112px; }
.side { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; max-height: calc(100vh - var(--nav-h) - 80px); overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side__h { margin: 0 0 14px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.side ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side a { display: block; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-size: 15px; line-height: 1.35; text-decoration: none; transition: color 0.2s, background 0.2s; }
.side a:hover { color: var(--text); background: rgba(170, 190, 255, 0.07); }
.side a[aria-current="page"] { color: var(--night); background: var(--text); font-weight: 700; }

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 20px; padding-bottom: 80px; }
  .side { position: static; max-height: none; overflow: visible; margin: 0 -24px; }
  .side__h { display: none; }
  .side ol { display: flex; gap: 8px; overflow-x: auto; padding: 0 24px; scrollbar-width: none; }
  .side ol::-webkit-scrollbar { display: none; }
  .side a { white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .side a[aria-current="page"] { border-color: var(--text); }
}
@media (max-width: 600px) {
  .side { margin: 0 -16px; }
  .side ol { padding: 0 16px; }
}

/* ---------- policy content (markup comes from the source documents) ---------- */
.doc { max-width: 76ch; min-width: 0; }
.doc h1 { margin: 0 0 18px; color: var(--text); font: 700 clamp(36px, 5vw, 64px)/1.02 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.doc h2 { margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--text); font: 700 clamp(24px, 2.4vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; }
.doc h3 { margin: 36px 0 10px; color: var(--text); font: 700 19px/1.35 var(--sans); letter-spacing: -0.01em; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--dim); }
.doc strong, .doc b { color: var(--text); }
.doc a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(62, 232, 222, 0.4); text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color 0.2s; }
.doc a:hover { text-decoration-color: currentColor; }

.meta { margin-bottom: 28px !important; color: var(--dim); font-size: 14px; }
.meta a { color: var(--muted) !important; }

.notice { margin: 24px 0; padding: 20px 22px; border: 1px solid rgba(62, 232, 222, 0.22); border-radius: 16px; background: linear-gradient(120deg, rgba(62, 232, 222, 0.08), rgba(47, 107, 255, 0.06)); color: var(--text); }
.notice h2 { margin-top: 0; padding-top: 0; border: 0; }
.notice p:last-child { margin-bottom: 0; }

.doc .button { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px; background: var(--text); color: var(--night); font-weight: 700; line-height: 1; text-decoration: none; transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.doc .button:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 40px -10px rgba(62, 232, 222, 0.6); }

.doc nav[aria-label="Contents"] { margin: 32px 0 8px; padding: 22px 24px 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 20, 70, 0.35); }
.doc nav[aria-label="Contents"] h2 { margin: 0 0 10px; padding: 0; border: 0; color: var(--dim); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.doc nav[aria-label="Contents"] a { color: var(--body); text-decoration-color: var(--line); }
.doc nav[aria-label="Contents"] a:hover { color: var(--cyan); }

.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.doc th, .doc td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th + th, .doc td + td { border-left: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: rgba(170, 190, 255, 0.06); color: var(--text); font-weight: 700; }

/* ---------- legal centre (index) ---------- */
.hub { flex: 1; padding-top: 88px; padding-bottom: 112px; }
.hub__h { margin: 0; color: var(--text); font: 700 clamp(56px, 10vw, 136px)/0.95 var(--sans); letter-spacing: -0.05em; }
.hub__meta { margin: 24px 0 0; color: var(--dim); font-size: 14px; }
.list { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row__n { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.row__t { color: var(--text); font: 700 clamp(20px, 2.3vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; text-decoration: none; transition: color 0.25s; }
.row__t::after { content: ""; position: absolute; inset: 0; }
.row__pdf { position: relative; z-index: 1; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.row__pdf:hover { color: var(--text); border-color: var(--muted); }
.row__arr { color: var(--dim); font-size: 22px; transition: transform 0.25s var(--ease), color 0.25s; }
.row:hover .row__t { color: var(--cyan); }
.row:hover .row__arr { color: var(--cyan); transform: translateX(4px); }
@media (max-width: 700px) {
  .hub { padding-top: 48px; padding-bottom: 80px; }
  .list { margin-top: 40px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 20px 0; }
  .row__n, .row__arr { display: none; }
}

.contact { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; margin-top: 64px; }
.contact__mail { color: var(--text); font: 700 clamp(20px, 2.3vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact__mail:hover { text-decoration-color: var(--cyan); }
.contact p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .contact { grid-template-columns: minmax(0, 1fr); margin-top: 48px; } .contact > span { display: none; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 13px; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot a { color: inherit; text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  html, body { background: #fff; color: #111; font-size: 10.5pt; }
  .top, .side, .skip, .row__arr, .doc .button { display: none !important; }
  .shell { display: block; padding: 0; }
  .doc { max-width: none; }
  .doc h1, .doc h2, .doc h3, .doc strong, .notice, .doc th { color: #000; }
  .doc h2, .doc h3 { break-after: avoid; }
  .doc a { color: inherit; }
  .notice, .doc nav[aria-label="Contents"], .doc th { background: none; }
  .foot { color: #444; }
}
