/* ================================================================
   USHSG -- Legal Page Styles
   Layered on shared.css + pages.css.
   Max-width 820px, generous padding, high-legibility typography.
   No em-dashes anywhere in this file.
   ================================================================ */

/* ── Legal body wrapper ──────────────────────────────────────── */
.legal-body {
  max-width: 820px;
  margin-inline: auto;
  padding: 0 0 80px;
}

/* ── Legal hero (compact dark banner) ───────────────────────── */
.page-hero--compact {
  padding: 64px 0 56px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-hero--compact::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 90% 40%, rgba(30,95,168,.14) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 5%  85%, rgba(201,97,10,.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero--compact::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero--compact .container { position: relative; z-index: 1; }
.page-hero--compact h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 720px;
}
.page-hero--compact .page-hero-sub {
  margin: 14px 0 0;
  color: rgba(255,255,255,.52);
  font-size: .88rem;
  line-height: 1.65;
}

/* Last updated display within hero sub */
.legal-updated {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  color: rgba(255,255,255,.4);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Table of contents (top-of-page) ────────────────────────── */
.legal-toc {
  margin: 0 0 48px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
}
.legal-toc-label {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-toc ol {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: decimal;
}
.legal-toc li {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.legal-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color .14s;
}
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Legal section blocks ────────────────────────────────────── */
.legal-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.legal-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ── Heading hierarchy ───────────────────────────────────────── */
.legal-body h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.legal-body h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 10px;
  border-radius: 2px;
}
.legal-body h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.legal-body h4 {
  margin: 20px 0 8px;
  color: var(--ink-60);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Paragraphs -- 1.8 line-height for dense legal text ─────── */
.legal-body p {
  margin: 0 0 16px;
  color: var(--body);
  font-size: .97rem;
  line-height: 1.8;
}
.legal-body p:last-child { margin-bottom: 0; }

/* ── Lists ───────────────────────────────────────────────────── */
.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--body);
  font-size: .97rem;
  line-height: 1.8;
}
.legal-body li { margin-bottom: 8px; }
.legal-body li:last-child { margin-bottom: 0; }

/* ── Definition lists ────────────────────────────────────────── */
.legal-body dl {
  margin: 0 0 24px;
}
.legal-body dt {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.legal-body dt:first-child { margin-top: 0; }
.legal-body dd {
  margin: 6px 0 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--line);
  color: var(--body);
  font-size: .92rem;
  line-height: 1.75;
}

/* ── Inline links ────────────────────────────────────────────── */
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .14s;
}
.legal-body a:hover { color: var(--accent-dark); }

/* ── Callout / notice blocks ─────────────────────────────────── */
.legal-callout {
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid rgba(30,95,168,.18);
  background: var(--accent-soft);
  margin: 24px 0;
  font-size: .9rem;
  line-height: 1.72;
  color: var(--body);
}
.legal-callout strong {
  color: var(--ink);
  font-family: var(--font-display);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-body {
    max-width: 100%;
  }
  .legal-toc {
    padding: 18px 20px;
  }
}
@media (max-width: 600px) {
  .page-hero--compact {
    padding: 48px 0 40px;
  }
  .page-hero--compact h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .legal-body {
    padding: 0 0 56px;
  }
  .legal-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .legal-toc {
    padding: 16px 18px;
  }
  .legal-body p,
  .legal-body ul,
  .legal-body ol {
    font-size: .93rem;
  }
}
