:root {
  --primary: #006C57;
  --primary-container: #77F2D0;
  --on-primary: #E4FFF4;
  --accent: #FF716C;
  --surface: #E4FFF9;
  --surface-low: #D4FCF4;
  --surface-container: #C9F7EE;
  --surface-high: #BDF3E9;
  --on-surface: #003A33;
  --outline: #4A857C;
  --outline-var: #81BDB3;
  --footer-bg: #002A24;
  --footer-text: #84A39D;
  --shadow: 0 4px 24px rgba(0, 60, 50, 0.1);
  --font-body: 'Open Sans', sans-serif;
  --font-display: 'EB Garamond', serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --secondary-container: #FFDDB2;
  --on-secondary-container: #684D24;
  --tertiary-container: #FBAF48;
  --on-tertiary-container: #553300;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img { display: block; max-width: 100%; }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(228, 255, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline-var);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-surface);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0, 108, 87, 0.25);
}

.btn-primary:hover {
  background: #005947;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 108, 87, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary-container);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--primary-container);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--surface-low);
  border-color: var(--outline);
  color: var(--primary);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 2.25rem;
  background-image: linear-gradient(135deg, rgba(228, 255, 249, 0.96) 0%, rgba(189, 243, 233, 0.8) 60%, rgba(119, 242, 208, 0.55) 100%);
  border-bottom: 1px solid var(--outline-var);
}

.hero-eyebrow {
  display: inline-block;
  background: var(--primary-container);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  margin-bottom: 0.65rem;
}

.legal-hero p {
  max-width: 70ch;
  color: #2c6960;
}

.legal-main {
  padding: 2rem 0 4rem;
}

.legal-card {
  background: linear-gradient(180deg, #f4fffc 0%, #ecfff9 100%);
  border: 1px solid var(--outline-var);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.3vw, 2.25rem);
}

.legal-card h2 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin-top: 1.75rem;
  margin-bottom: 0.55rem;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p {
  margin-bottom: 0.9rem;
}

.legal-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.3rem;
  margin-bottom: 0.95rem;
}

.legal-card li {
  margin-bottom: 0.45rem;
}

.legal-card .muted {
  color: #2f7a6f;
  font-weight: 600;
}

.muted {
  color: #2f7a6f;
  font-weight: 600;
}

footer {
  background: var(--on-surface);
  padding: 3rem 0 2rem;
  color: #84A39D;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 35ch;
}

.footer-brand .nav-logo {
  color: #bdf3e9;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #70d8c9;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bdf3e9;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: #84a39d;
  transition: color 0.2s;
}

.footer-col ul li a:hover,
.footer-bottom a:hover {
  color: #bdf3e9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: #70d8c9;
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.35rem;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding-top: 3rem;
  }

  .legal-card {
    border-radius: var(--radius-sm);
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ── FAQ / Support page ────────────────────────────────────────────────────── */

.faq-section-title {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.faq-section-title:first-of-type {
  margin-top: 0;
}

.faq-item {
  border-top: 1px solid var(--outline-var);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--outline-var);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 0.25rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--on-surface);
  list-style: none;
  user-select: none;
  transition: color 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 0.25rem 1.1rem;
  color: #2c6960;
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p + p {
  margin-top: 0.6rem;
}

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.faq-cat-pill {
  display: inline-block;
  background: var(--surface-container);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid var(--outline-var);
  transition: background 0.15s, border-color 0.15s;
}

.faq-cat-pill:hover {
  background: var(--primary-container);
  border-color: var(--primary);
}

.support-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #005947 100%);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
  color: var(--on-primary);
}

.support-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
  color: #fff;
}

.support-cta p {
  opacity: 0.85;
  margin-bottom: 1.4rem;
  font-size: 0.97rem;
}

.support-cta .btn-ghost {
  color: var(--primary-container);
  border-color: var(--primary-container);
}

.support-cta .btn-ghost:hover {
  background: rgba(119,242,208,0.15);
  border-color: #fff;
  color: #fff;
}

