/*
  Design direction (from owner): navy base, futuristic accent, futuristic lines.
  Dials: ENERGY 2 / RHYTHM 1 / MOTION 1.

  Design reasons (R-31):
  - Navy base, fixed dark: the owner's brand direction, so no light theme is shipped.
  - One solid accent, ion cyan: reads as "future" against navy without a gradient or glow; used only on links,
    section numbers, the active nav bar and the line markers.
  - Chakra Petch (headings, labels): its cut, angled terminals echo the line motif. Self-hosted, so the
    privacy page still loads nothing from third parties. Body stays on the system font for long reading.
  - Identity motif, the "rail": a thin vertical line runs down the document, each section is a tick on it
    with its number, and a hairline runs out to the right. It shows where you are in a long policy.
    HUD corner brackets mark the title block, the one focal point per page.
  - Sharp corners everywhere: rounded corners would fight the angular line system.
  - No background grid, no glow, no gradient: the lines carry the futuristic feel on their own.
*/
@font-face{font-family:"Chakra Petch";src:url("/fonts/chakra-petch-latin-500-normal.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Chakra Petch";src:url("/fonts/chakra-petch-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}

:root{
  color-scheme:dark;
  --bg:#0a1324;
  --ink:#e4ebf5;      /* 15.5:1 on --bg */
  --muted:#93a3bd;    /* 7.3:1 on --bg */
  --line:#22365a;     /* decorative only, never carries text */
  --accent:#4fe3f5;   /* 12.1:1 on --bg */
  --accent-hover:#a6f3fb;
  --display:"Chakra Petch",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink);background:var(--bg);
  font-size:17px;line-height:1.7;
}
.wrap{max-width:760px;margin:0 auto;padding:0 22px}

.skip{position:absolute;left:-9999px;top:0;color:var(--ink)}
.skip:focus{left:12px;top:12px;background:var(--bg);padding:10px 14px;z-index:10;outline:2px solid var(--accent)}

/* Header */
header{border-bottom:1px solid var(--line)}
header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 20px;padding-top:16px;padding-bottom:8px}
.brand{
  font-family:var(--display);font-weight:600;font-size:19px;letter-spacing:.02em;
  color:var(--ink);text-decoration:none;
  display:inline-flex;flex-direction:column;justify-content:center;min-height:44px;
}
/* Signal bar under the wordmark: a long and a short segment, the first use of the line motif */
.brand::after{
  content:"";height:2px;width:44px;margin-top:5px;
  background:linear-gradient(90deg,var(--accent) 0 30px,transparent 30px 36px,var(--accent) 36px 44px);
}
nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 2px}
nav a{
  position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 10px;
  font-family:var(--display);font-weight:500;font-size:15px;letter-spacing:.02em;
  color:var(--muted);text-decoration:none;
}
nav a:hover{color:var(--ink)}
nav a[aria-current="page"]{color:var(--ink)}
nav a[aria-current="page"]::after{content:"";position:absolute;left:10px;right:10px;bottom:6px;height:2px;background:var(--accent)}

/* Title block: the focal point, framed by HUD corner brackets */
main.wrap{padding-top:44px;padding-bottom:64px}
.title{position:relative;padding:22px 24px 18px;margin:0 0 28px}
.title::before,.title::after{content:"";position:absolute;width:16px;height:16px;border-color:var(--accent);border-style:solid}
.title::before{top:0;left:0;border-width:2px 0 0 2px}
.title::after{bottom:0;right:0;border-width:0 2px 2px 0}
h1{font-family:var(--display);font-weight:600;font-size:42px;line-height:1.1;margin:0 0 8px;letter-spacing:.005em}
.meta{font-family:var(--display);font-weight:500;color:var(--muted);font-size:15px;letter-spacing:.03em;margin:0}
.lead{font-size:19px;margin:0 0 36px;max-width:62ch}

/* The rail: vertical line down the document, a tick and number per section */
.doc{position:relative;padding-left:34px;border-left:1px solid var(--line);margin-left:6px}
h2{
  position:relative;display:flex;align-items:baseline;gap:12px;
  font-family:var(--display);font-weight:600;font-size:21px;line-height:1.3;
  margin:44px 0 10px;
}
.doc > h2:first-child{margin-top:0}
h2::before{ /* tick crossing the rail */
  content:"";position:absolute;left:-41px;top:.62em;width:14px;height:2px;background:var(--accent);
}
h2::after{ /* hairline running out to the right */
  content:"";flex:1;height:1px;background:var(--line);align-self:center;min-width:24px;
}
.idx{font-family:var(--display);font-weight:500;font-size:14px;color:var(--accent);letter-spacing:.06em}
p,li{margin:0 0 12px}
ul{padding-left:20px}
li::marker{color:var(--accent)}
strong{color:#fff;font-weight:600}

a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px;cursor:pointer}
a:hover{color:var(--accent-hover);text-decoration-thickness:2px}
a:active{opacity:.75}
a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

footer{border-top:1px solid var(--line);color:var(--muted);font-family:var(--display);font-weight:500;font-size:14px;letter-spacing:.02em}
footer .wrap{padding-top:18px;padding-bottom:34px}
footer p{margin:0}

@media (max-width:520px){
  body{font-size:16px}
  h1{font-size:32px}
  .lead{font-size:18px}
  .title{padding:18px 18px 14px}
  .doc{padding-left:20px;margin-left:4px}
  h2{font-size:19px}
  h2::before{left:-27px;width:12px}
  nav a{padding:0 8px}
  nav a[aria-current="page"]::after{left:8px;right:8px}
}
