/* Legal document pages — shared styles.
   Uses the same palette as the main landing but strips all marketing flourish. */

:root {
  --cream: #f4f1ea;
  --cream-2: #ebe6da;
  --ink: #0e1a3d;
  --muted: #5a6480;
  --rule: #c9c3b1;
  --accent: #2d6fdb;
  --accent-warm: #ff8845;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.legal-back:hover {
  color: var(--accent);
}

.legal-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 30,
    "WONK" 1;
}

.legal-meta {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-body h2 {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 16px;
  letter-spacing: -0.01em;
}

.legal-body h3 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
}

.legal-body p {
  margin: 0 0 14px;
  color: var(--ink);
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-body li {
  margin: 6px 0;
  color: var(--ink);
}

.legal-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}

.legal-body code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(45, 111, 219, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.legal-body b,
.legal-body strong {
  font-weight: 700;
}

.legal-body blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--cream-2);
  color: var(--ink);
  font-style: italic;
}

.legal-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ Shared dark site footer (mirrors styles.css) ============ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
}
.footer .container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(242, 237, 227, 0.15);
  margin-bottom: 24px;
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .footer-logo {
  margin-top: -6px;
}
.footer-logo {
  font-family: "Playfair Display", "Fraunces", Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.005em;
  color: var(--cream);
  margin-bottom: 8px;
}
.footer-brand p {
  font-family: "Fraunces", serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(242, 237, 227, 0.55);
  margin: 0;
  line-height: 1.5;
}
.footer-head {
  font-family: "Playfair Display", "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--accent-warm);
  margin-bottom: 10px;
}
.footer-col a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(242, 237, 227, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}
.footer-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: rgba(242, 237, 227, 0.45);
  fill: currentColor;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.footer-link:hover .footer-ico { color: var(--accent-warm); }
.footer-merchant {
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(242, 237, 227, 0.12);
  border-bottom: 1px solid rgba(242, 237, 227, 0.12);
  margin-bottom: 20px;
}
.footer-merchant p {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(242, 237, 227, 0.55);
  margin: 0 0 12px;
  max-width: 820px;
}
.footer-merchant p:last-child { margin-bottom: 0; }
.footer-merchant a {
  color: var(--accent-warm);
  border-bottom: 1px solid var(--accent-warm);
  text-decoration: none;
}
.footer-disclaimer {
  font-size: 11px !important;
  color: rgba(242, 237, 227, 0.45) !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: rgba(242, 237, 227, 0.45);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 820px) {
  .footer { padding: 60px 0 32px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "brand brand" "links-a links-b";
    gap: 36px 24px;
    padding-bottom: 36px;
  }
  .footer-brand { grid-area: brand; }
  .footer-grid > .footer-col:nth-child(2) { grid-area: links-a; }
  .footer-grid > .footer-col:nth-child(3) { grid-area: links-b; }
  .footer-logo { font-size: 24px; }
  .footer-head { font-size: 22px; }
  .footer-brand p { max-width: 420px; }
  .footer-merchant { padding-top: 24px; padding-bottom: 24px; }
  .footer-merchant p { font-size: 12px; line-height: 1.55; }
  .footer-bottom { justify-content: center; text-align: center; }
}
