/* ============================================================
   SASHA - Document, Bristol
   Legal page (privacy.html), themed to match the sign-up page:
   black ground, the poster's ring as a header band with the lockup
   centred on it (same --R unit as style.css), ice-blue accents.

   Still a reading document first: 70ch measure, mist-on-black body
   copy (10.3:1), clear heading steps. The ring's "+" marker is the
   one ornament, used to mark each section heading.

   COLOUR - same plate pixels as style.css:
     #000000 ground, #071016 ink, #7FDDF0 ice, #4981A3 steel,
     #A9C2CF reading copy, #7593A3 secondary.
   ============================================================ */

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

:root {
  --void:     #000000;
  --ink:      #071016;
  --ice:      #7FDDF0;
  --frost:    #92ECFA;
  --steel:    #4981A3;
  --paper:    #FFFFFF;
  --mist:     #A9C2CF;
  --mist-dim: #7593A3;
  --line:     rgba(127,221,240,.22);
  --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: ring + lockup, one unit ----------
   Same geometry as the sign-up page: the lockup is symmetric about the ring
   centre, and the plate is translated so ITS ring centre (959,539 of 1920x1080)
   lands on the lockup's centre. */
.legal-hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vw, 72px) 16px clamp(18px, 3vw, 28px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.legal-hero__ring {
  --R: clamp(78px, 13vw, 128px);
  position: relative;
  width: calc(var(--R) * 1.6875);
  aspect-ratio: 1350 / 1578;
}
.legal-hero__bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: calc(var(--R) * 3.8866);
  aspect-ratio: 1920 / 1080;
  transform: translate(-49.95%, -49.91%);
  background: url("/assets/images/bg-desktop.webp?v=20261020-1") center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  pointer-events: none;
}
.legal-hero__lockup {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  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(127,221,240,.45);
  border-radius: 2px;
  background: rgba(7,16,22,.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(16,33,43,.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: 850;
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--paper);
}
/* the site's title pattern: second half in the poster's italic, in ice */
.legal h1 em { font-style: italic; font-weight: 800; 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);
}
/* the ring's "+" marker, one per section */
.legal h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ice), var(--ice)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--ice), var(--ice)) center / 1.5px 100% no-repeat;
}
.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(0,0,0,.82);
  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); }
.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;
  }
}
