/* ==========================================================================
   Project E31 — legal pages (Privacy Policy / Terms of Use)
   Shares the main site's tokens. Header, title, intro and disclaimer are
   centered like the rest of the site; the policy body text itself is
   left-aligned within a centered column, which is the standard, more
   legible way to set long-form legal prose — everything else on the page
   (and the whole main landing page) stays centered as requested.
   ========================================================================== */

:root {
  --bg: #F8E7C9;
  --surface: #FBF0DA;
  --text: #2E2925;
  --muted: #6B6055;
  --border: rgba(46, 41, 37, 0.14);

  --accent: #064E3B;
  --accent-soft: rgba(6, 78, 59, 0.08);
  --accent-border: rgba(6, 78, 59, 0.35);

  --brass: #8C6A2F;
  --brass-ink: #7A5A28; /* darkened for text on --brass-soft: ~4.6-5:1, meets WCAG AA at small sizes */
  --brass-soft: rgba(140, 106, 47, 0.10);
  --brass-border: rgba(140, 106, 47, 0.45);

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 1.2rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.nav-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 0.5rem;
  text-align: center;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.lang-switch a:hover,
.lang-switch a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent-border);
}

@media (min-width: 640px) {
  .nav-bar {
    flex-direction: row;
    justify-content: space-between;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
  }
}

.legal-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.legal-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.legal-header .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-ink);
  background-color: var(--brass-soft);
  border: 1px solid var(--brass-border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.legal-header .updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.disclaimer {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  text-align: center;
}

.legal-body {
  text-align: left;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 2.2rem 0 0.75rem;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body li {
  font-size: 1rem;
  color: var(--text);
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body a {
  color: var(--accent);
}

.legal-body strong {
  color: var(--text);
}

.legal-footer-nav {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.legal-footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-footer-nav a:hover {
  color: var(--text);
}

@media (min-width: 480px) {
  .legal-footer-nav {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
