/* MittiMagic OS public site. Shared styles for the home page and feature pages. */
:root {
  /* Mitti palette: soil brown for actions and anchors, leaf green for growth and positive states */
  --ink: #2b2118;
  --muted: #6f6357;
  --line: #e9e0d4;
  --surface: #faf6f0;
  --wash: #f4ece1;
  --soil: #7a4a24;
  --soil-strong: #4f2f17;
  --soil-soft: #f3e5d5;
  --green: #4b7a2b;
  --green-strong: #375d1e;
  --green-soft: #e9f0dd;
  --gold: #d8932a;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1160px;
  --head-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px -32px rgba(60, 36, 16, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--soil); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head-font); letter-spacing: -0.025em; margin: 0; font-weight: 700; }
/* Headings mix weights: regular words with bold key phrases */
h1, h2 { font-weight: 500; }
h1 strong, h2 strong, h1 .accent, h2 .accent { font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo-klabs { height: 38px; width: auto; border-radius: 4px; }
.brand-logo-mittimagic { height: 56px; width: auto; }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { border-color: #d8c9b6; }
.btn-primary { background: var(--soil); border-color: var(--soil); color: var(--white); }
.btn-primary:hover { background: var(--soil-strong); border-color: var(--soil-strong); color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Shared type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--soil); background: var(--soil-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.accent { color: var(--green); }
.lede { color: var(--muted); font-size: 18px; max-width: 62ch; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 8px; }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--surface); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head h2, .section-heading h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading p { color: var(--muted); font-size: 18px; margin-top: 16px; }
@media (max-width: 860px) { .section { padding: 72px 0; } .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* Devices: laptop with the web dashboard, phone with the Android app */
.devices { position: relative; padding-left: 14%; }
.laptop-screen {
  background: #1b201d; border: 10px solid #1b201d; border-bottom-width: 14px;
  border-radius: 16px 16px 4px 4px; overflow: hidden; box-shadow: var(--shadow);
}
.browser-bar { display: flex; align-items: center; gap: 6px; background: #f4efe8; padding: 8px 12px; font-size: 12px; color: var(--muted); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ddd3c6; }
.browser-bar span { margin-left: 10px; background: var(--white); border-radius: 6px; padding: 2px 12px; flex: 1; max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.laptop-base { height: 15px; margin: 0 -6%; background: linear-gradient(#cfd4d0, #a9b0ab); border-radius: 0 0 16px 16px; position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 5px; transform: translateX(-50%); background: #99a19c; border-radius: 0 0 6px 6px; }
.phone {
  background: #141816; border-radius: 30px; padding: 8px;
  box-shadow: 0 30px 60px -24px rgba(45, 28, 12, 0.5);
}
.phone img { width: 100%; aspect-ratio: 480 / 955; object-fit: cover; object-position: top; border-radius: 22px; background: var(--white); }
.devices .phone { position: absolute; left: 0; bottom: -32px; width: 23%; }
.frames { position: relative; }
.frames > img { transition: opacity 0.7s ease; }
.frames > img + img { position: absolute; inset: 0; width: 100%; height: 100%; }
.frames > img:not(.is-active) { opacity: 0; }
.phone .frames > img + img { inset: 0; height: 100%; }
@media (max-width: 640px) {
  .devices { padding-left: 20%; }
  .devices .phone { width: 34%; bottom: -22px; border-radius: 20px; padding: 5px; }
  .phone img { border-radius: 15px; }
  .laptop-screen { border-width: 6px 6px 9px; }
  .browser-bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .frames > img { transition: none; } }

/* Feature page hero */
.page-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 32px 0 96px; }
.page-hero h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 20px; }
.page-hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 52px; padding-left: 14%; }
.hero-visual-note div { font-size: 14px; font-weight: 600; color: var(--green-strong); background: var(--green-soft); border-radius: 999px; padding: 6px 14px; }
.hero-phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 0 6%; }
.hero-phones .phone { width: 46%; }
.hero-phones .phone:first-child { transform: translate(12%, -8%) rotate(-3deg); z-index: 1; opacity: 0.96; }
.hero-phones .phone:last-child { transform: translate(-6%, 0); z-index: 2; }
.hero-phones + .hero-visual-note { padding-left: 0; justify-content: center; margin-top: 28px; }
@media (max-width: 960px) {
  .page-hero { grid-template-columns: 1fr; gap: 48px; padding-bottom: 80px; }
}

/* Why is this needed */
.need-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: stretch; }
.need-story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.need-story h3 { font-size: 26px; line-height: 1.2; margin-bottom: 16px; }
.need-story p { color: var(--muted); }
.need-list { display: grid; gap: 14px; }
.need-stat { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.need-stat > i { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--soil-soft); color: var(--soil); font-size: 19px; }
.need-stat strong { display: block; font-family: var(--head-font); font-size: 18px; margin-bottom: 2px; }
.need-stat p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .need-grid { grid-template-columns: 1fr; } }

/* Figures inside sections */
.section-figure { margin: 48px 0 0; }
.section-figure .frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.section-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.browser-figure .laptop-screen { border-width: 8px; border-radius: 14px; }

/* Comparison */
.compare-panel { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 48px; align-items: start; }
.compare-intro h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 16px; }
.compare-intro p { color: var(--muted); font-size: 17px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comparison-column { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: var(--white); }
.comparison-column h3 { font-size: 19px; margin-bottom: 18px; }
.comparison-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.comparison-column li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.comparison-column li i { flex: none; margin-top: 2px; color: #b3a597; }
.comparison-column.is-grounded { background: var(--green-strong); border-color: var(--green-strong); color: var(--white); }
.comparison-column.is-grounded li { color: rgba(255, 255, 255, 0.88); }
.comparison-column.is-grounded li i { color: #c9e3a8; }
@media (max-width: 960px) { .compare-panel { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) { .comparison-grid { grid-template-columns: 1fr; } }

/* Steps */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.pipeline-step { padding: 30px 26px; border-left: 1px solid var(--line); position: relative; }
.pipeline-step:first-child { border-left: 0; }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soil); color: var(--white); font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.pipeline-step h3, .pipeline-step h4 { font-size: 19px; margin-bottom: 8px; }
.pipeline-step p { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline-step:nth-child(3) { border-left: 0; }
  .pipeline-step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step { border-left: 0; }
  .pipeline-step + .pipeline-step { border-top: 1px solid var(--line); }
}

/* Capability grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature-card { background: var(--white); padding: 32px 30px; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 20px; margin-bottom: 20px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* Boundaries */
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.boundary-card { border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--line); }
.boundary-card h3 { font-size: 22px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.boundary-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.boundary-card p { color: var(--muted); }
.boundary-card.ai { background: var(--green-soft); border-color: #d6e3c4; }
.boundary-card.ai h3 { color: var(--green); }
.boundary-card.human { background: var(--soil-soft); border-color: #e6d2bb; }
.boundary-card.human h3 { color: var(--soil); }
@media (max-width: 760px) { .boundary-grid { grid-template-columns: 1fr; } }

/* Screen showcase (training page) */
.screen-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.screen-card { display: grid; grid-template-columns: 1fr 0.8fr; gap: 24px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 32px 0; overflow: hidden; }
.screen-card-copy { align-self: center; padding-bottom: 32px; }
.screen-card-copy h3 { font-size: 21px; margin-bottom: 10px; }
.screen-card-copy p { color: var(--muted); font-size: 16px; }
.screen-card-media .phone { border-radius: 28px 28px 0 0; padding-bottom: 0; margin-bottom: -40px; }
.screen-card-media .phone img { border-radius: 20px 20px 0 0; aspect-ratio: 420 / 760; }
@media (max-width: 960px) { .screen-showcase { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .screen-card { grid-template-columns: 1fr; } .screen-card-media { max-width: 220px; margin: 0 auto; } }

/* Closing call to action */
.closing { text-align: center; }
.closing h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; max-width: 22ch; margin: 0 auto 18px; }
.closing p { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 auto 30px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 64px 0 0; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 16px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand span { display: grid; line-height: 1.3; }
.footer-brand strong { font-family: var(--head-font); font-size: 19px; color: var(--ink); }
.footer-brand small { font-size: 13px; color: var(--muted); }
.footer-positioning { max-width: 42ch; line-height: 1.65; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; }
.footer-social a:hover { color: var(--soil); border-color: #d8c9b6; }
.footer-col { display: grid; align-content: start; gap: 10px; font-style: normal; }
.footer-col h4 { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--soil); }
.footer-contact strong { color: var(--ink); }
.footer-contact a { color: var(--soil); font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 22px 0 28px; font-size: 14px; }
.footer-bottom a { color: var(--soil); font-weight: 700; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Header: powered-by label next to the logos */
.powered-by { display: grid; line-height: 1.2; padding-left: 12px; border-left: 1px solid var(--line); font-family: var(--head-font); font-weight: 700; font-size: 16px; color: var(--ink); }
.powered-by small { font-family: var(--body-font); font-weight: 600; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .powered-by { display: none; } }

@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 560px) {
  .nav { height: 64px; gap: 12px; }
  .brand-logo-klabs { height: 30px; }
  .brand-logo-mittimagic { height: 44px; }
  .brand-divider { height: 24px; }
  .nav-actions .btn-primary { display: none; }
}

/* ---------- Interactions (static/js/site.js) ---------- */

/* Journey rail (wide screens) and progress bar (narrow screens) */
.journey-rail { position: fixed; z-index: 40; top: 50%; transform: translateY(-50%); height: min(56vh, 460px);
  left: max(18px, calc((100vw - 1160px) / 4)); width: 14px; }
.jr-track { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.jr-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--soil) 0%, #8a6a2c 45%, var(--green) 100%); transform-origin: top; transform: scaleY(0); transition: transform 0.25s ease-out; }
.jr-nodes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.jr-nodes button { position: absolute; left: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; }
.jr-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid #d9cdbf; transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease; flex: none; }
.jr-nodes button.is-done .jr-dot { border-color: var(--soil); background: var(--soil-soft); }
.jr-nodes button.is-active .jr-dot { border-color: var(--green); background: var(--green); transform: scale(1.15); box-shadow: 0 0 0 4px var(--green-soft); }
.jr-label { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 253, 249, 0.96); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; }
.jr-nodes button.is-active .jr-label { color: var(--ink); }
.journey-rail:hover .jr-label, .jr-nodes button:focus-visible .jr-label { opacity: 1; transform: none; }
@media (min-width: 1560px) { .jr-nodes button.is-active .jr-label { opacity: 1; transform: none; } }
.journey-bar { position: fixed; left: 0; right: 0; height: 3px; z-index: 49; pointer-events: none; display: none; }
.journey-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--soil), var(--green)); transform-origin: left; transform: scaleX(0); }
@media (max-width: 1299px) { .journey-rail { display: none; } .journey-bar { display: block; } }

/* Leaf burst on primary buttons */
.burst-leaf { position: fixed; z-index: 100; width: 12px; height: 12px; border-radius: 0 80% 0 80%; pointer-events: none; }

/* Sections rise into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.3,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.fcard.reveal.is-in { transition: opacity 0.6s ease, transform 0.25s ease-out, border-color 0.2s ease, box-shadow 0.2s ease; transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }


/* ---------- Polish round ---------- */

/* Small label above section headings */
.kicker { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soil); margin-bottom: 14px; }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 2px; background: currentColor; vertical-align: middle; margin: -3px 10px 0 0; border-radius: 2px; }

/* Accent underline on cards: a short soil-to-leaf line that grows on hover */
.feature-card { position: relative; }
.feature-card::after { content: ""; position: absolute; left: 30px; bottom: 0; height: 3px; width: 44px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--soil), var(--green)); transition: width 0.35s ease; }
.feature-card:hover::after { width: calc(100% - 60px); }

/* Hotspots on product screenshots */
.hotspot-wrap { position: relative; }
.hotspot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--white); background: var(--soil); color: var(--white); font-size: 18px; font-weight: 700; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(60,36,16,0.6); padding: 0; transition: transform 0.2s ease, background 0.2s ease; z-index: 2; }
.hotspot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--soil); opacity: 0; animation: hs-ping 2.4s ease-out infinite; }
.hotspot:hover, .hotspot[aria-expanded="true"] { transform: scale(1.12); background: var(--green); }
.hotspot[aria-expanded="true"]::before { animation: none; }
@keyframes hs-ping { 0% { opacity: 0.7; transform: scale(0.8); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
.hotspot-tip { position: absolute; z-index: 3; width: min(260px, 70vw); background: var(--ink); color: #fbf6ef; font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; box-shadow: 0 16px 34px -14px rgba(30,18,8,0.6); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.hotspot-tip strong { display: block; font-size: 13px; color: #e8c58f; margin-bottom: 2px; letter-spacing: 0.02em; }
.hotspot-tip.is-open { opacity: 1; transform: none; pointer-events: auto; }
.hotspot-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--soil); margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .hotspot::before { animation: none; } }

/* Legal pages */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 24px 0 96px; align-items: start; }
.legal-toc { position: sticky; top: 100px; font-size: 14px; }
.legal-toc p { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soil); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--soil); }
.legal-body { max-width: 760px; }
.legal-body h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; margin-bottom: 12px; }
.legal-body .meta { color: var(--muted); font-size: 15px; }
.legal-body h2 { font-size: 22px; font-weight: 800; margin: 44px 0 12px; scroll-margin-top: 96px; }
.legal-body p, .legal-body li { color: #4a3f35; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--soil); font-weight: 600; }
.legal-body address { font-style: normal; line-height: 1.8; }
.legal-notice { border-left: 3px solid var(--soil); background: var(--soil-soft); padding: 18px 20px; border-radius: 4px 14px 14px 4px; margin: 28px 0 8px; color: var(--ink); }
.legal-request { border: 1px solid #e6d2bb; background: var(--surface); border-radius: 18px; padding: 26px; }
.legal-request .btn { margin-top: 8px; }
.legal-request .btn-primary { color: var(--white); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 24px; } .legal-toc { position: static; } .legal-toc ol { columns: 2; } }
@media (max-width: 520px) { .legal-toc ol { columns: 1; } }

.journey-rail[hidden], .journey-bar[hidden] { display: none !important; }
