/* ============================================================
   Tochi — site styles
   Generated pages share this sheet. Edit here, not in HTML.
   Palette and type follow the app: TochiColors + Cabin/Inter.
   ============================================================ */

:root {
  --paper:        #FBF5E9;
  --paper-deep:   #F4E9D6;
  --paper-warm:   #FDF8EF;
  --card:         #FFFDF7;

  --ink:          #43301F;
  --ink-soft:     #6E5B45;
  --ink-faint:    #9A886E;
  --line:         rgba(67, 48, 31, .14);
  --line-strong:  rgba(67, 48, 31, .26);

  --sage:         #8FBF9F;
  --sage-deep:    #55906B;
  --rose:         #E8A3B4;
  --rose-deep:    #C36B85;
  --sky:          #A9CDE8;
  --sky-deep:     #4E86AE;
  --gold:         #E4B15C;
  --gold-deep:    #AE7C2F;
  --lavender:     #B8A8D4;
  --lavender-deep:#7C6AA0;

  --radius-sm: 14px;
  --radius:    22px;
  --radius-lg: 34px;

  --shadow-sm: 0 2px 10px -4px rgba(67, 48, 31, .20);
  --shadow:    0 14px 34px -18px rgba(67, 48, 31, .38);
  --shadow-lg: 0 30px 70px -34px rgba(67, 48, 31, .48);

  --display: "Cabin", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gutter: 24px;
  --measure: 1140px;
  --nav-h: 72px;
}

/* Korean wraps on spaces, so the default breaks words mid-syllable-block.
   keep-all restores word-level wrapping. Japanese has no spaces at all, so
   only the highlighted part of the H1 is pinned together. */
html[lang^="ko"] :where(h1, h2, h3, h4, p, li, summary, strong, .label, .tone span) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
html[lang^="ja"] :where(h1, h2, h3) { line-break: strict; }
html[lang^="ja"] h1 em { white-space: nowrap; }
html[lang^="zh"] :where(h1, h2, h3) { line-break: strict; }
html[lang^="zh"] h1 em { white-space: nowrap; }

/* CJK faces are appended per locale by the generator. */
html[lang^="ja"] { --display: "Cabin", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
                   --body:    "Inter", "Noto Sans JP", "Hiragino Sans", sans-serif; }
html[lang^="ko"] { --display: "Cabin", "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
                   --body:    "Inter", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; }
html[lang^="zh"] { --display: "Cabin", "Noto Sans TC", "PingFang TC", sans-serif;
                   --body:    "Inter", "Noto Sans TC", "PingFang TC", sans-serif; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  /* Paper tooth: two offset dot grids, the same trick the app uses behind cards. */
  background-image:
    radial-gradient(rgba(67, 48, 31, .035) 1px, transparent 1.6px),
    radial-gradient(rgba(67, 48, 31, .022) 1px, transparent 1.6px);
  background-size: 26px 26px, 41px 41px;
  background-position: 0 0, 13px 13px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 6.2vw, 4.05rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.38rem); }
p  { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(251, 245, 233, .88);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -22px rgba(67,48,31,.9); }
.nav .wrap { display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.22rem; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .93rem; font-weight: 500;
  color: var(--ink-soft); transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--paper-deep); color: var(--ink); }
/* The CTA is a button first: it must win over the plain nav-link colours. */
.nav-links a.btn { color: var(--paper); background: var(--ink); }
.nav-links a.btn:hover { color: var(--paper); background: var(--ink); }

/* ---------- language switcher: lantern chips, not a select ---------- */
.lang { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.lang-toggle:hover { border-color: var(--line-strong); color: var(--ink); }
.lang-toggle .flame {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 177, 92, .26), 0 0 12px 2px rgba(228, 177, 92, .55);
  animation: flicker 3.4s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1;   transform: scale(1); }
  45%      { opacity: .72; transform: scale(.88); }
  70%      { opacity: .95; transform: scale(1.05); }
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 190px; padding: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; align-items: baseline; gap: 9px;
  padding: 9px 12px; border-radius: 12px; font-size: .94rem;
}
.lang-menu a:hover { background: var(--paper-deep); }
.lang-menu a[aria-current="true"] { background: var(--paper-deep); font-weight: 700; }
.lang-menu .native { font-weight: 600; }
.lang-menu .endonym { font-size: .8rem; color: var(--ink-faint); }

.menu-toggle { display: none; padding: 8px; border-radius: 12px; }
.menu-toggle:hover { background: var(--paper-deep); }

@media (max-width: 900px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 12px var(--gutter) 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .lang { order: -1; }
  .lang-menu { position: static; box-shadow: none; border: 0; padding: 0; background: none; }
  .lang-toggle { width: 100%; justify-content: flex-start; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--paper-warm); }
.btn.small { padding: 10px 19px; font-size: .92rem; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 12px 22px; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: block; font-size: .68rem; opacity: .72; letter-spacing: .07em; text-transform: uppercase; line-height: 1.3; }
.store-btn strong { display: block; font-family: var(--display); font-size: 1.06rem; font-weight: 700; line-height: 1.2; }

/* ============================================================
   Shared bits
   ============================================================ */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700;
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }

.lede { font-size: clamp(1.06rem, 1.8vw, 1.22rem); color: var(--ink-soft); max-width: 62ch; }

section { padding: clamp(68px, 10vw, 118px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 + .lede { margin-top: 18px; }
h2 + .lede, h1 + .lede { margin-top: 18px; }

.band { background: var(--paper-deep); }
.band-sage { background: linear-gradient(180deg, rgba(143,191,159,.20), rgba(143,191,159,.07)); }
.band-sky  { background: linear-gradient(180deg, rgba(169,205,232,.30), rgba(228,177,92,.08)); }

/* ---------- ornament divider: real chapter art, not a <hr> ---------- */
.ornament {
  display: block; width: min(330px, 62vw); margin: 0 auto;
  opacity: .72;
}
.ornament-rule { padding: clamp(26px, 4vw, 44px) 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(28px, 5vw, 62px); align-items: center;
}
.hero h1 em { font-style: normal; color: var(--sage-deep); }
.hero .lede { margin-top: 22px; font-size: clamp(1.1rem, 1.9vw, 1.28rem); }
.hero .store-row { margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--ink-faint); }

.hero-art { position: relative; }
.hero-art .mascot {
  position: relative; z-index: 2;
  width: min(100%, 470px); margin-inline: auto;
  filter: drop-shadow(0 26px 34px rgba(67, 48, 31, .17));
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* Lantern glow behind the mascot. */
.hero-art::after {
  content: ""; position: absolute; z-index: 1;
  left: 50%; top: 42%; translate: -50% -50%;
  width: min(74%, 400px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,177,92,.40), rgba(228,177,92,0) 68%);
  filter: blur(6px);
}

/* Mood orbs drifting around the hero. */
.orbit { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.float-orb {
  position: absolute; border-radius: 50%;
  opacity: .84;
  animation: drift var(--dur, 13s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33%      { transform: translate3d(11px, -18px, 0) scale(1.07); }
  66%      { transform: translate3d(-9px, 11px, 0) scale(.95); }
}

/* ============================================================
   Mood orbs section
   ============================================================ */
.orb-stage {
  position: relative; height: 320px;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 95% at 50% 8%, var(--card), var(--paper-deep));
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 20px -10px rgba(67,48,31,.24);
  overflow: hidden;
  margin-bottom: 44px;
}
.orb-stage .orb {
  position: absolute; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: .8rem; font-weight: 700;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 5px rgba(67,48,31,.4);
  animation: drift var(--dur, 15s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ocard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.ocard .n {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper-deep); color: var(--ink-soft);
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  margin-bottom: 15px;
}
.ocard h3 { margin-bottom: 9px; }
.ocard p { font-size: .96rem; color: var(--ink-soft); }

/* ============================================================
   Meet Tochi
   ============================================================ */
.meet-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
.meet-art { position: relative; }
.meet-art img { width: min(100%, 420px); margin-inline: auto; filter: drop-shadow(0 22px 30px rgba(67,48,31,.16)); }
.meet-points { margin-top: 30px; display: grid; gap: 18px; }
.meet-points li { display: flex; gap: 14px; align-items: flex-start; }
.chip {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--paper-deep); color: var(--ink-soft);
}
.chip svg { width: 20px; height: 20px; }
.chip.sage { background: rgba(143,191,159,.30); color: var(--sage-deep); }
.chip.rose { background: rgba(232,163,180,.28); color: var(--rose-deep); }
.chip.sky  { background: rgba(169,205,232,.32); color: var(--sky-deep); }
.chip.gold { background: rgba(228,177,92,.30);  color: var(--gold-deep); }
.chip.lav  { background: rgba(184,168,212,.32); color: var(--lavender-deep); }
.meet-points strong { display: block; font-family: var(--display); font-size: 1.04rem; }
.meet-points p { font-size: .95rem; color: var(--ink-soft); }

.quote {
  margin-top: 34px; padding: 22px 26px;
  border-left: 3px solid var(--gold);
  background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.04rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Life Chapters — shelf + stage
   ============================================================ */
.chapter-stage {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 56px); align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.stage-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.stage-art .portrait {
  width: min(100%, 400px);
  filter: drop-shadow(0 28px 36px rgba(67,48,31,.22));
  animation: popin .6s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes popin { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
.stage-art .tochi-cut {
  position: absolute; right: -6px; bottom: -10px; width: 116px;
  filter: drop-shadow(0 12px 18px rgba(67,48,31,.24));
}
.stage-copy .chapter-index {
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.stage-copy h3 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); margin: 8px 0 16px; }
.stage-copy p { color: var(--ink-soft); }
.stage-copy .tone {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px;
}
.tone span {
  padding: 5px 13px; border-radius: 999px;
  background: var(--paper-deep); border: 1px solid var(--line);
  font-size: .81rem; color: var(--ink-soft);
}
.stage-copy .ornament { margin: 22px 0 0; width: min(280px, 100%); }

.shelf {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.shelf button {
  display: grid; gap: 7px; justify-items: center;
  padding: 13px 8px 11px; border-radius: 18px;
  border: 1px solid transparent; background: transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.shelf button:hover { background: var(--card); transform: translateY(-2px); }
.shelf button[aria-selected="true"] { background: var(--card); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.shelf img { width: 66px; height: 66px; object-fit: contain; }
.shelf .label {
  font-family: var(--display); font-size: .79rem; font-weight: 600;
  color: var(--ink-soft); text-align: center; line-height: 1.32;
}
.shelf button[aria-selected="true"] .label { color: var(--ink); }

/* ============================================================
   Feature cards
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat .chip { margin-bottom: 17px; }
.feat h3 { margin-bottom: 10px; }
.feat p { font-size: .96rem; color: var(--ink-soft); }

/* ---------- alternating feature spreads ---------- */
.spread {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 66px); align-items: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.spread:last-child { margin-bottom: 0; }
.spread.flip .spread-art { order: 2; }
.spread-art { display: grid; place-items: center; }
.spread-art img { width: min(100%, 400px); filter: drop-shadow(0 24px 32px rgba(67,48,31,.18)); }
.spread-art .scene {
  padding: clamp(20px, 3vw, 38px);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 100% at 50% 0%, var(--card), var(--paper-deep));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}
.spread-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.spread-copy .lede { margin-top: 16px; font-size: 1.04rem; }
.spread-copy ul { margin-top: 22px; display: grid; gap: 13px; }
.spread-copy li { display: flex; gap: 12px; font-size: .97rem; color: var(--ink-soft); }
.spread-copy li svg { flex: none; width: 19px; height: 19px; margin-top: 4px; color: var(--sage-deep); }

/* ============================================================
   Trust / privacy strip
   ============================================================ */
.trust {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 52px);
  box-shadow: var(--shadow);
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 32px; }
.trust-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.trust-grid p { font-size: .93rem; color: var(--ink-soft); }
.trust .foot-note { margin-top: 30px; font-size: .9rem; color: var(--ink-faint); }
.trust .foot-note a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 12px; max-width: 800px; margin-inline: auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 24px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 19px 0; font-family: var(--display); font-weight: 700; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  rotate: 45deg; translate: 0 -3px;
  transition: rotate .25s ease;
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.faq p { padding: 0 0 20px; color: var(--ink-soft); font-size: .97rem; }

/* ============================================================
   Final CTA
   ============================================================ */
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--card), var(--paper-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 76px) clamp(26px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta-card .lede { margin-top: 16px; }
.cta-card .store-row { margin-top: 28px; }
.cta-card .cta-art img { width: min(100%, 300px); margin-inline: auto; filter: drop-shadow(0 20px 28px rgba(67,48,31,.2)); }

/* ============================================================
   Footer
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: 56px 0 44px; background: var(--paper-deep); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand p { margin-top: 14px; font-size: .93rem; color: var(--ink-soft); max-width: 34ch; }
footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
footer nav { display: grid; gap: 9px; }
footer nav a { font-size: .94rem; color: var(--ink-soft); }
footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom {
  margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .86rem; color: var(--ink-faint);
}
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-langs a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); }
.foot-langs a[aria-current="true"] { background: var(--card); color: var(--ink); font-weight: 600; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-hero { padding: clamp(46px, 6vw, 80px) 0 clamp(26px, 3vw, 40px); }
.legal-hero .updated { margin-top: 14px; font-size: .9rem; color: var(--ink-faint); }
.legal-hero .summary {
  margin-top: 28px; padding: 24px 28px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.legal-hero .summary h2 { font-size: 1.16rem; margin-bottom: 12px; }
.legal-hero .summary ul { display: grid; gap: 9px; }
.legal-hero .summary li { display: flex; gap: 11px; font-size: .96rem; color: var(--ink-soft); }
.legal-hero .summary li::before { content: "◆"; color: var(--sage-deep); font-size: .7rem; line-height: 1.9; }

.legal-body { padding: clamp(18px, 3vw, 34px) 0 clamp(60px, 8vw, 100px); }
.legal-layout { display: grid; grid-template-columns: 236px 1fr; gap: clamp(28px, 4vw, 54px); align-items: start; }

.toc { position: sticky; top: calc(var(--nav-h) + 20px); }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 13px; }
.toc nav { display: grid; gap: 3px; }
.toc a {
  padding: 7px 12px; border-radius: 10px; font-size: .88rem;
  color: var(--ink-soft); line-height: 1.45;
}
.toc a:hover { background: var(--paper-deep); color: var(--ink); }

.legal-article > section { padding: 0; margin-bottom: 42px; scroll-margin-top: calc(var(--nav-h) + 22px); }
.legal-article h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.62rem);
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.legal-article h3 { font-size: 1.06rem; margin: 26px 0 10px; }
.legal-article p { margin-bottom: 15px; color: var(--ink-soft); font-size: 1rem; }
.legal-article ul { display: grid; gap: 10px; margin: 0 0 17px; }
.legal-article li { display: flex; gap: 12px; color: var(--ink-soft); font-size: 1rem; }
.legal-article li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 10px; }
.legal-article a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-article strong { color: var(--ink); font-weight: 650; }

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-family: var(--display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.legal-table td { color: var(--ink-soft); }
.legal-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 18px; }

.callout {
  padding: 20px 24px; margin: 0 0 20px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p:last-child { margin-bottom: 0; }

.legal-contact {
  margin-top: 46px; padding: 28px 30px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.legal-contact h2 { border: 0; padding: 0; margin-bottom: 12px; }
.legal-contact address { font-style: normal; color: var(--ink-soft); line-height: 1.85; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid, .meet-grid, .chapter-stage, .cta-card, .spread { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .spread.flip .spread-art { order: 0; }
  .grid-3, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .trio, .grid-3, .grid-2, .trust-grid, .foot-grid { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .orb-stage { height: 270px; }
  .stage-art .tochi-cut { width: 84px; right: 0; }
  .toc nav { grid-template-columns: 1fr; }
  .store-row { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
}

@media print {
  .nav, footer, .toc, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-article a { color: inherit; text-decoration: none; }
}
