@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F7F5;
  --bg-deep: #EFEEEA;
  --ink: #0E1116;
  --ink-soft: #2A2E36;
  --ink-muted: #6B6F78;
  --ink-faint: #B4B7BD;
  --border: #E8E8E4;
  --border-strong: #D4D4CE;
  --accent: #8B5D6B;
  --accent-dark: #744D5A;
  --accent-soft: rgba(139,93,107,0.07);
  --accent-mid: rgba(139,93,107,0.16);
  --amber: #C4963A;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --section-y: 88px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow {
  max-width: 800px;
}

/* ── Nav (matches index) ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  color: var(--ink);
}
a.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: -0.005em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.005em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ghost:hover {
  background: var(--bg-soft);
}
.btn-ghost--sm {
  padding: 10px 16px;
  font-size: 14px;
}

/* ── Legal / policy pages ── */
.doc-main {
  padding: var(--section-y) 0 80px;
}
.doc-main h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-align: center;
  margin-bottom: 12px;
}
.doc-main h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 36px 0 14px;
  color: var(--accent);
}
.doc-main h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
}
.doc-main p {
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.doc-main ul,
.doc-main ol {
  margin: 16px 0 20px;
  padding-left: 24px;
}
.doc-main li {
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.doc-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc-main a:hover {
  color: var(--accent-dark);
}

.last-updated {
  text-align: center;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 36px;
  font-size: 15px;
}

.contact-info {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
}
.contact-info h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.contact-info p {
  margin-bottom: 8px;
}
.contact-info a {
  color: var(--accent);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

.notice {
  background: rgba(196, 150, 58, 0.09);
  border: 1px solid rgba(196, 150, 58, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
}
.notice p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.notice p:last-child {
  margin-bottom: 0;
}

.back-link {
  text-align: center;
  margin-top: 44px;
}

/* ── Help page ── */
.page-hero {
  padding: var(--section-y) 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.page-hero .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
}

.help-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}
.help-section:last-of-type {
  border-bottom: none;
}
.help-section h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}
.help-section h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.help-section h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--accent);
}
.help-section p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 17px;
}
.fine-print {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}
.help-section .fine-print {
  margin-top: 12px;
}
.site-footer .fine-print {
  margin-top: 4px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin: 28px 0 32px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  text-align: left;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.card ul {
  padding-left: 20px;
  margin: 0;
}
.card li {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.highlight {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 24px;
  margin: 22px 0;
}
.highlight h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--ink);
}
.highlight p {
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-size: 15px;
}
.highlight p:last-child {
  margin-bottom: 0;
}
.highlight ul {
  margin: 0;
  padding-left: 20px;
}
.highlight li {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.highlight li:last-child {
  margin-bottom: 0;
}
.highlight a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.highlight a:hover {
  color: var(--accent-dark);
}

.section-muted {
  background: var(--bg-soft);
}

.faq-item {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.faq-answer {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 16px;
}
.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-row {
  text-align: center;
  margin: 24px 0 8px;
}
.cta-row .btn-primary {
  padding: 15px 28px;
  font-size: 16px;
}

/* ── Thank you ── */
.thanks-hero {
  padding: calc(var(--section-y) * 1.15) 0 calc(var(--section-y) * 1.25);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.thanks-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.thanks-hero > .container > p {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 8px;
  line-height: 1.5;
}
.thanks-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  max-width: 520px;
  margin: 28px auto 0;
  text-align: left;
}
.thanks-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.thanks-card p {
  color: var(--ink-soft);
  margin-bottom: 12px;
  font-size: 16px;
}
.thanks-card p:last-child {
  margin-bottom: 0;
}
.thanks-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.thanks-actions .btn-primary,
.thanks-actions .btn-ghost {
  min-height: 44px;
}

/* ── Footer (matches index tone) ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 38px;
  font-size: 13px;
  color: var(--ink-muted);
  background: #fff;
  text-align: center;
}
.site-footer p {
  margin-bottom: 8px;
  line-height: 1.5;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}
.site-footer .foot-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.doc-main p,
.doc-main li,
.help-section p,
.faq-answer {
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  :root {
    --section-y: 64px;
  }
  .container {
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
  .nav-inner {
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
}

@media (max-width: 600px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .logo {
    font-size: 20px;
  }
  .nav-actions {
    width: 100%;
    justify-content: stretch;
  }
  .nav-actions .btn-primary,
  .nav-actions .btn-ghost {
    flex: 1;
    min-width: 0;
    min-height: 44px;
  }
  .page-hero .lede {
    font-size: 17px;
  }
  .thanks-card {
    padding: 22px 18px;
    margin-inline: 0;
  }
  .thanks-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .thanks-actions .btn-primary,
  .thanks-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .site-footer {
    padding-bottom: max(38px, env(safe-area-inset-bottom));
  }
  .cta-row .btn-primary {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
  }
}

@media (max-width: 400px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav-inner {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .highlight {
    padding: 18px 16px;
  }
  .card {
    padding: 20px 16px;
  }
}
