/* ============================================================
   Monarc Media — legal pages (privacy.html, terms.html, accessibility.html)
   Standalone on purpose: these pages don't need the 160 KB site
   stylesheet, the preloader or any animation. Brand tokens mirror
   styles.css. Body text colors are chosen for WCAG AA contrast on ink.
============================================================ */
:root {
  --gold:     #C4902A;
  --gold-hi:  #E0B055;   /* links on ink — 8.9:1 contrast */
  --ink:      #060606;
  --ink-card: #131311;
  --text:     #EDEBE6;   /* 16.9:1 on ink */
  --muted:    #B5B0A8;   /* 9.4:1 on ink */
  --rule:     rgba(237, 235, 230, 0.12);
  --ff-serif: 'DM Serif Display', Georgia, serif;
  --ff-sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.7 var(--ff-sans);
}

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  padding: 10px 16px;
  background: var(--gold);
  color: #0b0b0b;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 2px solid #fff; outline-offset: 2px; }

a { color: var(--gold-hi); text-underline-offset: 2px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

.lg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px;
  border-bottom: 1px solid var(--rule);
}
/* Matches the main site's .nav-logo: whole wordmark italic gold. */
.lg-logo {
  font-family: var(--ff-serif);
  font-size: 26px;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.lg-back { font-size: 14px; }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.lg-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
h1 {
  margin: 0 0 12px;
  font: 400 clamp(36px, 7vw, 56px)/1.1 var(--ff-serif);
}
h1 em { color: var(--gold); }
.lg-meta { margin: 0 0 32px; color: var(--muted); font-size: 14px; }

h2 {
  margin: 48px 0 12px;
  padding-top: 8px;
  font: 400 clamp(24px, 4vw, 30px)/1.25 var(--ff-serif);
  scroll-margin-top: 24px;
}
h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; }
p, li { color: var(--muted); }
p strong, li strong { color: var(--text); }
ul, ol { padding-left: 1.25em; }
li { margin: 6px 0; }

.lg-summary {
  margin: 0 0 40px;
  padding: 20px 24px;
  background: var(--ink-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
}
.lg-summary h2 { margin-top: 0; font-size: 22px; }
.lg-summary ul { margin: 0; }

.lg-toc {
  margin: 0 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.lg-toc h2 { margin: 0 0 8px; font: 600 13px/1.4 var(--ff-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.lg-toc ol { margin: 0; columns: 2 240px; column-gap: 32px; }
.lg-toc li { margin: 4px 0; break-inside: avoid; }

.lg-table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { color: var(--text); font-weight: 600; background: var(--ink-card); }
td { color: var(--muted); }
code { font-size: 0.92em; color: var(--text); }

.lg-footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.lg-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Phones: tables become stacked cards (one card per row, each value under
   its column label) instead of a wide table that gets cut off. */
@media (max-width: 600px) {
  .lg-table-wrap { overflow: visible; }
  table { min-width: 0; font-size: 14px; }
  table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td { display: block; width: 100%; }
  tr {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: var(--ink-card);
    border: 1px solid var(--rule);
    border-radius: 10px;
  }
  td { padding: 6px 0; border: 0; overflow-wrap: anywhere; }
  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-hi);
  }
  td:first-child { color: var(--text); font-weight: 600; }
}
