/* =========================================================
   LEGAL PAGES STYLES — ALPHA (fonts per uploaded file)
   ========================================================= */

/* Brand display font for headings (from your file) */
@font-face {
  font-family: "Marche Super Pro";
  src: url("../fonts/marche-super-pro.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------
   Base tokens
------------------------------ */
:root {
  --brand: #3fef48;
  --brand-600: #22c55e;
  --ink: #0b1020;
  --ink-muted: #475569;
  --line: #e2e8f0;
  --line-dark: #1f2937;
  --radius: 10px;
  --rhythm: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }

/* ------------------------------
   Body (Marche Super Pro for all text)
------------------------------ */
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0f0f0f;
  color: #fff;
  font-family: "Marche Super Pro", system-ui, sans-serif;
  text-align: initial;
  padding: 0 1rem;
  line-height: 1.7;
}

/* ------------------------------
   Logo
------------------------------ */
.logo {
  width: clamp(70px, 20vw, 70px);
  margin-top: 2rem;
  transition: transform .25s ease-out;
}
.logo-link { cursor: pointer; display: inline-block; }
.logo-link:hover .logo { transform: scale(1.05); }

/* ------------------------------
   Headings (Marche Super Pro)
------------------------------ */
h1, h2, h3 {
  font-family: "Marche Super Pro", system-ui, sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  text-transform: uppercase;
  margin: 1.25rem 0 0.5rem;
  line-height: 1.2;
}

/* Titles: static color, NO hover effects */
.content h2 {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem);
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
  color: var(--brand);
  scroll-margin-top: 80px;
  position: relative;
}
.content h2:hover { background: none; }

.content h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.4;
  color: #cbd5e1;
}

/* ------------------------------
   Content wrapper
------------------------------ */
.content {
  max-width: 72ch;
  width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px) clamp(8px, 3vw, 24px);
  text-align: left;
  font-size: 1.0625rem; /* ~17px */
}

.content p,
.content ul,
.content ol,
.content blockquote,
.content pre,
.content table {
  margin: 0 0 var(--rhythm);
}

/* ------------------------------
   Lists — deeper indent like the screenshot
------------------------------ */
.content ul,
.content ol {
  padding-left: 2rem; /* increased left indent */
}
.content li {
  margin: 0.5rem 0;
}

/* ------------------------------
   Links
------------------------------ */
.content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}
.content a:hover {
  color: #b7ffbb;
  text-decoration-thickness: 2px;
}

/* Accessible focus */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------
   Horizontal rule
------------------------------ */
.content hr {
  border: 0;
  border-top: 1px solid var(--line-dark);
  margin: 2rem 0;
}

/* ------------------------------
   Tables
------------------------------ */
.content table { width: 100%; border-collapse: collapse; }
.content th, .content td {
  padding: .6rem .4rem;
  border-top: 1px solid var(--line-dark);
  text-align: left;
}
.content th { position: sticky; top: 0; background: inherit; }

/* ------------------------------
   Code blocks (keep monospace for code)
------------------------------ */
.content code,
.content pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", monospace;
  font-size: 0.95em;
}
.content pre {
  background: #111214;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow: auto;
}

/* ------------------------------
   Callouts
------------------------------ */
.callout {
  padding: .9rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #111214, #0e0f12);
  margin: 1.5rem 0;
}
.callout--info { border-color: #1f9ef2; }
.callout--warn { border-color: #f59e0b; }
.callout--ok   { border-color: var(--brand); }

/* ------------------------------
   Heading anchors (🔗 icon)
------------------------------ */
.content h2[id]::after,
.content h3[id]::after {
  content: "🔗";
  margin-left: .4rem;
  opacity: 0;
  transition: opacity .2s ease;
  font-size: .9em;
}
.content h2[id]:hover::after,
.content h3[id]:hover::after { opacity: .6; cursor: pointer; }

/* ------------------------------
   Mini TOC (if injected)
------------------------------ */
.toc {
  background: #111214;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.5rem 0;
}
.toc h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.toc ul { padding-left: 1rem; margin: 0; list-style: none; }
.toc li { margin: 0.3rem 0; }
.toc a { text-decoration: none; color: var(--brand); }
.toc a:hover { text-decoration: underline; }

/* ------------------------------
   Light mode
------------------------------ */
@media (prefers-color-scheme: light) {
  body { background: #fafafa; color: #111; }
  .content h3 { color: var(--ink-muted); }
  .content hr,
  .content th,
  .content td { border-color: var(--line); }
  .content pre { background: #f8fafc; border-color: #e2e8f0; }
  .content h2, .content a { color: var(--brand); }
}

/* ------------------------------
   Reduced motion
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------
   Print
------------------------------ */
@media print {
  body { background: #fff; color: #000; }
  .logo, nav, footer { display: none !important; }
  .content { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
}
