/* ENG-316: shared styling for the public legal pages.
   These are served by nginx as static files, outside the SPA, so they render with no
   JavaScript and stay reachable while the app container restarts. That is deliberate:
   Google's reviewer fetches them without running our bundle, and a privacy policy that
   404s during a deploy is a bad look on the one page that has to be dependable.
   Self-contained on purpose, no build step, no imports. */

:root {
  --forest: #2C4A35;
  --sage: #8FA791;
  --sagepale: #EBF3EC;
  --cream: #FAF8F3;
  --terra: #B66D52;
  --terra-bg: #F7ECE6;
  --terra-rule: #E4C7B9;
  --ink: #1C2B20;
  --muted: #5C6E60;
  --faint: #7E8F82;
  --rule: #DFE6DC;
}

@media (prefers-color-scheme: dark) {
  :root {
    --forest: #A9C4AC;
    --sagepale: #212D24;
    --cream: #141C16;
    --terra: #D89474;
    --terra-bg: #2A211C;
    --terra-rule: #4A3529;
    --ink: #E8EFE7;
    --muted: #A8B8A9;
    --faint: #8A9C8C;
    --rule: #2C3A2E;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  color: var(--forest);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 34px;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  margin: 30px 0 6px;
  color: var(--ink);
}

p { margin: 0 0 14px; color: var(--muted); max-width: 64ch; }
p strong { color: var(--ink); font-weight: 500; }
a { color: var(--forest); }

.updated {
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

/* Language switch. Progressive enhancement: with JavaScript the links toggle a single
   visible language; without it they are plain anchors and both sections render stacked,
   which is exactly what a reviewer's no-JS fetch sees. */
.langs {
  display: flex;
  gap: 8px;
  margin: 22px 0 34px;
}
.langs a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 4px 12px;
}
.langs a:hover { border-color: var(--sage); color: var(--ink); }
.langs a[aria-current="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

section[lang] { padding-top: 8px; }
section[lang] > h1 {
  font-size: clamp(24px, 4vw, 30px);
  margin: 8px 0 16px;
}

.notice {
  background: var(--terra-bg);
  border: 1px solid var(--terra-rule);
  border-left: 3px solid var(--terra);
  border-radius: 3px;
  padding: 16px 18px;
  margin: 0 0 30px;
}
.notice p { color: var(--ink); margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--terra); }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--faint);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
