/* ==========================================================================
   STAY FREE ENTERPRISE — /legal
   Plain, fast, zero FX, properly typeset. Centered-prose reading column +
   a sticky table of contents on wide screens. Restrained type scale (this
   is a statute page, not a hero) but still real hierarchy, real DOM, real
   Stay Free brand touches (Fraunces for headings, foil-free gold used only
   as a thin rule, never glow). No third-party embeds, no motion beyond
   native hover/focus states.
   ========================================================================== */

.sf-legal {
  padding-block: var(--sf-space-7) var(--sf-space-9);
}

.sf-legal__intro {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--sf-space-7);
}
.sf-legal__intro h1 {
  font-size: clamp(var(--sf-text-3xl), 5vw, var(--sf-text-4xl));
}
.sf-legal__intro p { margin-inline: auto; margin-top: var(--sf-space-3); }
.sf-legal__updated {
  display: inline-block;
  margin-top: var(--sf-space-4);
  font-size: var(--sf-text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-teal);
}

/* ---- layout: sticky TOC + reading column ---- */
.sf-legal__layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: var(--sf-space-8);
  align-items: start;
  max-width: 68rem;
  margin-inline: auto;
}
@media (max-width: 900px) {
  .sf-legal__layout { grid-template-columns: 1fr; }
}

.sf-legal__toc {
  position: sticky;
  top: calc(64px + var(--sf-space-4));
}
.sf-legal__toc-label {
  font-size: var(--sf-text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sf-taupe);
  margin-bottom: var(--sf-space-3);
}
.sf-legal__toc-list {
  display: flex;
  flex-direction: column;
  gap: var(--sf-space-2);
  border-left: 2px solid rgba(14, 74, 60, 0.14);
}
.sf-legal__toc-list a {
  display: block;
  padding: var(--sf-space-1) 0 var(--sf-space-1) var(--sf-space-3);
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: var(--sf-text-sm);
  color: var(--sf-text-secondary);
}
.sf-legal__toc-list a:hover,
.sf-legal__toc-list a:focus-visible {
  color: var(--sf-teal);
  border-left-color: var(--sf-teal);
}
@media (max-width: 900px) {
  .sf-legal__toc { position: static; }
  .sf-legal__toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    gap: var(--sf-space-2);
  }
  .sf-legal__toc-list a {
    border: 1px solid rgba(14, 74, 60, 0.18);
    border-radius: 999px;
    padding: var(--sf-space-1) var(--sf-space-3);
    margin-left: 0;
  }
  .sf-legal__toc-list a:hover, .sf-legal__toc-list a:focus-visible { border-color: var(--sf-teal); }
}

/* ---- reading column ---- */
.sf-legal__doc { max-width: 42rem; }
.sf-legal__section {
  padding-block: var(--sf-space-6);
  border-bottom: 1px solid rgba(14, 74, 60, 0.12);
}
.sf-legal__section:first-child { padding-top: 0; }
.sf-legal__section:last-child { border-bottom: none; }

.sf-legal__section h2 {
  font-size: var(--sf-text-2xl);
  margin-bottom: var(--sf-space-1);
}
.sf-legal__section-eyebrow {
  display: block;
  font-family: var(--sf-font-body);
  font-size: var(--sf-text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sf-teal);
  margin-bottom: var(--sf-space-2);
}
.sf-legal__section h3 {
  font-size: var(--sf-text-lg);
  margin-top: var(--sf-space-5);
  margin-bottom: var(--sf-space-2);
}
.sf-legal__section p { max-width: none; color: var(--sf-text-primary); line-height: 1.75; }
.sf-legal__section p + p { margin-top: var(--sf-space-3); }
.sf-legal__section ul,
.sf-legal__section ol {
  padding-left: 1.3em;
  color: var(--sf-text-primary);
  line-height: 1.75;
}
.sf-legal__section ul { list-style: disc; }
.sf-legal__section ol { list-style: decimal; }
.sf-legal__section li + li { margin-top: var(--sf-space-2); }
.sf-legal__section a { color: var(--sf-teal); text-decoration: underline; }
.sf-legal__section strong { color: var(--sf-text-primary); }

.sf-legal__rule {
  width: 40px; height: 2px;
  background: var(--sf-gold);
  margin: var(--sf-space-4) 0;
  border: none;
}

/* ---- pending / data-not-final callout — same honesty doctrine as the
   calendar placeholder: clearly marked, never fake-live (plan §4). ---- */
.sf-legal__pending {
  display: flex;
  gap: var(--sf-space-3);
  align-items: flex-start;
  border: 1.5px dashed rgba(138, 128, 116, 0.45);
  border-radius: var(--sf-radius-md);
  background:
    repeating-linear-gradient(135deg, rgba(138, 128, 116,0.05) 0 14px, transparent 14px 28px),
    var(--sf-bg-primary);
  padding: var(--sf-space-4) var(--sf-space-5);
  margin-top: var(--sf-space-3);
}
.sf-legal__pending-badge {
  flex: 0 0 auto;
  padding: 2px var(--sf-space-2);
  border-radius: var(--sf-radius-sm);
  background: var(--sf-taupe);
  color: var(--sf-ivory);
  font-size: var(--sf-text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sf-legal__pending p { margin: 0; font-size: var(--sf-text-sm); color: var(--sf-text-secondary); }

/* ---- disclosure callout reuse (Tier 1/2 governed blocks quoted in full
   on this page use the same visual language as the inline disclosure
   component elsewhere on the site, for recognizability) ---- */
.sf-legal__statute {
  border-left: 3px solid var(--sf-teal);
  background: var(--sf-sand);
  border-radius: var(--sf-radius-sm);
  padding: var(--sf-space-4) var(--sf-space-5);
  margin-top: var(--sf-space-3);
}
.sf-legal__statute p { color: var(--sf-text-primary); }

.sf-legal__contact {
  text-align: center;
  margin-top: var(--sf-space-8);
  padding-top: var(--sf-space-6);
  border-top: 1px solid rgba(14, 74, 60, 0.14);
}
.sf-legal__contact p { margin-inline: auto; }
