/* Dreemchen — the app's Moon garden palette (baseColors in dreemchen-app/App.js) and its typography:
   DM Sans 700 headings with -0.022em tracking, Lora for the wordmark and story titles. */
:root {
  --bg: #211b35;
  --bg-deep: #17122a;
  --panel: #332a4a;
  --panel-2: #3d3358;
  --line: #4a3f66;
  --ink: #faf2ff;
  --muted: #c6b8da;
  --gold: #dbbefb;
  --gold-ink: #211b35;
  --sage: #b3e0d0;
  --radius: 22px;
  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.022em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.ico { width: 22px; height: 22px; flex: none; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(33, 27, 53, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(74, 63, 102, .6); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 23px/1 var(--serif); letter-spacing: -.01em; }
.brand img { border-radius: 10px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.nav + .top-actions { margin-left: 12px; }
.top-in > .brand + .top-actions { margin-left: auto; }
@media (max-width: 900px) { .nav { display: none; } .top-actions { margin-left: auto; } }

.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 13px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary .ico { width: 18px; height: 18px; }
.langs[open] summary, .langs summary:hover { color: #fff; border-color: var(--muted); }
.langs-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.langs-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: #fff; text-decoration: none; }
.langs-menu a:hover { background: var(--panel-2); }
.langs-menu a[aria-current="true"] { color: var(--gold); font-weight: 700; }

/* Buttons and the App Store badge */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--gold-ink); border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
.btn:hover { background: #fff; color: var(--gold-ink); }
.btn svg { width: 16px; height: 16px; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; padding: 10px 22px 10px 18px; text-decoration: none; transition: transform .2s, border-color .2s; }
.badge:hover { color: #fff; transform: translateY(-2px); border-color: #fff; }
.badge svg { width: 28px; height: 28px; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: 12px; }
.badge strong { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }

/* Night sky: the app's Starfield (src/Design.js), two tiles of dots and little stars drifting slowly */
.stars { position: fixed; inset: -60px; z-index: 0; pointer-events: none; }
.stars i { position: absolute; inset: 0; background-repeat: repeat; background-size: 400px 850px; animation: drift-a 19s ease-in-out infinite; }
.stars i + i { background-position: 200px 300px; animation: drift-b 28s ease-in-out infinite; }
@keyframes drift-a { 0%, 100% { opacity: .6; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(15px, -26px); } }
@keyframes drift-b { 0%, 100% { opacity: .6; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(-12px, 32px); } }
main, .foot { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* The app's FoxHero float: up 7px and a 2° sway, 2.4 s each way */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; filter: drop-shadow(0 0 18px rgba(219, 190, 251, .55)); } }

/* Blocks fade up as they scroll into view (only when the script runs) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(12px, 2vw, 28px) 0 clamp(48px, 7vw, 84px); background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(219, 190, 251, .18), transparent 70%); }
.moon { position: absolute; top: clamp(16px, 3vw, 40px); right: clamp(24px, 8vw, 140px); width: 64px; height: 64px; border-radius: 50%; box-shadow: -14px 10px 0 0 var(--gold); transform: rotate(-20deg); animation: glow 6s ease-in-out infinite; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tagline { font: italic 400 20px/1.3 var(--serif); color: var(--gold); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(18px, 2vw, 21px); color: #ece2f8; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 30px 0 18px; }
.note { color: var(--muted); font-size: 15px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-fox { position: absolute; z-index: 3; left: calc(50% - 350px); bottom: -40px; width: clamp(120px, 15vw, 180px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: float 4.8s ease-in-out infinite; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .hero-fox { left: 4%; }
  .moon { top: 14px; right: 18px; width: 40px; height: 40px; box-shadow: -9px 6px 0 0 var(--gold); }
}
@media (max-width: 560px) { .hero { padding-top: 48px; } }

/* ——— Recreated app screens (layout from Studio's App Store screenshots). Inside .ui, 1em = 10 pt of the device. ——— */
.device { margin: 0; position: relative; z-index: 1; padding: 9px; background: #0c0a12; border-radius: 58px; box-shadow: inset 0 0 0 2px #4b4462, 0 50px 90px -30px rgba(5, 3, 12, .85), 0 0 0 1px rgba(255, 255, 255, .04); }
.device.portrait { width: min(340px, 80vw); }
.device.landscape { width: min(600px, 92vw); border-radius: 46px; }
.screen { position: relative; container-type: inline-size; overflow: hidden; background: var(--bg); border-radius: 50px; aspect-ratio: 440 / 956; }
.landscape .screen { border-radius: 38px; aspect-ratio: 844 / 390; background: #0f0c19; }
.ui { position: absolute; inset: 0; font-size: calc(100cqw / 44); line-height: 1.3; color: var(--ink); text-align: left; letter-spacing: 0; }
.landscape .ui { font-size: calc(100cqw / 84.4); }
.ui h3 { margin: 0; }
.ui button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.island { position: absolute; z-index: 5; top: 1.1em; left: 50%; width: 12.6em; height: 3.7em; margin-left: -6.3em; background: #000; border-radius: 2em; }
.landscape .island { top: 50%; left: 1.1em; width: 3.7em; height: 12.6em; margin: -6.3em 0 0; }

/* Status bar */
.sb { position: absolute; z-index: 4; top: 1.45em; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 2.2em 0 3.9em; font-size: 1.7em; }
.sb b { font-weight: 700; }
.sb span { display: flex; align-items: center; gap: .3em; }
.sig { display: flex; align-items: flex-end; gap: .12em; height: .7em; }
.sig u { width: .19em; background: var(--ink); border-radius: .06em; }
.sig u:nth-child(1) { height: 35%; } .sig u:nth-child(2) { height: 55%; } .sig u:nth-child(3) { height: 78%; } .sig u:nth-child(4) { height: 100%; }
.wifi { width: 1em; height: 1em; }
.bat { position: relative; width: 1.45em; height: .72em; border: .06em solid rgba(250, 242, 255, .45); border-radius: .2em; }
.bat::before { content: ""; position: absolute; inset: .1em .25em .1em .1em; background: var(--ink); border-radius: .1em; }

/* Tab bar */
.tabbar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; padding: .8em 1.2em 2.6em; background: var(--bg); border-top: 1px solid rgba(198, 184, 218, .25); }
.tab { display: flex; flex-direction: column; align-items: center; gap: .5em; padding: .9em .3em; border-radius: 1.8em; color: var(--muted); font-size: 1.15em; font-weight: 500; text-align: center; line-height: 1.2; }
.tab svg { width: 2em; height: 2em; }
.tab.on { color: var(--gold); background: rgba(219, 190, 251, .1); }

/* Home: the shelf */
.home { position: absolute; inset: 0; padding: 6.6em 2.4em 0; }
.moonmark { text-align: center; color: var(--gold); font-size: 4.4em; line-height: 1; }
.magic { text-align: center; color: var(--gold); font-size: 1.1em; font-weight: 700; letter-spacing: .18em; margin: 1.2em 0 0; }
.home h3 { font-size: 2.4em; letter-spacing: -.022em; margin: 1.1em 0 .5em; }
.home h3 + .feat { margin-top: 0; }
.feat { background: var(--panel); border-radius: 2.8em; overflow: hidden; }
.feat img { width: 100%; aspect-ratio: 1.45; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.feat-in { padding: .6em 2.2em 2.4em; }
.feat-in b { display: block; font-size: 2.4em; letter-spacing: -.022em; }
.feat-in small { display: block; color: var(--muted); font-size: 1.4em; margin: .5em 0 1em; padding-bottom: 1em; border-bottom: 1px solid rgba(198, 184, 218, .25); }
.feat-in span { color: var(--gold); font-weight: 700; font-size: 1.7em; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8em 1.8em; }
.mini img { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 2em; }
.mini b { display: block; font-size: 1.6em; letter-spacing: -.02em; margin-top: .6em; line-height: 1.3; }
.mini small { color: var(--muted); font-size: 1.2em; }

/* Create: what the child loves */
.create { position: absolute; inset: 0; padding: 8.6em 2.4em 0; }
.dots { display: flex; justify-content: center; gap: .6em; }
.dots i { width: .6em; height: .6em; border-radius: .3em; background: var(--line); }
.dots i.on { background: var(--gold); }
.dots i.wide { width: 2.6em; }
.ck { color: var(--gold); font-size: 1.2em; font-weight: 700; letter-spacing: .17em; margin: 2.8em 0 .8em; }
.create h3 { font-size: 3em; letter-spacing: -.022em; line-height: 1.2; }
.csub { color: var(--muted); font-size: 1.6em; line-height: 1.5; margin: .7em 0 1.5em; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .35em; min-height: 7.4em; padding: 1.2em .5em .9em; background: var(--panel); border: 1px solid var(--line); border-radius: 2.2em; font-size: 1em; font-weight: 700; line-height: 1.25; text-align: center; transition: background .2s, border-color .2s; }
.chip { font-size: 1.3em; }
.chip .emo { font-size: 2.3em; line-height: 1.1; }
.chip.on { background: rgba(179, 224, 208, .15); border: 2px solid var(--sage); }
.chip.on::after { content: "✓"; position: absolute; top: .5em; right: .8em; color: var(--sage); }
.cbtn { display: block; margin-top: 2.4em; padding: 1.6em; border-radius: 5em; background: var(--gold); color: var(--bg); font-size: 1.7em; font-weight: 700; text-align: center; }

/* Reader and interactive pages (landscape): blurred backdrop, the whole picture, the line on a soft shade */
.backdrop { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; filter: blur(14px); opacity: .45; }
.picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(rgba(8, 11, 20, 0), rgba(8, 11, 20, .45) 45%, rgba(8, 11, 20, .78)); }
.lines { position: absolute; left: 9.6em; right: 9.6em; bottom: 3.6em; text-align: center; font-family: var(--serif); text-shadow: 0 .1em 1em rgba(0, 0, 0, .7); }
.lines .lb { font-size: 2.4em; font-weight: 500; line-height: 1.38; color: #fbf5ff; margin: 0; }
.lines .fr { font-size: 1.6em; font-style: italic; line-height: 1.38; color: rgba(248, 237, 217, .85); margin: .5em 0 0; transition: opacity .3s, max-height .3s; max-height: 4em; }
.no-tr .lines .fr { opacity: 0; max-height: 0; margin: 0; }
.ctrls { position: absolute; z-index: 2; right: 1em; top: 50%; transform: translateY(-50%); display: grid; gap: 1em; }
.ctrl { display: grid; place-items: center; width: 4.4em; height: 4.4em; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 17, 28, .45); color: #faf2ff; transition: background .2s; }
.ctrl svg { width: 2.2em; height: 2.2em; }
.ctrl.lit { background: rgba(219, 190, 251, .32); }
button.ctrl { box-shadow: 0 0 0 .15em rgba(219, 190, 251, .35); animation: hint 2.4s ease-in-out 3; }
@keyframes hint { 50% { box-shadow: 0 0 0 .5em rgba(219, 190, 251, .15); } }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: .3em; background: rgba(255, 255, 255, .12); }
.progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--gold); }

/* "You decide" */
.veil { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; background: rgba(12, 17, 28, .6); }
.ask { width: 62.4em; padding: 2.2em 2.2em 1.4em; background: rgba(29, 39, 56, .94); border: 1px solid var(--line); border-radius: 2.8em; text-align: center; }
.ak { color: var(--gold); font-size: 1.1em; font-weight: 700; letter-spacing: .15em; margin: 0 0 1em; }
.ask h3 { font-size: 2.4em; letter-spacing: -.022em; margin-bottom: .6em; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; }
.opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; min-height: 9.6em; padding: 1.4em 2em; background: #302845; border: 2px solid var(--line); border-radius: 2.2em; transition: background .2s, border-color .2s; }
.opt span { color: var(--gold); font-size: 2em; }
.opt b { font-size: 1.8em; letter-spacing: -.02em; line-height: 1.3; }
.opt.on { background: #3d3357; border-color: var(--gold); }
.again { color: rgba(248, 237, 217, .75); font-size: 1.2em; letter-spacing: .03em; margin: 1.4em 0 0; }

/* Art around a device: soft glow behind, a fox in front */
.hero-art::before, .split-art::before { content: ""; position: absolute; inset: 10% 6%; background: radial-gradient(closest-side, rgba(219, 190, 251, .2), transparent); filter: blur(12px); z-index: -1; }
.art-fox { position: absolute; z-index: 3; right: -24px; bottom: -84px; width: clamp(100px, 12vw, 150px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: float 4.8s ease-in-out infinite; }
.split.reverse .art-fox { right: auto; left: -56px; }
.create-in { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 860px) {
  .art-fox, .split.reverse .art-fox { right: 0; left: auto; bottom: -48px; width: 92px; }
}

/* Sections */
.section { position: relative; padding: clamp(36px, 4.5vw, 64px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--sage); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.kicker .ico { width: 18px; height: 18px; }
.title { font-size: clamp(32px, 4.4vw, 50px); }
.sub { color: var(--muted); font-size: 19px; max-width: 40em; margin-bottom: 28px; }

/* The shelf: a slow, endless carousel of covers inside the content width, faded at both ends.
   The list is rendered twice, so moving it by -50% loops without a seam. Hover or focus pauses it. */
.carousel { overflow: hidden; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.shelf { list-style: none; margin: 0; padding: 8px 0 16px; display: flex; width: max-content; animation: shelf 70s linear infinite; }
.carousel:hover .shelf, .carousel:focus-within .shelf { animation-play-state: paused; }
@keyframes shelf { to { transform: translateX(-50%); } }
.shelf li { flex: none; width: clamp(200px, 24vw, 260px); margin-right: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .3s ease; }
.shelf li:hover { transform: translateY(-4px); }
.shelf img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shelf span { display: block; padding: 12px 16px 16px; font: 500 15px/1.35 var(--serif); }
@media (prefers-reduced-motion: reduce) { .carousel { overflow-x: auto; } }

/* Two-column sections: screenshot + text */
.split { background: linear-gradient(180deg, transparent, rgba(51, 42, 74, .35) 30%, rgba(51, 42, 74, .35) 70%, transparent); }
.split-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-art { order: 2; }
.split-in.wide-art { grid-template-columns: 1.25fr .75fr; }
.split.reverse .split-in.wide-art { grid-template-columns: .75fr 1.25fr; }
.split-art { position: relative; display: flex; justify-content: center; }
.split-copy p { color: #ece2f8; font-size: 19px; }
.split-copy h3 { font-size: 24px; margin-top: 1.4em; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--sage); margin-top: 2px; }
@media (max-width: 860px) {
  .split-in, .split-in.wide-art, .split.reverse .split-in.wide-art { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
  .split-copy { text-align: center; }
  .ticks { justify-items: center; }
  .ticks li { text-align: left; }
}

/* Family cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: 16px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 12px; }

/* Final call */
.final { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 80px) 0; background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(219, 190, 251, .16), transparent 70%); text-align: center; }
.final-in { position: relative; }
.foxes { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 24px); margin-bottom: 32px; }
.foxes img { width: clamp(70px, 13vw, 150px); filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4)); animation: float 4.8s ease-in-out infinite; }
.foxes img:nth-child(2) { animation-delay: -1.2s; }
.foxes img:nth-child(3) { animation-delay: -2.4s; }
.foxes img:nth-child(4) { animation-delay: -3.6s; }
.final p { color: var(--muted); font-size: 19px; margin-bottom: 28px; }

/* Footer */
.foot { background: rgba(23, 18, 42, .92); padding: 56px 0 32px; border-top: 1px solid rgba(74, 63, 102, .6); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot-brand p { margin: 14px 0 0; color: var(--muted); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } }

/* 404 */
.nf-fox { width: 180px; margin: 0 auto 24px; animation: float 4.8s ease-in-out infinite; }

/* Legal pages */
.doc { padding: 40px 0 80px; }
.back { display: inline-block; margin-bottom: 20px; text-decoration: none; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.tabs a[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.doc article { background: #fff; color: #241d36; border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.doc article + article { margin-top: 32px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); color: var(--bg); }
.doc h2 { font-size: 22px; margin-top: 1.8em; color: var(--bg); }
.doc h3 { font-size: 17px; margin-top: 1.4em; }
.doc a { color: #6a4bb0; }
.doc .updated { color: #6f6687; font-size: 15px; }
.doc .summary { background: #f5effc; border-left: 4px solid #a98ad6; border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid #e4dcef; padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: #f5effc; }
