/* ==========================================================================
   dein-entwurf.ch
   Webdesign im Abo. Marke von Manuel & Patrick Webdesign KLG (Manoberg).

   Design system
   -------------
   Accent      : Manoberg red. ONE accent for the whole page, both modes.
   Theme       : follows prefers-color-scheme. One theme per page, never
                 inverted per section.
   Radius rule : cards / images / panels = var(--r-card) 16px
                 buttons / inputs / pills = var(--r-ctrl) 10px
                 No other radii anywhere.
   Motion      : fluid CSS only (hover, active, scroll reveal).
                 Everything collapses under prefers-reduced-motion.
   ========================================================================== */

/* ---------- Font (self-hosted, no external request) ---------------------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist.woff2") format("woff2-variations"),
       url("../fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --bg:          #fafaf9;
  --surface:     #ffffff;
  --surface-2:   #f3f3f1;
  --ink:         #17171a;
  --ink-2:       #45454a;
  --muted:       #6b6b73;
  --line:        #e3e3e0;
  --line-strong: #d2d2ce;

  --accent:      #c42020;
  --accent-ink:  #ffffff;
  --accent-soft: rgba(196, 32, 32, 0.07);
  --accent-line: rgba(196, 32, 32, 0.28);

  --shadow-sm: 0 1px 2px rgba(23, 23, 26, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(23, 23, 26, 0.14);

  --r-card: 16px;
  --r-ctrl: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);


  /* z-index scale. Nothing outside this. */
  --z-nav: 100;
  --z-menu: 110;
}

/* Widescreen: der Inhalt darf mitwachsen, damit auf 1920px und mehr nicht
   zwei Drittel der Fläche leer bleiben. Bei 1440px ist Schluss, darüber
   werden die Zeilenlängen unlesbar. */
@media (min-width: 1700px) { :root { --wrap: 1320px; } }
@media (min-width: 2200px) { :root { --wrap: 1440px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #101012;
    --surface:     #18181b;
    --surface-2:   #1f1f23;
    --ink:         #f3f3f1;
    --ink-2:       #c4c4c8;
    --muted:       #97979e;
    --line:        #2a2a2f;
    --line-strong: #3a3a41;

    --accent:      #e35449;
    --accent-ink:  #17171a;
    --accent-soft: rgba(227, 84, 73, 0.10);
    --accent-line: rgba(227, 84, 73, 0.32);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

/* Outline follows each element's own radius, so the shape system stays intact. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  z-index: var(--z-menu);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r-ctrl) var(--r-ctrl);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout primitives ------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(4rem, 9vw, 7.5rem); }
section + section { border-top: 1px solid var(--line); }

/* ---------- Type -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}

/* Die Obergrenze hängt an der Spaltenbreite: die längere Titelzeile braucht
   rund 10.9em. Wächst --wrap auf Widescreen, darf auch die Schrift wachsen.
   Alle drei Stufen sind am fertigen DOM nachgemessen. */
.h-display {
  font-size: clamp(2.05rem, 3.9vw, 3.1rem);
  letter-spacing: -0.032em;
  line-height: 1.07;
}
@media (min-width: 1700px) { .h-display { font-size: 3.4rem; } }
@media (min-width: 2200px) { .h-display { font-size: 3.75rem; } }
.h-section {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.028em;
}
.h-card { font-size: 1.0625rem; letter-spacing: -0.014em; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.1875rem);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 56ch;
}
.body-sm { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.accent-word { color: var(--accent); }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;              /* CTA never wraps */
  padding: 0.78rem 1.35rem;
  border-radius: var(--r-ctrl);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.12s var(--ease),
              box-shadow 0.22s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);       /* 5.9:1 light / 6.4:1 dark */
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
@media (prefers-color-scheme: dark) {
  .btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* ---------- Navigation (single line desktop, 68px) ---------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .nav { background: var(--bg); } }

.nav__inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.024em;
  text-decoration: none;
  white-space: nowrap;
}
.brand__dot { color: var(--accent); }
.brand__tld { color: var(--muted); font-weight: 400; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  cursor: pointer;
}
.nav__toggle .icon { width: 20px; height: 20px; }
.nav__toggle-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-close { display: block; }

@media (max-width: 899px) {
  .nav__toggle { display: inline-flex; }
  .nav__links,
  .nav > .wrap > .nav__inner > .nav__cta { display: none; }

  .nav__panel {
    display: none;
    border-top: 1px solid var(--line);
    padding-block: 1rem 1.5rem;
  }
  .nav__panel[data-open="true"] { display: block; }
  .nav__panel ul {
    list-style: none; padding: 0;
    display: grid; gap: 0.25rem;
  }
  .nav__panel a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.05rem;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .nav__panel .btn { margin-top: 1.1rem; }
}
@media (min-width: 900px) { .nav__panel { display: none !important; } }

/* ---------- Hero: asymmetric split ------------------------------------- */
.hero {
  padding-top: clamp(3rem, 6vw, 6rem);   /* cap: 6rem desktop */
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  border-top: 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
/* Text column takes the larger share so the headline holds at 2 lines from
   900px up. Verified at 900 / 940 / 1000 / 1100 / 1280 / 1600. */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
}

/* Wächst mit der Titelschrift mit, sonst bleibt die Spalte der Engpass. */
.hero__copy { max-width: 35rem; }
@media (min-width: 1700px) { .hero__copy { max-width: 40rem; } }
@media (min-width: 2200px) { .hero__copy { max-width: 44rem; } }
.hero__title { margin-bottom: 1.15rem; }
.hero__lead { margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.hero__figure {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero__figure img { width: 100%; }

/* ---------- Pricing ---------------------------------------------------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-head .eyebrow { display: block; margin-bottom: 0.85rem; }
.section-head .lead { margin-top: 1rem; }

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 980px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 2.4vw, 2rem);
}
.plan--featured {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 42%),
    var(--surface);
}
@media (min-width: 980px) {
  .plan--featured { padding-block: clamp(2rem, 3vw, 2.6rem); margin-top: -1.1rem; }
}

.plan__badge {
  align-self: flex-start;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-ctrl);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.014em; }
.plan__for { margin-top: 0.3rem; font-size: 0.875rem; color: var(--muted); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 1.4rem;
}
.plan__amount {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.034em;
  line-height: 1;
}
.plan__cur { font-size: 0.9375rem; color: var(--muted); font-weight: 500; }
.plan__per { font-size: 0.9375rem; color: var(--muted); }
.plan__setup { margin-top: 0.55rem; font-size: 0.8125rem; color: var(--muted); }

.plan__cta { margin-top: 1.5rem; }

.plan__list {
  list-style: none;
  padding: 0;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}
.plan__list li {
  display: grid;
  grid-template-columns: 1.05rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.9063rem;
  color: var(--ink-2);
}
.plan__list .icon {
  width: 1.05rem; height: 1.05rem;
  margin-top: 0.28em;
  color: var(--accent);
}

.plans__note {
  margin-top: 1.6rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Bento ------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .bento > :nth-child(1),
  .bento > :nth-child(4),
  .bento > :nth-child(6) { grid-column: span 2; }
}

.tile {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 172px;
}
.tile__icon {
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: var(--r-ctrl);
  background: var(--surface-2);
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.tile__icon .icon { width: 1.15rem; height: 1.15rem; }
.tile p { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; max-width: 46ch; }

/* Visual variation: 3 of 6 cells carry a tint, not plain white-on-white. */
.tile--accent {
  background:
    radial-gradient(120% 130% at 0% 0%, var(--accent-soft), transparent 62%),
    var(--surface);
  border-color: var(--accent-line);
}
.tile--accent .tile__icon { background: var(--accent); color: var(--accent-ink); }

.tile--fill {
  background:
    linear-gradient(150deg, var(--surface-2), var(--surface) 70%);
}
.tile--wide-copy { justify-content: flex-end; }
.tile--wide-copy .h-card { font-size: 1.1875rem; }

/* ---------- Process: sticky heading + list ------------------------------ */
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 940px) {
  .process__grid { grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 6vw, 5rem); }
  .process__head { position: sticky; top: 108px; align-self: start; }
}

.steps { list-style: none; padding: 0; display: grid; }
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding-block: clamp(1.3rem, 2.4vw, 1.8rem);
}
.step + .step { border-top: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step:last-child { padding-bottom: 0; }
.step__label { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.016em; }
.step p { font-size: 0.9375rem; color: var(--muted); max-width: 54ch; }

/* ---------- Showcase --------------------------------------------------- */
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 940px) {
  .showcase__grid { grid-template-columns: 1.15fr 0.85fr; }
}
.showcase__figure {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.showcase__caption { margin-top: 0.8rem; font-size: 0.8125rem; color: var(--muted); }
.showcase__copy .h-section { margin-bottom: 1rem; }
.showcase__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.showcase__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About: text block + portrait row --------------------------- */
.about__head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem); }
.about__head .lead + .lead { margin-top: 1rem; }

.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) { .people { grid-template-columns: repeat(2, 1fr); } }

.person {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
}
.person__photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.person__body { padding: 1.15rem clamp(1.1rem, 2vw, 1.5rem) 1.35rem; }
.person__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.016em; }
.person__role { margin-top: 0.15rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Location: map + info --------------------------------------- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: stretch;
}
@media (min-width: 940px) {
  .location__grid { grid-template-columns: 1.25fr 0.75fr; }
}
.map {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  min-height: 340px;
}
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.location__panel {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-line { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.7rem; }
.contact-line .icon { width: 1.15rem; height: 1.15rem; margin-top: 0.28em; color: var(--accent); }
.contact-line dt { font-size: 0.8125rem; color: var(--muted); }
.contact-line dd { margin: 0.1rem 0 0; font-size: 0.9688rem; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.location__panel dl { display: grid; gap: 1.25rem; margin: 0; }

/* ---------- Contact form ----------------------------------------------- */
.contact__grid { max-width: 54rem; }

.form { display: grid; gap: 1.15rem; margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.field { display: grid; gap: 0.4rem; }
.field__row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .field__row { grid-template-columns: 1fr 1fr; } }

.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field__hint { font-size: 0.8125rem; color: var(--muted); }   /* 5.2:1 light, 6.6:1 dark */

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field__error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  display: none;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea,
.field[data-invalid="true"] select { border-color: var(--accent); }
.field[data-invalid="true"] .field__error { display: block; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.35rem; }
.form__status { font-size: 0.875rem; }
.form__status[data-state="ok"] { color: var(--ink); }
.form__status[data-state="error"] { color: var(--accent); font-weight: 500; }
.btn[aria-busy="true"] { opacity: 0.72; pointer-events: none; }

/* ---------- Footer ----------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.75rem, 5vw, 4rem) 2rem;
  background: var(--surface-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 0.9fr 0.9fr; gap: 2.5rem; }
}
.footer__about { max-width: 34ch; font-size: 0.9063rem; color: var(--muted); margin-top: 0.9rem; }
.footer h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.footer a { font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer__bar {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Legal pages ------------------------------------------------ */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal__inner { max-width: 46rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.legal h2 {
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.014em;
  margin-top: 2.5rem; margin-bottom: 0.6rem;
}
.legal p, .legal li { color: var(--ink-2); font-size: 0.9688rem; line-height: 1.7; }
.legal p + p { margin-top: 0.9rem; }
.legal ul { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal__meta { font-size: 0.875rem; color: var(--muted); }
.legal__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 3rem; font-size: 0.9375rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
}
.legal__back:hover { color: var(--ink); }
.legal__note {
  margin-top: 2.5rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-card);
  background: var(--surface);
  font-size: 0.9063rem; color: var(--ink-2);
}

/* ---------- Scroll reveal ---------------------------------------------- */
/* Only the .js class hides content, so a JS failure never blanks the page. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
