@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}

:root {
  --mm-50: #faf7f2;
  --mm-100: #f3ecdc;
  --mm-200: #e8dfc8;
  --mm-300: #decfae;
  --mm-400: #cfba8e;
  --mm-500: #e3a23c;
  --mm-600: #c1552c;
  --mm-700: #a84824;
  --mm-800: #28374d;
  --mm-900: #151f2e;
  --font-brand: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(21, 31, 46, 0.08);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--mm-900);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(227, 162, 60, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(193, 85, 44, 0.08), transparent 50%),
    linear-gradient(180deg, var(--mm-50) 0%, var(--mm-100) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mm-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--mm-800);
}

.mm-brand {
  font-family: var(--font-brand);
  letter-spacing: -0.025em;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--mm-50) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--mm-200) 70%, transparent);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--mm-800);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--mm-700);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus-visible {
  color: #fff;
}

.nav-cta {
  display: none;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
}

.btn:active {
  transform: translateY(1px);
}

a.btn-primary,
.btn-primary {
  background: var(--mm-700);
  color: #fff;
}

a.btn-primary:hover,
a.btn-primary:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--mm-800);
  color: #fff;
}

a.btn-secondary,
.btn-secondary {
  background: transparent;
  color: var(--mm-800);
  border-color: var(--mm-200);
}

a.btn-secondary:hover,
a.btn-secondary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--mm-100);
  color: var(--mm-800);
}

.cta-panel a.btn-primary,
.cta-panel a.btn-primary:hover,
.cta-panel a.btn-primary:focus-visible {
  color: #fff;
}

.btn-nav {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* —— Hero —— */
.hero {
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 2.25rem;
}

.hero-copy {
  max-width: 36rem;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  width: 100%;
  max-width: 36rem;
}

.hero-brand-icon {
  width: clamp(4.5rem, 12vw, 5.75rem);
  height: auto;
  flex-shrink: 0;
}

.hero-brand-wordmark {
  width: min(100%, 17.5rem);
  height: auto;
  display: block;
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--mm-900);
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--mm-700);
  font-size: 1.05rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  margin: 0 -0.5rem;
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--mm-200);
}

/* —— Story / Gmail POP3 —— */
.section-story {
  padding: 3.25rem 0 4rem;
}

.story-grid {
  display: grid;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-600);
}

.story-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-brand);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--mm-800);
}

.story-copy p {
  margin: 0 0 1rem;
  color: var(--mm-700);
  max-width: 40rem;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-card {
  border: 1px solid var(--mm-200);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--mm-50) 88%, white);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.story-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--mm-800);
}

.story-card ul {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.story-card li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-top: 1px solid var(--mm-100);
  color: var(--mm-800);
  font-size: 0.98rem;
}

.story-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.story-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mm-600);
}

.story-card li:first-child::before {
  top: 0.55rem;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
}

.faq-item {
  border: 1px solid var(--mm-200);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--mm-50) 90%, white);
  padding: 0.15rem 1rem 0.15rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-family: var(--font-brand);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--mm-800);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--mm-600);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--mm-700);
  padding-right: 1.5rem;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: color-mix(in srgb, var(--mm-100) 55%, transparent);
  border-block: 1px solid var(--mm-200);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--mm-800);
}

.section-head p {
  margin: 0;
  color: var(--mm-700);
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature {
  padding: 0.25rem 0;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--mm-700);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--mm-800);
}

.feature p {
  margin: 0;
  color: var(--mm-700);
  font-size: 1rem;
}

/* —— Steps —— */
.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--mm-800);
  color: var(--mm-50);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 1.1rem;
  color: var(--mm-800);
}

.step p {
  margin: 0;
  color: var(--mm-700);
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  margin-inline: auto;
  max-width: 820px;
}

#piani .section-head {
  margin-inline: auto;
  text-align: center;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 2rem;
  padding: 0.28rem;
  border: 1px solid var(--mm-200);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 31, 46, 0.04);
  width: fit-content;
  max-width: 100%;
}

#piani .billing-toggle {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.billing-opt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mm-700);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.billing-opt.is-active {
  background: var(--mm-800);
  color: #fff;
}

.billing-save {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--mm-100);
  color: var(--mm-700);
}

.billing-opt.is-active .billing-save {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--mm-200);
  border-radius: 16px;
  background: #fff;
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: 0 1px 2px rgba(21, 31, 46, 0.04);
}

.plan-pro {
  border-color: color-mix(in srgb, var(--mm-800) 28%, var(--mm-200));
  box-shadow:
    0 1px 2px rgba(21, 31, 46, 0.04),
    0 18px 40px rgba(40, 55, 77, 0.1);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mm-100) 55%, #fff) 0%, #fff 42%);
}

.plan-pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--mm-800), var(--mm-600));
}

.plan-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  min-height: 5.75rem;
}

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: var(--mm-800);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.plan-badge-spacer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.plan-name {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mm-800);
  line-height: 1.2;
}

.plan-blurb {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--mm-600);
  min-height: 2.7em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mm-200);
  min-height: 3.1rem;
}

.plan-amount {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--mm-900);
  line-height: 1;
}

.plan-period {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mm-600);
}

.plan-features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

.plan-features li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.85rem;
  color: var(--mm-800);
  font-size: 0.95rem;
  line-height: 1.4;
  border-top: 1px solid var(--mm-100);
}

.plan-features li:first-child {
  border-top: 0;
  padding-top: 0;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mm-800) 10%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mm-800) 35%, transparent);
}

.plan-features li:first-child::before {
  top: 0.2rem;
}

.plan-features li::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 1.12rem;
  width: 0.38rem;
  height: 0.22rem;
  border-left: 2px solid var(--mm-700);
  border-bottom: 2px solid var(--mm-700);
  transform: rotate(-45deg);
}

.plan-features li:first-child::after {
  top: 0.48rem;
}

.plan-pro .plan-features li::before {
  background: color-mix(in srgb, var(--mm-600) 12%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mm-600) 45%, transparent);
}

.plan-pro .plan-features li::after {
  border-color: var(--mm-600);
}

.plan-cta {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.plan .btn-secondary {
  background: #fff;
}

/* —— CTA band —— */
.cta-band {
  padding: 3.5rem 0 4.5rem;
}

.cta-panel {
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, var(--mm-800) 0%, #1c2838 55%, #243247 100%);
  color: var(--mm-50);
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.025em;
}

.cta-panel p {
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  color: var(--mm-200);
}

.cta-panel .btn-primary,
.cta-panel a.btn-primary {
  background: var(--mm-600);
  color: #fff;
}

.cta-panel .btn-primary:hover,
.cta-panel a.btn-primary:hover {
  background: var(--mm-500);
  color: #fff;
}

/* —— Footer —— */
.site-footer {
  margin-top: 0;
  padding: 3rem 0 0;
  background:
    linear-gradient(180deg, #1c2838 0%, var(--mm-800) 45%, #1a2433 100%);
  color: var(--mm-200);
  font-size: 0.9rem;
  border-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232, 223, 200, 0.14);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 18rem;
  text-decoration: none;
  color: inherit;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--mm-50);
}

.footer-brand-mark:hover {
  color: #fff;
}

.footer-brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
}

.footer-brand-name span {
  color: #e8a07a;
}

.footer-tagline {
  margin: 0;
  color: var(--mm-300);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-nav {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-400);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--mm-100);
  text-decoration: none;
  font-weight: 500;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 0 1.5rem;
  color: var(--mm-400);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--mm-300);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--mm-100);
  text-decoration: underline;
}

.footer-legal {
  margin: 0;
  color: var(--mm-400);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 3rem;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy.reveal {
  transition-delay: 0.05s;
}

.hero-visual.reveal {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Desktop —— */
@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero-inner {
    gap: 2.75rem;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
    gap: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .step {
    padding-left: 0;
    padding-top: 3.25rem;
  }

  .step::before {
    top: 0;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cta-panel {
    padding: 2.75rem 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 3rem;
  }

  .hero-visual {
    margin: 0;
  }
}

/* —— Legal pages —— */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--mm-800);
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--mm-600);
  font-size: 0.9rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--mm-200);
  list-style: none;
  font-size: 0.92rem;
}

.legal-nav a {
  color: var(--mm-700);
  text-decoration: none;
  font-weight: 500;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--mm-800);
  text-decoration: underline;
}

.legal-content {
  max-width: 46rem;
}

.legal-content h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--mm-800);
}

.legal-content h3 {
  margin: 1.25rem 0 0.45rem;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--mm-800);
}

.legal-content p,
.legal-content li {
  color: var(--mm-700);
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--mm-200);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--mm-100);
  color: var(--mm-800);
  font-weight: 600;
}

.legal-content code {
  font-size: 0.88em;
  background: var(--mm-100);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 420px;
  margin-inline: auto;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--mm-200);
  background: var(--mm-50);
  box-shadow: 0 16px 48px rgba(21, 31, 46, 0.18);
  color: var(--mm-900);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--mm-800);
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--mm-700);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--mm-700);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
}

.cookie-prefs {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mm-200);
}

.cookie-prefs[hidden] {
  display: none !important;
}

.cookie-pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--mm-800);
}

.cookie-pref-row span {
  display: block;
  color: var(--mm-600);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.cookie-pref-row input {
  margin-top: 0.2rem;
  accent-color: var(--mm-700);
}

@media (min-width: 768px) {
  .cookie-banner {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    margin-inline: 0;
  }
}
