/* MetaView — shared styles for legal pages (privacy, terms)
   Matches the visual language of index.html:
   navy text on off-white, DM Sans + DM Mono, navy footer. */

:root {
  --navy: #0D1B33;
  --navy-80: #2a3a55;
  --navy-60: #5a6679;
  --navy-40: #8d96a6;
  --text-secondary: #6B84A0;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --border: #E8ECF4;
  --border-strong: #D6DCE8;
  --amber: #F0A500;

  --maxw: 1200px;
  --gutter: 32px;

  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.mono {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-60);
  font-weight: 400;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----------------------------------- NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-decoration: none;
}
.wordmark-img {
  height: 26px;
  width: auto;
  display: block;
}
.wordmark-mark {
  width: 18px; height: 18px;
  display: inline-block;
  position: relative;
}
.wordmark-mark::before,
.wordmark-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--navy);
}
.wordmark-mark::after {
  transform: translate(4px, 4px);
  background: var(--navy);
  border: none;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy-80);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 150ms ease, transform 150ms ease;
}
.nav-back:hover { color: var(--navy); }
.nav-back-arrow {
  width: 14px; height: 10px;
  transform: scaleX(-1);
  transition: transform 150ms ease;
}
.nav-back:hover .nav-back-arrow { transform: scaleX(-1) translateX(3px); }

/* ----------------------------------- LEGAL PAGE */
.legal { padding: 88px 0 120px; }

.legal-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: left;
}
.legal-head .mono { display: inline-block; margin-bottom: 22px; }
.legal-head h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--navy);
}
.legal-head .updated {
  color: var(--text-secondary);
  font-size: 12px;
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy-80);
}

.legal-body .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--navy);
  max-width: 60ch;
}

.legal-body section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-body h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 2px;
}

.legal-body p { color: var(--navy-80); }

.legal-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 150ms ease;
}
.legal-body a:hover { text-decoration-color: var(--navy); }

.legal-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--navy-80);
}
.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--navy-40);
}

.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

/* ----------------------------------- FOOTER (mirrors index.html) */
.footer {
  padding: 56px 0 48px;
  border-top: 1px solid rgba(250, 250, 247, 0.08);
  background: var(--navy);
  color: rgba(250, 250, 247, 0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.footer .wordmark { font-size: 15px; color: var(--bg); }
.footer .wordmark-img { height: 24px; filter: brightness(0) invert(1); }
.footer .wordmark-mark::before { border-color: var(--bg); }
.footer .wordmark-mark::after { background: var(--bg); }
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-left small {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: rgba(250, 250, 247, 0.5);
  margin-left: 26px;
}
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.footer-center a {
  color: rgba(250, 250, 247, 0.7);
  text-decoration: none;
  padding: 4px 2px;
  transition: color 150ms ease;
}
.footer-center a:hover,
.footer-center a[aria-current="page"] { color: var(--bg); }
.footer-center .sep {
  color: rgba(250, 250, 247, 0.25);
  font-size: 13px;
  border: 0;
  margin: 0;
}
.footer-right {
  text-align: right;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.5);
}

/* ----------------------------------- RESPONSIVE */
@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .legal { padding: 56px 0 80px; }
  .legal-head { margin-bottom: 40px; }
  .legal-head h1 { font-size: clamp(34px, 8vw, 44px); }
  .legal-body { font-size: 16px; }
  .legal-body .lede { font-size: 17.5px; }
  .legal-body h2 { font-size: 20px; }
  .sep { margin: 36px 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-center { justify-content: flex-start; }
  .footer-right { text-align: left; }
}
