/* ============================================================
   Betteryou — legal pages (Privacy Policy / Terms of Use)
   Extends styles.css with document typography, on-brand.
   ============================================================ */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(50px, 8vh, 90px) var(--pad) clamp(80px, 12vh, 140px);
}

.legal-kicker {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 18px;
}
.legal h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 10px;
}
.legal-version {
  font-size: 0.85rem;
  color: var(--ink-30);
  margin-bottom: 30px;
}
.legal-intro {
  font-size: 1.06rem;
  color: var(--ink-70);
  max-width: 62ch;
  margin-bottom: 40px;
}

/* ---- emergency callout (terms) ---- */
.legal-alert {
  border: 1px solid rgba(189, 18, 172, 0.25);
  border-left: 3px solid var(--magenta);
  background: var(--soft);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 44px;
}
.legal-alert h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.legal-alert p { color: var(--ink-70); font-size: 0.97rem; }

/* ---- the short version ---- */
.short {
  margin-bottom: clamp(48px, 7vh, 72px);
}
.short-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.short-note {
  font-size: 0.88rem;
  color: var(--ink-30);
  margin-top: 18px;
}
.short ol {
  list-style: none;
  counter-reset: short;
  margin-top: 22px;
}
.short ol li {
  counter-increment: short;
  position: relative;
  padding: 14px 0 14px 46px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink-70);
  font-size: 0.98rem;
}
.short ol li::before {
  content: counter(short, decimal-leading-zero);
  position: absolute;
  left: 0; top: 16px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--magenta);
}

/* ---- numbered sections ---- */
.legal section { margin-bottom: clamp(38px, 6vh, 56px); }
.legal section h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.legal .sec-num {
  font-family: var(--sans);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--magenta);
  flex-shrink: 0;
}
.legal section p {
  color: var(--ink-70);
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.legal section p:last-child { margin-bottom: 0; }
.legal section strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--magenta); text-decoration: none; border-bottom: 1px solid rgba(189, 18, 172, 0.3); }
.legal a:hover { border-bottom-color: var(--magenta); }

/* bullet lists */
.legal ul { list-style: none; margin: 6px 0 14px; }
.legal ul li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--ink-70);
  font-size: 0.98rem;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 16px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
/* "what we do not do" list */
.legal ul.no-list li::before {
  content: "\2715";
  background: none;
  width: auto; height: auto;
  top: 7px;
  color: var(--magenta);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---- bare headings / paragraphs / ordered steps (delete-account page) ---- */
.legal > h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  line-height: 1.15;
  margin: clamp(34px, 5vh, 48px) 0 14px;
}
.legal h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal > p:not([class]),
.short > p:not([class]) {
  color: var(--ink-70);
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.legal ol:not(.short ol) {
  margin: 6px 0 14px;
  padding-left: 24px;
}
.legal ol:not(.short ol) li {
  padding: 4px 0 4px 4px;
  color: var(--ink-70);
  font-size: 0.98rem;
}
.legal ol:not(.short ol) li::marker {
  color: var(--magenta);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---- data table (privacy 03) ---- */
.legal-table { border-top: 1px solid var(--hairline); margin: 18px 0 14px; }
.lt-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.9fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.lt-row.lt-head {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-30);
}
.lt-row > div { font-size: 0.92rem; color: var(--ink-70); }
.lt-row > div:first-child { color: var(--ink); font-weight: 600; }
.lt-row.lt-head > div { color: var(--ink-30); font-weight: 600; }

/* subprocessor definition list */
.legal dl { margin: 10px 0 14px; }
.legal dt { font-weight: 600; color: var(--ink); font-size: 0.95rem; margin-top: 12px; }
.legal dd { color: var(--ink-70); font-size: 0.95rem; margin: 2px 0 0; }

/* footer line of the document */
.legal-end {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  margin-top: 50px;
  font-size: 0.85rem;
  color: var(--ink-30);
}
.legal-end a { color: var(--ink-50); }

@media (max-width: 720px) {
  .lt-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .lt-row.lt-head { display: none; }
  .lt-row > div:nth-child(2)::before { content: "What it includes · "; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-30); }
  .lt-row > div:nth-child(3)::before { content: "Why · "; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-30); }
}
