/* ---------------------------------------------------------------------
   HPSA Finder — design system
   Matches HPSAFinder.com: navy (authority), teal (action/positive),
   amber (CTA accent), cream (calm background). Inter font family.
   ------------------------------------------------------------------- */

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

:root {
  /* HSL tokens matching HPSAFinder.com */
  --navy: hsl(220 47% 20%);
  --navy-light: hsl(220 47% 28%);
  --teal: hsl(173 74% 33%);
  --teal-light: hsl(173 74% 40%);
  --teal-dark: hsl(173 74% 26%);
  --amber: hsl(38 92% 50%);
  --amber-dark: hsl(38 92% 44%);
  --cream: hsl(40 17% 98%);
  --paper: hsl(0 0% 100%);
  --charcoal: hsl(230 6% 14%);
  --foreground: hsl(230 6% 14%);
  --muted: hsl(230 5% 40%);
  --border: hsl(230 10% 90%);
  --input-border: hsl(230 10% 88%);
  --red-700: hsl(0 72% 45%);
  --red-100: hsl(0 72% 96%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 0.5rem;
  --max-width: 72rem;
  --content-width: 42rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--cream);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.25rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--teal);
  transition: transform .2s ease;
}

.site-header__brand:hover .site-header__logo {
  transform: scale(1.05);
}

.site-header__logo svg { width: 1.25rem; height: 1.25rem; color: #fff; }

.site-header__title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-header__title span:first-child {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-header__title span:last-child {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-top: 2px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-link:hover { color: #fff; text-decoration: none; }
.nav-link-active { color: #fff; }

@media (max-width: 48rem) {
  .site-header__nav { display: none; }
}

/* ---- Layout ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 1.25rem;
}

@media (min-width: 48rem) {
  .hero { padding: 6rem 1.25rem; }
}

.hero--compact {
  padding: 2rem 1.25rem;
}

@media (min-width: 48rem) {
  .hero--compact { padding: 2.5rem 1.25rem; }
}

.hero--compact .hero__badge {
  margin-bottom: 0.75rem;
}

.hero--compact h1 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

@media (min-width: 48rem) {
  .hero--compact h1 { font-size: 2.25rem; }
}

.hero--compact .hero__sub {
  font-size: 1rem;
  margin: 0 auto;
}

.hero__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.1);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero__badge svg { width: 0.875rem; height: 0.875rem; }

.hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}

@media (min-width: 48rem) {
  .hero h1 { font-size: 3rem; }
}

.hero h1 .accent { color: var(--amber); }

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(255,255,255,.8);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 40rem) {
  .hero__actions { flex-direction: row; }
}

/* ---- CTA Button (amber, matches HPSAFinder) ---- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--amber);
  color: var(--navy);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.cta-button:hover {
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  filter: brightness(.95);
}

.cta-button:active { transform: scale(.98); }

.cta-button svg { width: 1rem; height: 1rem; }

/* ---- Secondary / outline button ---- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

/* ---- Stats bar ---- */
.stats-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.stats-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2rem 1.25rem;
  gap: 1rem;
}

@media (max-width: 48rem) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
}

.stat-item { text-align: center; }

.stat-item__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1;
}

.stat-item__label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ---- Section ---- */
.section { padding: 4rem 0; }

.section--cream { background: var(--cream); }
.section--white { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }

.section__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.section__inner--wide { max-width: var(--max-width); }

.section__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--navy);
}

.section--navy h2 { color: #fff; }

.section p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted);
}

.section--navy p { color: rgba(255,255,255,.7); }

/* ---- Mode grid (home page cards) ---- */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 48rem) {
  .mode-grid { grid-template-columns: 1fr; }
}

.mode-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  border-top: 4px solid var(--teal);
}

.mode-card:hover {
  text-decoration: none;
  border-color: var(--teal-light);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  transform: translateY(-2px);
}

.mode-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.mode-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.625;
  margin: 0 0 0.75rem;
}

.mode-card__cta {
  display: inline-block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--teal);
}

/* ---- Feature cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 48rem) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: hsl(173 74% 33% / .1);
  margin-bottom: 1rem;
}

.feature-card__icon svg { width: 1.5rem; height: 1.5rem; color: var(--teal); }

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.625;
  margin: 0;
}

/* ---- Card (form container) ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.025em;
}

.card > p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.625;
  margin: 0 0 1.5rem;
}

/* ---- Forms ---- */
label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--navy);
}

.field { margin-bottom: 1.25rem; }

.field__hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.375rem;
  line-height: 1.5;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--foreground);
  transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px hsl(173 74% 33% / .2);
  outline: none;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.5rem;
  margin: 0 0 1.25rem;
}

legend {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  padding: 0 0.375rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.checkbox-row input { margin-top: 0.25rem; }
.checkbox-row p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Primary button (teal) ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.btn-primary:hover {
  background: var(--teal-light);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { background: hsl(220 10% 70%); cursor: not-allowed; box-shadow: none; }

.btn-primary svg { width: 1rem; height: 1rem; }

/* ---- Secondary button ---- */
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-secondary:hover { background: hsl(220 47% 20% / .05); }

/* ---- Back link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--teal); text-decoration: none; }

/* ---- Disclaimer ---- */
.disclaimer-section {
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.disclaimer-section__inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.disclaimer-section h2 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.disclaimer-section p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.625;
  margin: 0;
}

.disclaimer-section a { font-weight: 500; }

/* Inline disclaimer (form pages) */
.disclaimer {
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.5rem;
  line-height: 1.625;
}

.disclaimer + .disclaimer { margin-top: 0.75rem; padding-top: 0.75rem; border-top: none; }

/* ---- FAQ list ---- */
.faq-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.faq-column {
  min-width: 0;
}

.faq-column__heading {
  min-height: 9.5rem;
  margin-bottom: 1.25rem;
}

.faq-column__heading h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 0.625rem;
}

.faq-column__heading p:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.625;
  margin: 0;
}

@media (max-width: 48rem) {
  .faq-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-column__heading {
    min-height: 0;
    margin-bottom: 1rem;
  }
}

.faq-list {
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item[open] {
  border-color: var(--teal-light);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  transition: background .2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { background: hsl(220 47% 20% / .03); }

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a596' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item__body {
  padding: 0 1.25rem 1.125rem;
}

.faq-item__body p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ---- Error / notice boxes ---- */
.error-box {
  background: var(--red-100);
  border: 1px solid var(--red-700);
  color: var(--red-700);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.notice-box {
  background: hsl(38 92% 96%);
  border: 1px solid var(--amber);
  color: hsl(38 92% 30%);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

/* ---- Result display ---- */
.result-figure {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.result-figure__item { flex: 1 1 10rem; }

.result-figure__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.result-figure__label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

dl.attr-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
  font-size: 0.875rem;
  margin: 0;
}

dl.attr-list dt { color: var(--muted); font-weight: 500; }
dl.attr-list dd { margin: 0; font-weight: 400; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #fff;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 48rem) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--teal);
}

.site-footer__logo svg { width: 1rem; height: 1rem; color: #fff; }

.site-footer__brand-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.site-footer__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
  line-height: 1.625;
  max-width: 20rem;
}

.site-footer__heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li { margin-bottom: 0.5rem; }

.site-footer__links a {
  font-size: 0.875rem;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer__links a:hover { color: #fff; }

.site-footer__bottom {
  background: hsl(220 47% 16%);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
  line-height: 1.625;
}

.site-footer__bottom a { color: rgba(255,255,255,.7); }

/* ---- Page content (form/result pages) ---- */
.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-content--wide {
  max-width: var(--max-width);
}

.page-content__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

.page-content__subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* ---- CTA section (navy band) ---- */
.cta-section {
  background: var(--navy);
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
}

@media (min-width: 48rem) {
  .cta-section h2 { font-size: 2.25rem; }
}

.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* ---- Loading state ---- */
.loading-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.loading-pulse::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Legal / content page ---- */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

.legal-content__meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-content__intro {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}

.legal-content p {
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.legal-content ul {
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.75;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-content ul li { margin-bottom: 0.375rem; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
}

.legal-content table th {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid var(--border);
}

.legal-content table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  vertical-align: top;
  line-height: 1.625;
}

.legal-content a { color: var(--teal); font-weight: 500; }

.legal-content strong { font-weight: 600; }

/* ---- Contact form ---- */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--foreground);
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
  min-height: 8rem;
}

textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px hsl(173 74% 33% / .2);
  outline: none;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 36rem) {
  .contact-info { grid-template-columns: 1fr; }
}

/* ---- Responsive ---- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
