/* ============================================================
   Power of Smol — Legal page styles
   Shared by privacy-policy.html and terms-of-service.html.
   Only layout/composition unique to legal docs — everything
   else (colour, type, spacing) comes from tokens.css.
   ============================================================ */

/* ── Page wrapper — narrow column for long-form reading ── */
.legal-page {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: 72px var(--gutter) 120px;
}

@media (max-width: 720px) {
  .legal-page { padding: 48px var(--gutter) 80px; }
}


/* ── Header ── */
.legal-hero { margin-bottom: 48px; }

.legal-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--orange-500);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.legal-hero__eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--orange-400);
  flex-shrink: 0;
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink-900);
  margin-bottom: 14px;
}

.legal-hero__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.03em;
}

.legal-hero__intro {
  font-size: 17px;
  line-height: var(--leading-relaxed);
  color: var(--ink-700);
  max-width: 62ch;
  margin-top: 24px;
}


/* ── Table of contents ── */
.legal-toc {
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 28px 28px 20px;
  margin-block: 48px 56px;
}

.legal-toc__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.legal-toc__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

.legal-toc__list a {
  display: block;
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--text-body);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px dashed var(--border-subtle);
  transition: color var(--dur);
}

.legal-toc__list a:hover { color: var(--orange-600); }

@media (max-width: 560px) {
  .legal-toc__list { grid-template-columns: 1fr; }
}


/* ── Sections ── */
.legal-section {
  padding-top: 40px;
  margin-top: 8px;
  border-top: 1px solid var(--sand-200);
  scroll-margin-top: 88px; /* clears the sticky nav on anchor jump */
}

.legal-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-section__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  color: var(--ink-800);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-section p {
  font-size: 15.5px;
  line-height: var(--leading-relaxed);
  color: var(--ink-700);
  max-width: 68ch;
  margin-bottom: 14px;
}

.legal-section p:last-child { margin-bottom: 0; }

/* Bulleted lists — reuses the site's tri-glyph bullet pattern */
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0 20px;
}

.legal-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: var(--leading-relaxed);
  color: var(--ink-700);
  max-width: 66ch;
}

.legal-list .tri {
  position: absolute;
  left: 0;
  top: 7px;
}

.legal-list strong { color: var(--ink-900); }

/* Simple data table (e.g. pricing / data-collected tables) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--sand-200);
  vertical-align: top;
}

.legal-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: var(--weight-bold);
}

.legal-table td { color: var(--ink-700); }


/* ── Callout — used for rights / placeholder-to-fill notices ── */
.legal-callout {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--teal-200);
  background: var(--teal-100);
  color: var(--teal-700);
  margin: 20px 0;
}

.legal-callout__title {
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
  color: var(--teal-700);
}

.legal-callout p {
  color: var(--teal-700);
  font-size: 14.5px;
}


/* ── Footer cross-link between the two legal pages ── */
.legal-crosslink {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--sand-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-crosslink a {
  font-weight: var(--weight-semibold);
  text-decoration: none;
  color: var(--orange-700);
}

.legal-crosslink a:hover { color: var(--orange-600); }
