/* ============================================================
   D.O.D - Outernet Live, London
   Legal page (privacy.html), themed to match the sign-up page:
   ink-violet ground, the D.O.D lockup on the poster's liquid plate as a
   header band, coral accents.

   Still a reading document first: 70ch measure, lilac-on-ink body copy,
   clear heading steps. The coral bar beside each section heading is the
   one ornament.

   COLOUR - same poster pixels as style.css:
     #1A0330 ground, #E86465 coral, #F2A39C coral light,
     #E7D6F7 reading copy, #B49ACF secondary.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-wdth.woff2?v=20261027-5") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --void:     #1A0330;
  --ink:      #1A0330;
  --ice:      #E86465;
  --frost:    #F2A39C;
  --paper:    #FFF4F1;
  --mist:     #E7D6F7;
  --mist-dim: #B49ACF;
  --line:     rgba(190,140,255,.24);
  --font:     "Archivo", "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: lockup on the liquid plate ---------- */
.legal-hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(64px, 8vw, 80px) 16px clamp(24px, 4vw, 40px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--void) url("/assets/images/bg-desktop.webp?v=20261027-12") center / cover no-repeat;
}
.legal-hero__lockup {
  display: block;
  width: min(440px, 78vw);
  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 rgba(232,100,101,.5);
  border-radius: 2px;
  background: rgba(26,3,48,.72);
  -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: rgba(45,5,79,.85); }
.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-size: clamp(34px, 6vw, 52px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--paper);
}
/* the site's title pattern: second half in the poster's coral */
.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);
}
/* coral bar, one per section, in the poster's type colour */
.legal h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 14px;
  background: var(--ice);
}
.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;
  background: rgba(14,1,26,.88);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__left { 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 rgba(190,140,255,.4);
}
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.16);
  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); }
.site-built img { display: block; opacity: .9; }
@media (max-width: 899px) {
  .foot { justify-content: center; text-align: center; }
  .foot__left { justify-content: center; }
}
@media (max-width: 480px) {
  .foot { flex-direction: column; align-items: center; gap: 10px; padding-bottom: 22px; }
  .foot__left { flex-direction: column; align-items: center; gap: 10px; }
  .legal-hero { padding-top: 64px; }
}

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