/*
 * legal.css — shared styles for the apex legal cluster (/privacy, /terms,
 * /refund-policy, /privacy-requests).
 *
 * Brand tokens copied verbatim from apps/web/app/globals.css. The .legal-*
 * rules are copied from apps/web/app/(marketing)/(legacy)/marketing.css with
 * the `.marketing-root ` scoping prefix removed (the static pages have no
 * competing stylesheet). The .site-head / .legal-foot blocks are net-new
 * static chrome — on the canonical site that chrome comes from the Next
 * layout, which is not ported here.
 */
:root {
  --bed-green: #4a6741;
  --bed-green-hover: #3d5735;
  --paper: #f5f0e6;
  --paper-warm: #efe8d7;
  --ink: #2a2a28;
  --ink-soft: #6a6a68;
  --hairline: rgba(42, 42, 40, 0.1);
  --hairline-strong: rgba(42, 42, 40, 0.18);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* static chrome (not in marketing.css — the canonical pages get nav/footer
   from the Next layout) */
.site-head {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 32px 0;
}
.site-head a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "SOFT" 50, "opsz" 36;
}
.site-head .amp {
  color: var(--bed-green);
}

/* .legal-* — copied from marketing.css, .marketing-root prefix removed */
.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.legal-head {
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.legal-eyebrow {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.legal-doc h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "SOFT" 45, "opsz" 72;
  margin-bottom: 14px;
}
.legal-meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
}
.legal-section {
  margin-bottom: 40px;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 50, "opsz" 32;
  margin-bottom: 16px;
  margin-top: 8px;
}
.legal-section h3 {
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin-top: 22px;
  margin-bottom: 10px;
}
.legal-section p {
  margin-bottom: 14px;
  color: var(--ink);
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section ul {
  margin: 10px 0 14px 0;
  padding-left: 24px;
}
.legal-section ul li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.legal-section strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-section a {
  color: var(--bed-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover {
  color: var(--bed-green-hover);
}
.legal-note {
  font-size: 14px;
  color: var(--ink-soft);
  padding-top: 10px;
  border-top: 1px dashed var(--hairline);
  margin-top: 14px;
}

.legal-callout {
  background: var(--paper-warm);
  border-left: 3px solid var(--bed-green);
  border-radius: 4px 8px 8px 4px;
  padding: 22px 24px;
}

.legal-table {
  margin: 14px 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}
.legal-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 2fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.legal-row:last-child {
  border-bottom: none;
}
.legal-row-head {
  background: var(--paper-warm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* net-new static footer (canonical footer comes from the Next layout) */
.legal-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 32px 56px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--hairline);
}
.legal-foot a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px;
}
.legal-foot a:hover {
  color: var(--bed-green);
}
.legal-foot .dot {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 40px 22px 56px;
  }
  .legal-section h2 {
    font-size: 22px;
  }
  .legal-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .legal-row-head {
    display: none;
  }
  .site-head {
    padding: 22px 22px 0;
  }
  .legal-foot {
    padding: 22px 22px 48px;
  }
}
