/* Landing Zoalya v2.
   Direction artistique reprise de l'app (livrables/applications/zoalya/frontend),
   version v2 : fond crème #fcf7ef, cartes sable, accent sauge unique,
   Fredoka + Figtree, boutons pilule, ombres douces.
   Les maquettes source sont dans ./design/ (Main.dc.html, Mobile.dc.html). */

:root {
  --bg: #fcf7ef;
  --surface: #ebddc5;
  --paper: #fffdf9;
  --text: #201e1d;
  --divider: rgba(32, 30, 29, 0.16);

  --n100: #f9f4ed;
  --n200: #eee7db;
  --n300: #dcd3c4;
  --n400: #c0b6a5;
  --n500: #a19786;
  --n600: #82796a;
  --n700: #645c50;
  --n800: #474238;
  --n900: #2e2b25;

  --sage: #7a8a5e;
  --s100: #f0fae1;
  --s200: #e1eecc;
  --s300: #ccdbb2;
  --s400: #aebf92;
  --s500: #8fa073;
  --s600: #728157;
  --s700: #56633f;
  --s800: #3d472b;
  --s900: #272e1b;

  --accent: #56633f;
  --danger: #a3423a;

  --sh-sm: 0 1px 2px rgba(46, 43, 37, 0.14);
  --sh-md: 0 3px 10px rgba(46, 43, 37, 0.16);
  --sh-lg: 0 16px 40px rgba(46, 43, 37, 0.20);

  --font-h: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-b: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--s800);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
}

.wrap-narrow {
  max-width: 780px;
}

.section {
  padding: clamp(64px, 8vw, 88px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 84px;
}

.section > .wrap {
  position: relative;
  z-index: 1;
}

.section-band {
  background: var(--surface);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(25px, 3.4vw, 34px);
  text-wrap: pretty;
}

.section-head p {
  color: var(--n700);
  font-size: 17px;
}

.section-head-center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--s600);
}

/* ---------- Formes décoratives ----------
   Même patte graphique que les cercles du hero : aplats sauge, contours nets,
   cercles parfaits ou galets organiques, posés en partie hors cadre. */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.deco-c { border-radius: 50%; }
.deco-p { border-radius: 58% 42% 55% 45% / 55% 48% 52% 45%; }

.deco-problem-1 { width: 210px; height: 210px; background: var(--s200); top: -72px; right: -72px; }
.deco-problem-2 { width: 60px; height: 60px; background: var(--s300); top: 52px; right: 92px; }

.deco-solution-1 { width: 190px; height: 190px; background: var(--s100); bottom: -78px; left: -66px; }
.deco-solution-2 { width: 52px; height: 52px; background: var(--s300); bottom: 52px; left: 128px; }

.deco-comment-1 { width: 150px; height: 150px; background: var(--s100); top: -54px; right: -44px; }
.deco-comment-2 { width: 56px; height: 56px; background: var(--s300); top: 38px; right: 116px; }

.deco-pricing-1 { width: 230px; height: 230px; background: var(--s100); bottom: -98px; left: 50%; margin-left: -115px; }
.deco-pricing-2 { width: 64px; height: 64px; background: var(--s200); top: 14px; right: 8%; }

.deco-cta-1 { width: 200px; height: 200px; background: var(--s700); top: -84px; right: -54px; }
.deco-cta-2 { width: 64px; height: 64px; background: var(--s600); bottom: 40px; left: 12%; }

.deco-footer-1 { width: 170px; height: 170px; background: var(--s100); top: -72px; left: -52px; }
.deco-footer-2 { width: 50px; height: 50px; background: var(--s200); top: 42px; left: 130px; }

@media (max-width: 720px) {
  .deco-problem-2,
  .deco-solution-2,
  .deco-comment-2,
  .deco-pricing-2,
  .deco-cta-2,
  .deco-footer-2 {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--sage);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--s600);
  color: var(--paper);
}

.btn-secondary {
  background: transparent;
  border-color: var(--divider);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--n500);
  color: var(--text);
}

.btn-on-dark {
  background: var(--paper);
  color: var(--s800);
}

.btn-on-dark:hover {
  background: var(--s100);
  color: var(--s900);
}

.btn-lg {
  font-size: 16px;
  padding: 15px 26px;
}

.btn-block {
  width: 100%;
}

/* ---------- Cards / tags ---------- */
.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--sh-sm);
}

.card-paper {
  background: var(--paper);
}

.card h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}

.card p {
  color: var(--n700);
  font-size: 15px;
}

.card-icon {
  flex: 0 0 auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--s100);
  color: var(--s800);
}

.tag-solid {
  background: var(--s700);
  color: var(--paper);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--n700);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 11px 20px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
  border-top: 1px solid var(--divider);
  padding: 20px clamp(20px, 5vw, 32px) 28px;
}

.mobile-menu a:not(.btn) {
  color: var(--text);
  font-size: 16px;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(36px, 5vw, 44px) 0 clamp(56px, 7vw, 80px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
}

.hero-visual {
  position: relative;
  height: 560px;
}

.hero-shape-lg {
  position: absolute;
  left: -28px;
  top: 14px;
  width: 90%;
  height: 90%;
  background: var(--s300);
  border-radius: 58% 42% 55% 45% / 55% 48% 52% 45%;
}

.hero-shape-sm {
  position: absolute;
  right: 2px;
  top: -10px;
  width: 104px;
  height: 104px;
  background: var(--s200);
  border-radius: 50%;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 56% 44% 52% 48% / 52% 46% 54% 48%;
  box-shadow: var(--sh-lg);
}

.hero-stat {
  position: absolute;
  z-index: 2;
  left: -26px;
  bottom: 34px;
  max-width: 238px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--sh-md);
  padding: 11px 14px;
}

.hero-stat-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--s200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stat-title {
  font-size: 12px;
  font-weight: 700;
}

.hero-stat-meta {
  font-size: 11px;
  color: var(--n600);
}

.hero-copy {
  position: relative;
  z-index: 3;
  margin-left: -64px;
  background: var(--bg);
  padding: 26px 0 26px 30px;
  border-radius: 22px;
}

.hero-title {
  font-size: clamp(32px, 4.6vw, 52px);
  margin: 14px 0 16px;
  text-wrap: pretty;
}

.hero-lead {
  font-size: 18px;
  color: var(--n700);
  max-width: 27em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--n600);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

.hero-note svg {
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-visual {
    height: 360px;
  }
  .hero-copy {
    margin-left: 0;
    padding: 0;
  }
  .hero-lead {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    height: 300px;
  }
  .hero-shape-lg {
    left: -14px;
  }
  .hero-stat {
    left: 4px;
    bottom: 12px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Bandeau réassurance ---------- */
.trust-band {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.trust-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--n700);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  flex: 0 0 auto;
}

/* ---------- Formule d'observation ---------- */
.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.formula .tag {
  font-size: 14px;
  padding: 8px 15px;
}

.formula-op {
  color: var(--n500);
  font-family: var(--font-h);
  font-weight: 600;
}

/* ---------- Listes à coche ---------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: var(--n700);
}

.check-list li {
  display: flex;
  gap: 8px;
}

.check-list li svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* ---------- Fonctionnalités ---------- */
.feature-card {
  padding: 20px;
}

.feature-card h3 {
  font-size: 15px;
  margin: 12px 0 6px;
}

.feature-card p {
  font-size: 13.5px;
}

/* ---------- Étapes ---------- */
.steps .step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--paper);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 18px;
}

.step p {
  color: var(--n700);
  font-size: 15px;
}

/* ---------- Notre démarche ---------- */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.approach-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approach-copy h2 {
  font-size: clamp(24px, 3vw, 31px);
}

.approach-copy p {
  color: var(--n700);
  font-size: 16px;
}

.manifest {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.manifest-item {
  display: flex;
  gap: 10px;
  font-size: 15px;
}

.manifest-item svg {
  flex: 0 0 auto;
  margin-top: 3px;
}

@media (max-width: 860px) {
  .approach {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Tarifs ---------- */
.pricing-grid {
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.price-card .kicker,
.price-card .price-badge {
  align-self: center;
}

.price-card-featured {
  border: 2px solid var(--sage);
  box-shadow: var(--sh-md);
}

.price-amount {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 28px;
}

.price-period {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-b);
  color: var(--n600);
}

.price-tagline {
  font-size: 13px;
  color: var(--n600);
}

.price-features {
  text-align: left;
  font-size: 14px;
  flex: 1 1 auto;
}

.price-features li svg {
  margin-top: 3px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--paper);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--sh-sm);
}

.faq-question {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 16px;
}

.faq-question:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.faq-chevron {
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.faq-question[aria-expanded='true'] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--n700);
  display: none;
}

.faq-question[aria-expanded='true'] + .faq-answer {
  display: block;
}

/* ---------- CTA finale ---------- */
.cta-final {
  background: var(--s800);
  color: var(--paper);
  padding: clamp(56px, 8vw, 72px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-final-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cta-final h2 {
  font-size: clamp(26px, 4vw, 32px);
  color: var(--paper);
}

.cta-final p {
  color: var(--s200);
  font-size: 17px;
  max-width: 34em;
}

.cta-final .btn {
  margin-top: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-top: 56px;
  padding-bottom: 34px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 300px;
}

.footer-logo {
  height: 28px;
  width: auto;
  flex: 0 0 auto;
  align-self: flex-start;
}

.footer-brand p {
  font-size: 14px;
  color: var(--n700);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: var(--n700);
  font-weight: 500;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--divider);
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
  color: var(--n600);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Responsive grilles ---------- */
@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    justify-content: flex-start;
  }
}

/* ---------- Animations ----------
   Tout est gaîné dans @media (prefers-reduced-motion: no-preference) : si
   l'utilisateur demande moins de mouvement, l'état masqué n'est même pas posé.
   L'état masqué est appliqué dès le premier rendu (html.anim ajouté en <head>),
   l'IntersectionObserver ajoute .is-visible pour révéler par transition. Si le
   JS ne s'exécute pas, l'état de repos ciblé reste « visible ». */
@media (prefers-reduced-motion: no-preference) {
  /* Flottement lent des formes décoratives et des cercles du hero */
  .deco,
  .hero-shape-lg,
  .hero-shape-sm {
    animation: deco-float 16s ease-in-out infinite alternate;
    will-change: transform;
  }
  .deco-c,
  .hero-shape-sm {
    animation-duration: 21s;
    animation-direction: alternate-reverse;
  }
  .deco-solution-1,
  .deco-footer-1 { animation-delay: -6s; }
  .deco-comment-1,
  .deco-pricing-1 { animation-delay: -11s; }

  @keyframes deco-float {
    from { transform: translate3d(0, 0, 0) rotate(-3deg); }
    to   { transform: translate3d(0, -16px, 0) rotate(4deg); }
  }

  /* Blocs qui glissent et se révèlent en entier */
  html.anim .hero-visual,
  html.anim .section-head,
  html.anim .formula,
  html.anim .approach-copy,
  html.anim .cta-final-inner,
  html.anim .manifest,
  html.anim .trust-band-inner {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  html.anim .hero-visual.is-visible,
  html.anim .section-head.is-visible,
  html.anim .formula.is-visible,
  html.anim .approach-copy.is-visible,
  html.anim .cta-final-inner.is-visible,
  html.anim .manifest.is-visible,
  html.anim .trust-band-inner.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Enfants de grilles : simple fondu en cascade, sans toucher transform
     (le survol des cartes garde ainsi son propre transform). */
  html.anim .hero-copy > *,
  html.anim .grid > *,
  html.anim .faq-list > * {
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  html.anim .hero-copy.is-visible > *,
  html.anim .grid.is-visible > *,
  html.anim .faq-list.is-visible > * {
    opacity: 1;
  }
  html.anim .hero-copy.is-visible > *:nth-child(2),
  html.anim .grid.is-visible > *:nth-child(2),
  html.anim .faq-list.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
  html.anim .hero-copy.is-visible > *:nth-child(3),
  html.anim .grid.is-visible > *:nth-child(3),
  html.anim .faq-list.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
  html.anim .hero-copy.is-visible > *:nth-child(4),
  html.anim .grid.is-visible > *:nth-child(4),
  html.anim .faq-list.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
  html.anim .hero-copy.is-visible > *:nth-child(5),
  html.anim .grid.is-visible > *:nth-child(5),
  html.anim .faq-list.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
  html.anim .grid.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
  html.anim .grid.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
  html.anim .grid.is-visible > *:nth-child(8) { transition-delay: 0.42s; }

  /* Léger soulèvement des cartes au survol. La règle ciblée sur .grid a une
     spécificité supérieure au fondu ci-dessus, donc transform reste animable. */
  .feature-card,
  .price-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  html.anim .grid > .feature-card,
  html.anim .grid > .price-card {
    transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.18s ease, box-shadow 0.18s ease;
  }
  .feature-card:hover,
  .price-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
  }
}

/* ---------- Pages légales ---------- */
.legal-breadcrumb {
  font-size: 13px;
  color: var(--n600);
  margin-bottom: 18px;
}

.legal-breadcrumb a {
  color: var(--n600);
  font-weight: 500;
}

.legal-breadcrumb a:hover {
  color: var(--text);
}

.legal-head {
  margin-bottom: 40px;
}

.legal-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
  text-wrap: pretty;
}

.legal-updated {
  font-size: 14px;
  color: var(--n600);
}

.legal-toc {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 44px;
}

.legal-toc p {
  font-family: var(--font-h);
  font-weight: 600;
  margin-bottom: 10px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.legal-toc a {
  color: var(--n700);
  font-weight: 500;
}

.legal-toc a:hover {
  color: var(--text);
}

.legal-content {
  font-size: 16px;
  color: var(--n800);
}

.legal-content h2 {
  font-size: clamp(20px, 2.6vw, 25px);
  margin: 44px 0 14px;
  scroll-margin-top: 90px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 18px;
  margin: 26px 0 10px;
}

.legal-content p {
  margin-bottom: 14px;
  line-height: 1.65;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: revert;
  display: grid;
  gap: 8px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content strong {
  font-weight: 700;
  color: var(--text);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--divider);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface);
  font-family: var(--font-h);
  font-weight: 600;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-note {
  background: var(--s100);
  border-left: 3px solid var(--sage);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--n800);
}

.legal-todo {
  background: #fdf1d6;
  color: #7a5b12;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
  font-size: 0.92em;
}

