/* Shared layout/styling for /privacy and /terms.
   Mirrors the type stack and palette in index.html so the legal pages
   feel like a quieter room in the same house, not a separate site. */

:root {
  --brand-yellow: #ffd84d;
  --brand-yellow-deep: #c89c19;
  --brand-oxblood: #6b212e;
  --warm-black: #0b0a0e;
  --paper: #f7f2e8;
  --paper-deep: #ece5d3;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  color: #1a1a1a;
  margin: 0;
  line-height: 1.55;
}

.legal-nav {
  position: sticky;
  top: 16px;
  z-index: 30;
  width: 95%;
  max-width: 64rem;
  margin: 16px auto 0;
}

.legal-nav nav {
  background: rgba(247, 242, 232, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "Instrument Serif", serif;
  letter-spacing: -0.02em;
  font-size: 26px;
  line-height: 1;
  color: #1a1a1a;
  text-decoration: none;
}
.wordmark .nda {
  color: var(--brand-yellow-deep);
  position: relative;
}
.wordmark .nda::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.10em;
  height: 0.06em;
  background: var(--brand-yellow-deep);
  border-radius: 999px;
}

.legal-nav .back-link {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.legal-nav .back-link:hover { color: #1a1a1a; }

main.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

main.legal .meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  font-weight: 600;
  margin-bottom: 12px;
}

main.legal h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #1a1a1a;
}

main.legal h1 em {
  font-style: italic;
  color: var(--brand-oxblood);
}

main.legal .effective {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.55);
  font-style: italic;
  margin-bottom: 36px;
}

main.legal h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 36px 0 12px;
  color: #1a1a1a;
}

main.legal h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 24px 0 8px;
  color: #1a1a1a;
}

main.legal p,
main.legal li {
  font-size: 16px;
  color: rgba(26, 26, 26, 0.78);
  margin: 0 0 14px;
}

main.legal ul,
main.legal ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
main.legal li { margin-bottom: 6px; }

main.legal strong { color: #1a1a1a; font-weight: 600; }

main.legal a {
  color: var(--brand-yellow-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
main.legal a:hover { color: #1a1a1a; }

.callout {
  border-left: 2px solid var(--brand-yellow-deep);
  padding: 14px 18px;
  background: rgba(255, 216, 77, 0.10);
  border-radius: 0 12px 12px 0;
  margin: 18px 0 22px;
  font-size: 15px;
}
.callout strong { color: #6b4a06; }

footer.legal {
  background: var(--warm-black);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
}
footer.legal a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
footer.legal a:hover { color: var(--brand-yellow); }
