/* MyPaperMaps - legal pages (privacy.html, terms.html) ONLY.
 *
 * Deliberately self-contained: the legal pages must stay readable while
 * holding mode is on, and the holding gate exempts exactly these two pages
 * plus this stylesheet and the public brand lockup (see gate.php
 * GATE_PUBLIC_FILES). They must not depend on any OTHER gated asset - no
 * style.css, no JS. Tokens mirror css/style.css so the pages match. */
:root {
  --ink: #e8eef4;
  --ink-soft: #9fb0c3;
  --green: #3ecf8e;
  --paper: #0f1620;
  --paper-warm: #17212d;
  --line: #2d3a48;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Skip link + focusable <main>, mirroring css/style.css. The legal pages are
   deliberately self-contained (they must render while the holding gate is
   closed), so the rules are duplicated rather than imported. */
.skip-link {
  position: absolute; top: 0; left: -9999px; z-index: 200;
  background: var(--green); color: #07120c;
  font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus, .skip-link:focus-visible { left: 0; }
main[tabindex="-1"]:focus, main[tabindex="-1"]:focus-visible { outline: none; }
/* Transitions are killed outright, not shortened - transition-property's
   initial value is "all", so naming a duration on the universal selector
   would GIVE every element a transition it never had, and any same-task
   write-then-measure would then read the old value. These pages carry no
   script today, but the rule mirrors css/style.css so the hazard cannot be
   reintroduced by adding one. Animations keep the near-zero duration. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.legal-header .brand {
  display: inline-flex; align-items: center;
  color: var(--ink); text-decoration: none;
}
/* The SAME first-party lockup asset the app header and the holding page use -
   one artwork, no hand-built copy to drift out of step. The <img> carries the
   accessible name (alt="MyPaperMaps"), so no text node is needed. Sized by
   width with height:auto so the 5:1 artwork keeps its proportions when a
   narrow viewport clamps it (max-width) instead of squashing. */
.legal-header .brand img { display: block; width: 230px; max-width: 100%; height: auto; }
.legal-header .brand:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.legal-header nav { display: flex; gap: 18px; }
.legal-header nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px; }
.legal-header nav a:hover,
.legal-header nav a[aria-current="page"] { color: var(--green); }
main {
  flex: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 48px) 64px;
}
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 4px; }
h2 { font-size: 22px; line-height: 1.2; margin: 32px 0 10px; }
p, li { color: var(--ink-soft); }
main a { color: var(--green); }
strong { color: var(--ink); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.updated { font-size: 14px; color: var(--ink-soft); margin: 0 0 24px; }
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 18px clamp(16px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink-soft);
}
.legal-footer nav { display: flex; gap: 18px; }
.legal-footer a { color: var(--ink-soft); text-decoration: none; }
.legal-footer a:hover { color: var(--green); }
@media (max-width: 520px) {
  .legal-header { flex-wrap: wrap; }
}
