/* Remez site. One world, like the app: a cobalt game table, cream pieces with a
   visible edge, sun = go, coral = no, teal = steal. The page does not follow dark
   mode on purpose; a board game has one box (see apps/remez-app/src/theme).
   Motion verb: "step". Things move in short, settled hops along a path, ease-out,
   never overshooting. */

:root {
  --ground: #2B50E8; --ground-deep: #1B36B8; --ground-soft: #4A6CF5; --shadow: #0B1A6B;
  --cream: #FFF8EA; --cream-2: #F3E8D2; --edge: #D9C9A8;
  --ink: #1B1640; --ink-2: #4B4670;
  --on: #FFFFFF; --on-2: rgba(255, 255, 255, .84);
  --sun: #FFCE2E; --sun-edge: #D99A00;
  --coral: #FF5A3C; --teal: #12B8A6; --teal-edge: #0A8679;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-slab: 24px; --r-btn: 16px;
  --pad: clamp(16px, 4vw, 40px);
  --display: 'Suez One', 'Rubik', serif;
  --body: 'Rubik', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip;
  font: 400 17px/1.55 var(--body); color: var(--on);
  background: var(--ground) radial-gradient(120% 70% at 50% 0%, #4A6CF5 0%, rgba(74, 108, 245, 0) 60%) no-repeat;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
.wrap { width: min(1240px, 100% - var(--pad) * 2); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font: 800 1.35rem/1.2 var(--body); margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--on-2); max-width: 46ch; margin-top: 18px; }
.narrow { max-width: 52ch; }
.i { width: 1.15em; height: 1.15em; flex: none; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 12px; background: var(--sun); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 10px; }

/* Block buttons: a piece standing on the table. Hover lifts it a step, press sinks it. */
.btn {
  --face: var(--sun); --side: var(--sun-edge); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--r-btn);
  font: 800 1.02rem/1 var(--body); color: var(--fg); text-decoration: none; cursor: pointer;
  background: var(--face); box-shadow: 0 5px 0 var(--side), 0 12px 22px rgba(11, 26, 107, .28);
  translate: 0 0; transition: translate .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { translate: 0 -3px; box-shadow: 0 8px 0 var(--side), 0 18px 28px rgba(11, 26, 107, .3); }
.btn:active { translate: 0 4px; box-shadow: 0 1px 0 var(--side), 0 4px 10px rgba(11, 26, 107, .25); transition-duration: .08s; }
.btn-cream { --face: var(--cream); --side: var(--edge); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .95rem; border-radius: 13px; }
.btn-lg { min-height: 60px; padding: 16px 30px; font-size: 1.2rem; border-radius: 18px; }

.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 20px;
  border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 5px 0 #0E0B26; transition: translate .22s var(--ease), box-shadow .22s var(--ease);
}
.store .i { width: 26px; height: 26px; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: .74rem; opacity: .8; }
.store b { font-size: 1.15rem; font-weight: 700; }
a.store:hover { translate: 0 -3px; box-shadow: 0 8px 0 #0E0B26; }
.store.soon { opacity: .9; cursor: default; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 30px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; padding-block: 12px; transition: translate .3s var(--ease), background-color .3s var(--ease); }
.nav.stuck { background: rgba(27, 54, 184, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(11, 26, 107, .3); }
.nav.away { translate: 0 -110%; }
.nav .wrap { display: flex; align-items: center; gap: 24px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.7rem/1 var(--display); }
.lockup img { width: 40px; height: 40px; transition: rotate .3s var(--ease); }
.lockup:hover img { rotate: -8deg; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav-links a { padding: 10px 14px; border-radius: 12px; font-weight: 600; text-decoration: none; color: var(--on-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-links a[aria-current] { color: #fff; background: rgba(255, 255, 255, .16); }
.nav-end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang { font-weight: 700; text-decoration: none; padding: 10px 12px; border-radius: 12px; color: var(--on-2); }
.lang:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* Hero */
.hero { padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 110px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 5.9rem); line-height: 1.02; }
.hero h1 .ln { display: block; }
.hero h1 .ln:last-child { color: var(--sun); }
html[lang=en] .hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }

.stage { position: relative; }
.board { position: relative; direction: ltr; container-type: inline-size; aspect-ratio: 1 / var(--ratio); }
.board-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.board-svg text { font-family: Rubik, sans-serif; }
.piece {
  position: absolute; left: 0; top: 0; width: calc(var(--cell) * 1.02cqw);
  translate: calc(var(--x) * 1cqw - 50%) calc(var(--y) * var(--ratio) * 1cqw - 90%);
  filter: drop-shadow(0 6px 5px rgba(11, 26, 107, .35)); pointer-events: none;
}
.piece img { width: 100%; }
.walker { z-index: 2; width: calc(var(--cell) * 1.25cqw); }

/* The die talks from the board's empty near-left corner, clear of the walker's path
   (tiles 1-16 run along the far edge and down the right side). */
.talk { position: absolute; bottom: -15%; left: -3%; width: min(46%, 340px); z-index: 3; display: grid; justify-items: start; gap: 12px; }
.talk-die { position: absolute; width: 74px; height: 74px; top: -4px; left: -10px; rotate: -8deg; filter: drop-shadow(0 8px 10px rgba(11, 26, 107, .35)); z-index: 1; }
.bubble {
  position: relative; margin-top: 40px; margin-left: 30px; padding: 18px 20px 20px; min-height: 148px; width: calc(100% - 30px);
  background: var(--cream); color: var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--edge), 0 18px 30px rgba(11, 26, 107, .3);
}
.bubble-lvl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 3px 0 var(--e); transition: box-shadow .3s; }
.chip::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--c); transition: background-color .3s; }
.bubble-hint { margin-top: 12px; font: 700 1.28rem/1.3 var(--body); min-height: 2.6em; }
.bubble-word { margin-top: 10px; font: 400 2.2rem/1 var(--display); color: var(--ink); }
.bubble-word b { color: var(--coral); font: 800 .95rem/1 var(--body); margin-inline-start: 8px; vertical-align: middle; }
.bubble .fade { animation: rz-in .45s var(--ease) both; }
.next { margin-left: 30px; }
.toast {
  position: absolute; bottom: 4%; left: 50%; translate: -50% 8px; opacity: 0; z-index: 4;
  padding: 10px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: opacity .3s var(--ease), translate .3s var(--ease); pointer-events: none;
}
.toast.on { opacity: 1; translate: -50% 0; }
@keyframes rz-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* Sections */
.sec { padding-block: clamp(72px, 10vw, 140px); overflow-x: clip; }
.card-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.deck { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.deck-back { position: absolute; inset: 4% -8% auto auto; width: 82%; rotate: 9deg; border-radius: 26px; box-shadow: 0 18px 34px rgba(11, 26, 107, .35); }
[dir=rtl] .deck-back { inset: 4% auto auto -8%; rotate: -9deg; }
.playcard {
  position: relative; list-style: none; margin: 0; padding: 18px; display: grid; gap: 8px; rotate: -2deg;
  background: var(--cream); color: var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--edge), 0 26px 44px rgba(11, 26, 107, .38);
}
[dir=rtl] .playcard { rotate: 2deg; }
.playcard li {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 8px 12px 8px 8px; border-radius: 16px; outline-offset: 2px; transition: translate .25s var(--ease), background-color .25s;
}
.playcard .n { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c); box-shadow: 0 4px 0 var(--e); color: var(--t); font: 800 19px/1 var(--body); }
.playcard b { font: 400 1.4rem/1.15 var(--display); }
.playcard small { color: var(--ink-2); font-size: .82rem; }
.playcard li:hover, .playcard li:focus-visible, .playcard li.on { background: #fff; translate: 0 -2px; }
[dir=rtl] .playcard li { padding: 8px 8px 8px 12px; }

.tiles { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 44px; }
.tile-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-slab); color: var(--ink); display: grid; align-content: start; gap: 12px; }
.tile-card p { color: var(--ink-2); max-width: 42ch; }
.t-power { grid-row: span 2; background: var(--sun); box-shadow: 0 8px 0 var(--sun-edge); }
.t-power p { color: #3D3200; }
.t-all { background: var(--cream); box-shadow: 0 8px 0 var(--edge); }
.t-steal { background: var(--teal); box-shadow: 0 8px 0 var(--teal-edge); }
.t-steal p { color: #072E2A; }
.block { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 8px; transition: translate .3s var(--ease); }
.tile-card:hover .block { translate: 0 -6px; }
.block .g { width: 40px; height: 40px; }
.b-sun { background: var(--ink); color: var(--sun); box-shadow: 0 6px 0 #0E0B26; }
.b-cream { background: #fff; box-shadow: 0 6px 0 var(--edge); grid-auto-flow: column; gap: 6px; place-content: center; }
.b-cream i { width: 15px; height: 15px; border-radius: 50%; background: var(--c); }
.b-teal { background: var(--ink); color: var(--teal); box-shadow: 0 6px 0 #0E0B26; }
.powers { list-style: none; padding: 0; margin: auto 0 0; display: flex; gap: 12px; padding-top: 16px; }
.powers li { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--sun); box-shadow: 0 5px 0 #0E0B26; }
.powers .i { width: 32px; height: 32px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 100px); margin-top: 52px; max-width: 980px; }
.mode { margin: 0; display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 24px; align-items: end; }
.mode:nth-child(2) { margin-top: 90px; }
.phone { padding: 8px; background: var(--ink); border-radius: 38px; box-shadow: 0 6px 0 #0E0B26, 0 26px 40px rgba(11, 26, 107, .4); }
.phone img { border-radius: 30px; aspect-ratio: 393 / 852; object-fit: cover; }
.mode figcaption { display: grid; gap: 10px; padding-bottom: 10px; }
.mode figcaption p { color: var(--on-2); }
.mode-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); color: var(--ground); box-shadow: 0 5px 0 var(--edge); }
.mode-ico .i { width: 28px; height: 28px; }

.shelf { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-items: end; position: relative; }
.shelf::after { content: ''; position: absolute; inset: auto 0 34px; height: 30px; border-radius: 16px; background: var(--cream); box-shadow: 0 8px 0 var(--edge), 0 20px 30px rgba(11, 26, 107, .35); z-index: -1; }
.shelf { isolation: isolate; }
.shelf li { display: grid; justify-items: center; gap: 12px; cursor: default; border-radius: 16px; }
.shelf .pawn { width: 78%; max-width: 130px; translate: 0 0; transition: translate .3s var(--ease); filter: drop-shadow(0 8px 6px rgba(11, 26, 107, .3)); }
.shelf li:hover .pawn, .shelf li:focus-visible .pawn { translate: 0 -16px; }
.shelf span { font-weight: 700; font-size: .95rem; padding-top: 18px; }

.packs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.fan { position: relative; height: clamp(300px, 36vw, 420px); }
.pack {
  position: absolute; left: 50%; bottom: 0; width: clamp(150px, 17vw, 210px); aspect-ratio: 2 / 3; margin-left: calc(clamp(150px, 17vw, 210px) / -2);
  transform-origin: 50% 120%; rotate: calc((var(--k) - 1.5) * 13deg);
  background: var(--c) url(/s/img/card-back.webp) center / cover; background-blend-mode: luminosity;
  border-radius: 22px; box-shadow: 0 6px 0 rgba(0, 0, 0, .18), 0 20px 30px rgba(11, 26, 107, .35);
  display: grid; place-items: center; transition: rotate .4s var(--ease), translate .4s var(--ease);
}
.pack b { padding: 8px 14px; border-radius: 12px; background: var(--cream); color: var(--ink); font: 800 1rem/1 var(--body); box-shadow: 0 4px 0 var(--edge); }
.fan:hover .pack { rotate: calc((var(--k) - 1.5) * 17deg); }
.pack-names { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pack-names li { padding: 8px 14px; border-radius: 999px; background: var(--ground-deep); font-weight: 700; box-shadow: 0 4px 0 var(--shadow); }

.final { padding-block: 0 clamp(72px, 10vw, 120px); }
.final-slab {
  position: relative; text-align: center; display: grid; justify-items: center; padding: clamp(56px, 7vw, 90px) var(--pad);
  background: var(--cream); color: var(--ink); border-radius: 36px; box-shadow: 0 10px 0 var(--edge), 0 30px 50px rgba(11, 26, 107, .4);
}
.final-die { width: 120px; height: 120px; margin-top: -120px; margin-bottom: 18px; rotate: -8deg; filter: drop-shadow(0 12px 14px rgba(11, 26, 107, .4)); }
.final-slab .lead { color: var(--ink-2); margin-inline: auto; }
.final-slab .ctas { justify-content: center; }

.foot { background: var(--ground-deep); padding-block: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot .lockup { font-size: 1.4rem; }
.foot .lockup img { width: 32px; height: 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-links a { padding: 8px 10px; border-radius: 10px; color: var(--on-2); text-decoration: none; font-size: .95rem; }
.foot-links a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.by { margin-inline-start: auto; font-size: .9rem; color: var(--on-2); }
.by a { color: var(--on-2); display: inline-block; padding-block: 12px; }
.by a:hover { color: #fff; }

/* Inner pages */
.doc { padding-block: clamp(40px, 7vw, 90px) clamp(72px, 10vw, 120px); max-width: 760px; }
.doc h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.doc .btn { margin-top: 28px; }
.faq { display: grid; gap: 12px; margin-top: 44px; }
.faq details { background: var(--cream); color: var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--edge); }
.faq summary { padding: 18px 22px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }
.back { display: inline-block; margin-top: 36px; color: var(--on); font-weight: 700; }
.nf { text-align: center; display: grid; justify-items: center; }
.nf .lead { margin-inline: auto; }
.nf .ctas { justify-content: center; }
.nf-pawn { width: 120px; margin-bottom: 24px; rotate: 10deg; filter: drop-shadow(0 12px 10px rgba(11, 26, 107, .35)); }

/* Reveal: content is visible without JS; with JS it steps in once. */
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js .hero h1 .ln { opacity: 0; translate: 0 26px; animation: rz-in .8s var(--ease) both; animation-delay: calc(var(--d) * 90ms + 80ms); }

/* Tablet */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero-grid, .card-grid, .packs-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .modes { grid-template-columns: 1fr; }
  .mode:nth-child(2) { margin-top: 0; }
  .fan { order: 2; }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .lockup { font-size: 1.45rem; }
  .lockup img { width: 34px; height: 34px; }
  .nav-end { gap: 6px; }
  .hero h1 { font-size: clamp(2.6rem, 12.5vw, 3.6rem); }
  .ctas { gap: 12px; }
  .btn-lg, .store { min-height: 56px; }
  .hero .ctas > * { flex: 1 1 100%; justify-content: center; }
  .stage { margin-top: 8px; display: flex; flex-direction: column; }
  .talk { position: relative; inset: auto; width: 100%; margin-top: 4px; }
  .bubble { min-height: 136px; }
  .tiles { grid-template-columns: 1fr; }
  .t-power { grid-row: auto; }
  .mode { grid-template-columns: 140px 1fr; gap: 18px; }
  .shelf { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .shelf::after { display: none; }
  .shelf li { background: rgba(255, 255, 255, .1); padding: 14px 4px 10px; }
  .shelf span { padding-top: 0; font-size: .88rem; }
  .final-die { width: 96px; height: 96px; margin-top: -100px; }
  .fan { height: 270px; margin-bottom: 40px; }
  .pack { width: 132px; margin-left: -66px; }
  .packs-sec { padding-bottom: 110px; }
  .by { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .rv, .js .hero h1 .ln { opacity: 1; translate: none; }
}

/* Privacy policy: the rulebook from the game box. One cream sheet on the table with
   the eight level colours along its top edge; the promises and the clauses live inside
   it on one grid (heading column + text column), divided by hairlines, not stacked cards. */
.policy { padding-block: clamp(150px, 15vw, 210px) clamp(72px, 10vw, 120px); padding-inline: var(--pad); }
.sheet {
  position: relative; max-width: 1000px; margin-inline: auto; padding: clamp(28px, 5vw, 64px);
  background: var(--cream); color: var(--ink); border-radius: 30px 30px 26px 26px;
  box-shadow: 0 10px 0 var(--edge), 0 34px 60px rgba(11, 26, 107, .42);
}
.sheet-edge { position: absolute; inset: 0 0 auto; height: 12px; display: flex; border-radius: 30px 30px 0 0; overflow: hidden; }
.sheet-edge i { flex: 1; }
.sheet-pawn { position: absolute; bottom: calc(100% - 14px); inset-inline-end: clamp(28px, 6vw, 72px); width: clamp(70px, 9vw, 104px); filter: drop-shadow(0 10px 8px rgba(11, 26, 107, .3)); }
.sheet-head { padding-top: 6px; }
.sheet-kicker { display: inline-flex; align-items: center; gap: 8px; font: 400 1.2rem/1 var(--display); color: var(--ground-deep); }
.sheet-head h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin-top: 12px; color: var(--ink); }
.sheet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; color: var(--ink-2); }
.sheet-date { padding: 5px 12px; border-radius: 999px; background: var(--cream-2); font-weight: 700; font-size: .9rem; color: var(--ink); white-space: nowrap; }
.sheet-lang { margin-inline-start: auto; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; box-shadow: 0 4px 0 #0E0B26; transition: translate .22s var(--ease), box-shadow .22s var(--ease); }
.sheet-lang:hover { translate: 0 -2px; box-shadow: 0 6px 0 #0E0B26; }
.facts { list-style: none; margin: clamp(28px, 4vw, 40px) 0 0; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; background: var(--cream-2); border-radius: 22px; }
.facts li { display: grid; align-content: start; gap: 6px; }
.facts b { font: 800 1.05rem/1.25 var(--body); margin-top: 8px; }
.facts span:last-child { color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.fact-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--c); box-shadow: 0 4px 0 #0E0B26; }
.fact-ico svg { width: 26px; height: 26px; }
.toc { margin-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(20px, 3vw, 28px); border-bottom: 2px solid var(--edge); }
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: 0 3px 0 var(--edge); transition: translate .22s var(--ease), box-shadow .22s var(--ease); }
[dir=rtl] .toc a { padding: 7px 8px 7px 12px; }
.toc a span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--c); color: var(--t); font: 800 .85rem/1 var(--body); }
.toc a:hover { translate: 0 -2px; box-shadow: 0 5px 0 var(--edge); }
.clause { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 48px); padding-block: clamp(26px, 3.5vw, 38px); border-bottom: 1px solid var(--edge); scroll-margin-top: 90px; }
.clause:last-of-type { border-bottom: 0; padding-bottom: 0; }
.clause-side { display: flex; align-items: flex-start; gap: 14px; }
.clause-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: var(--t); box-shadow: 0 4px 0 var(--e); font: 800 19px/1 var(--body); }
.clause h2 { font: 800 1.2rem/1.3 var(--body); margin: 8px 0 0; }
.clause-body p, .clause-body li { color: var(--ink-2); line-height: 1.7; }
.clause-body > * + * { margin-top: 12px; }
.clause-body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.clause-body ul + p { margin-top: 14px; }
.clause-body li { position: relative; padding-inline-start: 20px; }
.clause-body li::before { content: ''; position: absolute; inset-inline-start: 0; top: .66em; width: 8px; height: 8px; border-radius: 3px; background: var(--ground); }
.clause-body a { color: var(--ground-deep); font-weight: 700; text-underline-offset: 3px; }
.clause-body a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .clause { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .policy { padding-inline: 12px; padding-top: 150px; }
  .sheet { padding: 30px 20px 28px; border-radius: 24px; }
  .facts { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .facts li { grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; }
  .facts li .fact-ico { grid-row: span 2; }
  .facts b { margin-top: 0; }
  .sheet-lang { margin-inline-start: 0; }
}
