/* Fonts are served from this site; reading legal documents does not contact a font provider. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-var.woff2') format('woff2');
}

/* Shared styling for the legal pages (privacy / terms / security). Mirrors the
   landing's dark design system (Space Grotesk + Inter, violet→cyan gradient) so
   the pages read as part of the Cruxwing site, but in a calm document layout —
   a single readable column, real hierarchy, no marketing flourish. */

:root {
  --bg: #0B0C0F;
  --bg-2: #101116;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(255, 255, 255, 0.12);
  --ink: #F1F2F4;
  --ink-2: #A9ADB8;
  --ink-3: #838896;
  --violet: #D9A038; /* legacy name, amber voice */
  --cyan: #D9A038;
  --grad: #D9A038;
  --radius: 14px;
  --radius-lg: 22px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 3rem, var(--measure)); margin-inline: auto; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(5, 4, 9, 0.72);
  border-bottom: 1px solid var(--panel-border);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.6rem 1rem;
  padding-block: 0.9rem; width: min(100% - 3rem, 74rem);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700;
  font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink);
}
.brand img { width: 28px; height: 28px; }
/* <picture> is inline by default and would sit on the text baseline,
   dropping the mark a pixel below the wordmark. */
.brand picture { display: flex; }
.site-head nav { display: flex; gap: 0.9rem 1.4rem; font-size: 0.95rem; flex-wrap: wrap; min-width: 0; }
.site-head nav a { color: var(--ink-2); }
.site-head nav a[aria-current="page"] { color: var(--ink); }

/* Document */
main { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) 5rem; }

.doc-head { margin-bottom: 2.6rem; }
.eyebrow {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet); margin: 0 0 0.7rem;
}
h1 {
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0;
  background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; text-wrap: balance;
}
.updated { color: var(--ink-3); font-size: 0.9rem; margin-top: 0.9rem; }

h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); letter-spacing: -0.01em;
  margin: 2.8rem 0 0.4rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(150, 120, 235, 0.14);
}
h3 { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem; margin: 1.6rem 0 0.3rem; }
p { margin: 0.7rem 0; color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-2); line-height: 1.6; }
ul { margin: 0.7rem 0; padding-left: 1.3rem; }
li { margin: 0.4rem 0; }
li::marker { color: var(--violet); }
strong { color: #fff; font-weight: 600; }

/* Callout — used for the honesty / legal-review notes */
.note {
  margin: 1.6rem 0; padding: 1.1rem 1.3rem;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-left: 3px solid var(--violet); border-radius: var(--radius);
  color: var(--ink-2); font-size: 0.96rem;
}
.note strong { color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid rgba(150, 120, 235, 0.14); vertical-align: top; }
th { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--ink-2); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll table { min-width: 32rem; }
.table-scroll:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--panel-border);
  padding-block: 2.4rem; color: var(--ink-3); font-size: 0.9rem;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; width: min(100% - 3rem, 74rem); }
.site-foot nav { display: flex; gap: 1.3rem; flex-wrap: wrap; min-width: 0; }
.site-foot nav a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
