/* ==========================================================================
   Volkers Studio — legal / long-form document pages (Privacy, Terms…)
   Inherits tokens & shell from styles.css
   ========================================================================== */

.legal-hero {
  position: relative; overflow: clip; text-align: center;
  padding: clamp(64px, 12vh, 120px) clamp(20px, 5vw, 64px) clamp(40px, 6vh, 64px);
  border-bottom: 1px solid rgba(242, 235, 224, .06);
}
.legal-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% -10%, rgba(232, 163, 61, .16), transparent 65%);
}
.legal-hero__inner { position: relative; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.legal-hero__title { margin: 0; font-weight: 900; font-size: clamp(34px, 6vw, 58px); line-height: 1.04; letter-spacing: -.015em; text-transform: uppercase; }
.legal-hero__sub { margin: 0; font-size: clamp(15px, 2vw, 17px); color: rgba(242, 235, 224, .6); }
.legal-hero__meta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 7px 16px; border-radius: 99px;
  border: 1px solid rgba(242, 235, 224, .14); background: rgba(242, 235, 224, .04);
  font-size: 13px; color: rgba(242, 235, 224, .7);
}

/* Optional language switcher (hidden until >1 locale is registered) --------- */
.lang-switcher { display: none; margin-top: 8px; }
.lang-switcher.is-active { display: inline-flex; align-items: center; gap: 8px; }
.lang-switcher label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 235, 224, .5); }
.lang-switcher select {
  font: inherit; font-size: 14px; color: var(--ink);
  background: rgba(242, 235, 224, .05); border: 1px solid rgba(242, 235, 224, .18);
  border-radius: 8px; padding: 7px 12px; cursor: pointer;
}
.lang-switcher select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Document body ------------------------------------------------------------ */
.legal {
  max-width: 800px; margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) clamp(20px, 5vw, 40px) clamp(64px, 9vh, 100px);
}

/* Table of contents */
.legal-toc {
  margin: 0 0 clamp(36px, 5vh, 52px);
  padding: 22px 26px; border-radius: 16px;
  background: rgba(242, 235, 224, .035); border: 1px solid rgba(242, 235, 224, .08);
}
.legal-toc__title { margin: 0 0 14px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 24px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; font-size: 14.5px; color: rgba(242, 235, 224, .75); line-height: 1.4; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 12px; color: var(--accent); opacity: .8; }
.legal-toc a:hover { color: var(--ink); }

/* Sections */
.legal-section { scroll-margin-top: 90px; }
.legal-section + .legal-section { margin-top: clamp(34px, 5vh, 48px); }
.legal h2 {
  margin: 0 0 16px; font-weight: 800; font-size: clamp(21px, 3vw, 27px); line-height: 1.2; letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 12px;
}
.legal h2 .num { font-size: 14px; font-weight: 800; color: var(--accent); font-family: 'Archivo', sans-serif; }
.legal h3 { margin: 26px 0 10px; font-weight: 700; font-size: 17px; color: var(--ink); }

.legal p, .legal li { font-size: 16px; line-height: 1.72; color: rgba(242, 235, 224, .78); text-wrap: pretty; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 4px; list-style: none; }
.legal ul li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, var(--accent), var(--heat)); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(232, 163, 61, .4); }
.legal a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

/* Callout / highlighted note */
.legal-note {
  margin: 18px 0; padding: 18px 22px; border-radius: 14px;
  background: rgba(232, 163, 61, .08); border: 1px solid rgba(232, 163, 61, .28);
  border-left-width: 3px;
}
.legal-note p:last-child { margin-bottom: 0; }

/* Definition-style rows for third-party services */
.legal-service {
  margin: 16px 0; padding: 20px 22px; border-radius: 14px;
  background: rgba(242, 235, 224, .035); border: 1px solid rgba(242, 235, 224, .08);
}
.legal-service h3 { margin: 0 0 8px; }
.legal-service p:last-child { margin-bottom: 0; }

/* Fill-in placeholder token — clearly marks text that must be completed */
.ph {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  color: var(--accent); background: rgba(232, 163, 61, .1);
  border: 1px dashed rgba(232, 163, 61, .5); border-radius: 5px;
  padding: 1px 7px; white-space: nowrap;
}

/* Back-to-top / footer link within document */
.legal-back { margin-top: clamp(40px, 6vh, 60px); padding-top: 24px; border-top: 1px solid rgba(242, 235, 224, .08); font-size: 14.5px; }
