/* ============================================================
   KIROLLUS - Legal page (privacy.html), themed to match the sign-up: the
   poster's top box on the riso-blue ground, then white paper for reading.
   Links in the poster blue #0047C0 (7.6:1 on white); section bars in the
   poster pink (ornament only).
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/Anton.woff2?v=20261118-1") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --void:     #FFFFFF;
  --ink:      #0B1530;
  --ice:      #0047C0;   /* links (engine name kept: every rule below reads it) */
  --frost:    #002E80;   /* hover */
  --red:      #F1298F;   /* accent bar (engine name kept) */
  --focus:    #0047C0;
  --paper:    #0B1530;   /* headings + strong (engine name kept) */
  --mist:     #1A1F2E;   /* reading copy */
  --mist-dim: #555C6E;
  --line:     #E3E6EE;
  --display:  "Anton", "Arial Narrow", Impact, sans-serif;
  --font:     "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--void); }
body.legal-wrap {
  margin: 0;
  background: var(--void);
  color: var(--mist);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- header band: the lockup on the poster's streak field ---------- */
.legal-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 22vw, 340px);
  padding: clamp(64px, 6vw, 80px) clamp(16px, 4vw, 64px) clamp(28px, 3vw, 40px);
  overflow: hidden;
  /* the poster's own riso ground (halftone screen x paper), 3px screen */
  background: #0047C0 url("/assets/images/ground.webp?v=20261118-1") 0 0 / 384px 384px repeat;
}
.legal-hero__lockup {
  display: block;
  width: min(520px, 84vw);
  height: auto;
}

/* --- back link: top-left of the band, outlined like the site's panel --- */
.legal__back {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 2.4vw, 22px);
  left: clamp(14px, 3vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid #D4D4D4;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.legal__back:hover { border-color: var(--ice); background: #fff; }
.legal__back-arrow { display: flex; flex: 0 0 auto; width: 16px; height: 16px; color: var(--ice); }
.legal__back-arrow svg { width: 100%; height: 100%; }

/* ---------- document ---------- */
.legal {
  max-width: 74ch;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px) clamp(18px, 5vw, 32px) clamp(48px, 8vw, 88px);
}
.legal h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 66px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--paper);
}
/* the site's title pattern: second line in the accent */
.legal h1 em { font-style: normal; color: var(--ice); }
.legal__intro {
  margin: 0 0 clamp(26px, 4vw, 38px);
  font-size: 17px;
  color: var(--mist);
  max-width: 56ch;
}
.legal h2 {
  position: relative;
  margin: clamp(34px, 4.6vw, 48px) 0 14px;
  padding: 16px 0 0 26px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--paper);
}
/* steel bar, one per section */
.legal h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 14px;
  background: var(--red);
}
.legal h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
}
.legal p {
  margin: 0 0 13px;
  color: var(--mist);
  max-width: 70ch;
}
.legal p strong { color: var(--paper); font-weight: 700; }
.legal a { color: var(--ice); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--frost); text-decoration-thickness: 2px; }

.legal .legal__meta {
  margin: clamp(36px, 5vw, 54px) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mist-dim);
}

/* ---------- footer: same band as the sign-up page ---------- */
.foot {
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12px; color: var(--mist-dim); }
.foot__legal a { color: var(--mist-dim); text-decoration: none; }
.foot__legal a:hover { color: var(--ice); }
/* louder-consent.js drops "Cookie settings" in right after the privacy link
   with only a text space between them; give it a real gap and a divider. */
.foot__legal [data-louder-consent-open] {
  margin-left: .75em;
  padding-left: .85em;
  border-left: 1px solid #CFCFCF;
}
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid #DADADA;
  border-radius: 999px;
  font-size: 12px;
  color: var(--mist-dim);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.site-built a:hover { color: var(--paper); border-color: var(--ice); }
/* white + teal credit art: on paper darken + saturate, NEVER invert() */
.site-built img { display: block; filter: brightness(.36) saturate(1.45); }
@media (max-width: 899px) {
  .foot { justify-content: center; text-align: center; }
  .foot__right { justify-content: center; }
}
@media (max-width: 480px) {
  .foot { flex-direction: column; align-items: center; gap: 10px; padding-bottom: 22px; }
  .foot__right { flex-direction: column; align-items: center; gap: 10px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Named-party disclosure (About us). Set apart because it carries the
   named-party share block the client asked
   to be explicit. */
.legal .controller {
  margin: 18px 0 8px;
  padding: 16px 18px 6px;
  border-left: 3px solid var(--red);
  background: #F3F6FA;
}
