/* Jalpha.io — site styles (dark theme, matches the original Typedream look) */
:root {
  --bg: #131415;
  --bg-button: #1f2124;
  --bg-gray: #2c2c30;
  --bg-input: #1f2023;
  --border: #303236;
  --border-input: #3c3f44;
  --focus: #6499ff;
  --text: #fff;
  --text-light: #8a8f98;
  --accent: #7381ff;
  --accent-hi: #8995ff;
  --ok: #4ade80;
  --err: #f87171;
  --nav-h: 60px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.5; overflow-x: hidden;
}
main { padding-top: var(--nav-h); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #fff; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px auto; max-width: 1000px; }

/* ---------- navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: var(--bg); box-shadow: 0 0 20px rgba(0,0,0,.4); }
.nav-in { height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-menu a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-menu a:hover { background: var(--bg-gray); }
.nav-menu a[aria-current="page"]:not(.nav-btn) { background: var(--bg-gray); }
.nav-menu a.nav-btn { border-radius: 999px; padding: 7px 18px; margin-right: 8px; font-weight: 600; }
.nav-menu a.nav-btn:hover { filter: brightness(1.1); }
.nav-menu a.lang-toggle { margin-left: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; display: inline-flex; gap: 6px; align-items: center; }
.lang-toggle span { color: var(--text-light); }
.lang-toggle span.on { color: #fff; font-weight: 700; }
.lang-toggle .sep { opacity: .5; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 8px 16px 16px; box-shadow: 0 12px 20px rgba(0,0,0,.5); display: none; }
  .nav.open .nav-menu { display: flex; }
  .nav-menu a { padding: 12px; font-size: 16px; }
  .nav-menu a.nav-btn { text-align: center; margin: 4px 0 8px; }
  .nav-menu a.lang-toggle { margin: 8px 0 0; justify-content: center; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- blocks ---------- */
.box { position: relative; display: flex; flex-direction: column; width: 100%; margin-left: auto; margin-right: auto; padding: 20px 16px; }
.box.full { max-width: none; }
.box.bleed { border-radius: 0; border: 0; }
.box.card { background: var(--bg-button); border: 1px solid var(--border); border-radius: 16px; }
/* homepage glass "bubble" cards */
.box.bubble { max-width: 1100px; width: calc(100% - 32px); margin: 24px auto; padding: 48px 32px 40px; border-radius: 28px;
  background-size: 100% 100%; background-repeat: no-repeat; box-shadow: 0 20px 60px -30px rgba(120, 60, 200, .55); }
.box.bubble > .cols { align-items: center; margin-bottom: 0 !important; }
.box.bubble > .cols > .col { justify-content: center; }
a.box-link { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.box-link:hover, .box-link.has-cover:hover { transform: translateY(-3px); color: inherit; }
.box-link.has-cover { transition: transform .2s; }
.box-link .cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.box-link.has-cover a:not(.cover), .box-link.has-cover button { position: relative; z-index: 2; }
.cols { display: flex; width: 100%; margin-left: auto; margin-right: auto; gap: 24px; }
.col { min-width: 0; display: flex; flex-direction: column; }
.col-icon { min-width: 24px; }
.col-icon figure.img { text-align: left !important; }
.col-icon figure.img img { display: block; }
/* a column row that collapsed to one column: centre it */
.cols-solo > .col > :is(h1, h2, h3, p) { text-align: center !important; }
/* rows of equal cards (e.g. students vs tutors, pricing plans) */
.cards-row { align-items: stretch !important; }
.cards-row > .col > .box { height: 100%; margin: 0 !important; max-width: none !important; border-radius: 24px !important; }
/* pricing plans: click one to select it */
.plans > .plan { cursor: pointer; border-radius: 24px; outline: none; }
.plans > .plan > .box { background: transparent !important; border: 1px solid var(--border) !important; box-shadow: none !important; transition: background .2s, border-color .2s, box-shadow .2s; }
.plans > .plan:hover > .box { border-color: #4a4d55 !important; }
.plans > .plan.sel > .box { background: var(--bg-button) !important; border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent), 0 12px 32px -12px rgba(115,129,255,.45) !important; }
.plans > .plan:focus-visible > .box { box-shadow: 0 0 0 3px var(--focus) !important; }
@media (max-width: 767px) {
  .cols:not(.cols-h) { flex-direction: column; }
  .cols.cols-rev:not(.cols-h) { flex-direction: column-reverse; }
  .cols:not(.cols-h) > .col { flex: 1 1 auto !important; }
  .cols.cols-scroll { flex-direction: row !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .cols.cols-scroll > .col { flex: 0 0 75% !important; scroll-snap-align: center; }
  .hide-m { display: none !important; }
}
@media (min-width: 768px) { .hide-d { display: none !important; } }

h1, h2, h3, p, blockquote { width: 100%; margin: 0; padding: 4px 0; overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
/* page titles promoted to <h1> for SEO keep the look they had */
h1.h1-plain { font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: normal; }
h1.as-h2 { font-size: 40px; font-weight: 700; line-height: 1.25; letter-spacing: -.5px; }
@media (max-width: 767px) { h1.as-h2 { font-size: 30px; } }
.mx { margin-left: auto; margin-right: auto; }
h1, .as-h1 { font-size: 56px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.25; letter-spacing: -.5px; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.35; }
p { font-size: 16px; line-height: 1.6; }
blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; color: #d7d8db; margin: 12px 0; }
@media (max-width: 767px) {
  h1, .as-h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 21px; }
  /* scale down very large inline font sizes on phones */
  h1 span[style*="font-size"], .as-h1 span[style*="font-size"], h2 span[style*="font-size"] { font-size: min(1em, 10vw) !important; }
}
.gt { background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sp { width: 100%; }
.rtc { width: 100%; padding: 0 16px; }
.rtc h2, .rtc h3 { margin-top: 12px; }
/* top-level blocks that sit directly in <main> (legal pages) get a readable column */
main > p, main > h1, main > h2, main > h3, main > ul, main > ol, main > .as-h1 { max-width: 900px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
figure.img { margin: 0; width: 100%; }
figure.img img { display: inline-block; vertical-align: middle; }
ul, ol { max-width: 800px; width: 100%; margin: 8px auto; padding-left: 1.5em; line-height: 1.6; }
li { margin: 4px 0; }
code { background: var(--bg-gray); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.ico { vertical-align: -.15em; }

/* ---------- buttons ---------- */
.btn-wrap { width: 100%; padding: 8px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 26px;
  border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-glow { box-shadow: 0 0 24px rgba(255,255,255,.35); }

/* ---------- media ---------- */
.embed { width: 100%; padding: 8px 0; }
.embed video { width: 100%; border-radius: 16px; display: block; }
.embed.yt iframe { display: block; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; height: auto; margin: 0 auto; border: 0; border-radius: 16px; }

/* ---------- accordion ---------- */
.acc { width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.acc details { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-button); }
.acc details.acc-gray { background: var(--bg-gray); }
.acc summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; position: relative; text-align: left; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc summary p { padding: 0; }
.acc-body { padding: 0 18px 16px; text-align: left; }

/* ---------- blog collection ---------- */
.blog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; max-width: 1100px; margin: 8px auto 4px; padding: 0 16px; width: 100%; }
.blog-tabs { display: flex; gap: 6px; }
.blog-tabs button { background: var(--bg-button); color: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; }
.blog-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.blog-search { flex: 1 1 220px; max-width: 360px; min-height: 40px; font: inherit; font-size: 15px; color: #fff; background: var(--bg-input);
  border: 1px solid var(--border-input); border-radius: 999px; padding: 8px 16px; }
.blog-search:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(100,153,255,.25); }
.coll { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; width: 100%; padding: 16px; }
.coll-item { display: flex; }
.coll-item[hidden] { display: none; }
.coll-item > * { flex: 1; max-width: none !important; margin: 0 !important; }
.coll-item figure.img img { width: 100% !important; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.coll-empty { text-align: center; color: var(--text-light); padding: 24px; }
@media (max-width: 900px) { .coll { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .coll { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.tform { width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; padding: 8px 16px; text-align: left; }
.field { width: 100%; padding: 2px 0 8px; }
.field label { display: block; font-size: 14px; margin-bottom: 4px; }
.tform input, .tform select, .tform textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff; background: var(--bg-input);
  border: 1px solid var(--border-input); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
.tform textarea { resize: vertical; }
.tform input:focus, .tform select:focus, .tform textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(100,153,255,.25); }
.tform [aria-invalid="true"] { border-color: var(--err); }
.tform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* the card that holds a form: rounded, spaced from the heading above it */
.box:has(> .tform) { margin-top: 24px; border-radius: 20px; padding: 24px 8px; border: 1px solid var(--border); }
.tform > .sp { height: 8px !important; }
.form-msg { min-height: 1.5em; text-align: center; font-weight: 500; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
/* homepage hero: the headline is deliberately staggered with leading spaces, so give its column room and never break a word */
body.home main > .box:first-child .cols.hide-m > .col:nth-child(2) { flex: 0.42 1 0 !important; }
body.home main > .box:first-child .cols.hide-m :is(h1, h2) { overflow-wrap: normal; }
body.home main > .box:first-child .cols.hide-m :is(h1, h2) > span { font-size: min(40px, 2.9vw) !important; }
.tform[hidden] { display: none; }

/* ---------- section titles that link to a blog (Jalpha 部落格 / 4unme 官方部落格) ---------- */
.blog-head, .blog-head span { font-size: 36px !important; letter-spacing: -0.5px !important; }
.blog-head a { text-decoration: none; color: inherit; }
.blog-head a:hover { text-decoration: underline; }
@media (max-width: 767px) { .blog-head, .blog-head span { font-size: 28px !important; } }
/* 4unme page FAQ: same scale as the Jalpha page FAQ */
.faq-head { font-size: 40px !important; font-weight: 700 !important; }
.acc-gray summary h3, .acc-gray summary h3 span { font-size: 20px !important; font-weight: 400 !important; }
@media (max-width: 767px) { .faq-head { font-size: 32px !important; } .acc-gray summary h3, .acc-gray summary h3 span { font-size: 18px !important; } }
/* 4unme post titles in lists */
a.post-link, a.post-link span { color: #fff !important; text-decoration: none; }
a.post-link u { text-decoration: none; }
a.post-link:hover u { text-decoration: underline; }
a.post-link span { font-size: 22px !important; font-weight: 700; line-height: 1.4; }
a.post-link:hover { text-decoration: underline; }

/* ---------- breadcrumbs ---------- */
.crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 1.4; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .28); color: rgba(255, 255, 255, .78); }
.crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs.center { display: flex; width: fit-content; margin: 0 auto; }

/* ---------- blog articles ---------- */
.post-head { max-width: 760px; margin: 0 auto; padding: 44px 0 40px; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.22; letter-spacing: -0.5px; margin: 18px 0 14px; text-align: left; }
.post-meta { color: rgba(255, 255, 255, .7); font-size: 14px; margin: 0; }
.post-hero4 { padding: 0 16px; }
.post-hero4 > .crumbs { display: flex; width: fit-content; margin: 48px auto 0; }
.post-hero4 .post-title { max-width: 760px; margin: 20px auto 44px; text-align: center; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.25; color: #fff; }
.post-hero4 > .sp { display: none; }
.post { max-width: 760px; margin: 0 auto; padding: 40px 20px 24px; font-size: 17px; line-height: 1.8; color: #e6e8eb; }
.post p { margin: 0 0 1em; }
.post h2 { font-size: 26px; line-height: 1.35; margin: 2.2em 0 .7em; color: #fff; scroll-margin-top: 84px; }
.post h3 { font-size: 20px; line-height: 1.4; margin: 1.6em 0 .5em; color: #fff; }
.post ul, .post ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.post li { margin: .4em 0; }
.post li > p { margin: .3em 0 0; }
.post li > ul { margin: .3em 0 .2em; }
.post li::marker { color: #8ab4ff; }
.post .emoji-list { list-style: none; padding-left: 0; }
.post .emoji-list li { margin: .55em 0; }
.post blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid #6b7cff; background: rgba(255, 255, 255, .04); border-radius: 0 12px 12px 0; font-size: 18px; }
.post blockquote p:last-child { margin: 0; }
.post-fig { margin: 2em 0; }
.post-fig img { display: block; width: 100%; height: auto; border-radius: 14px; }
.post-intro { font-size: 18px; color: #fff; }
.post .post-lead { font-size: 20px; font-weight: 700; line-height: 1.6; color: #fff; padding-left: 16px; border-left: 4px solid #2f80ed; }
.toc { margin: 8px 0 36px; padding: 18px 22px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.post .toc-title { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .65); }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc ul.plain { margin: 0; padding-left: 0; list-style: none; }
.toc li { margin: .3em 0; }
.toc a { color: #cfe0ff; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.faq-list { display: grid; gap: 12px; margin: 0 0 1.5em; }
.faq-item { padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.post .faq-q { font-size: 17px; margin: 0 0 6px; }
.post .faq-a { margin: 0; color: rgba(255, 255, 255, .8); }
.post-related { padding: 14px 18px; border-radius: 12px; background: rgba(47, 128, 237, .12); border: 1px solid rgba(47, 128, 237, .35); }
.post-related a { color: #9cc3ff; }
.more-head { text-align: center; font-size: 28px; margin: 48px auto 20px; width: 100%; max-width: none; }
.crumbs [aria-current] { color: rgba(255, 255, 255, .7); }

/* ---------- post cards (more posts, 4unme blog lists) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 20px; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.pcard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .1); background: #1d1f23; transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.pcard h3 { margin: 0; font-size: 20px; line-height: 1.4; color: #fff; }
.pcard p { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.pcard-cover { justify-content: flex-end; min-height: 210px; padding: 20px; background-size: cover; background-position: center; }
.pcard-media { display: flex; align-items: center; justify-content: center; height: 230px; padding: 18px; background: linear-gradient(135deg, rgba(203, 94, 238, .35), rgba(75, 225, 236, .35)); }
.pcard-media img { max-height: 100%; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.pcard-body { padding: 16px 20px 20px; }
.pcard-body h3 { font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } .pcard:hover { transform: none; } }
/* 4unme posts keep their own intro box and pictures */
.post-4u span { font-size: inherit !important; letter-spacing: normal !important; line-height: inherit !important; }
.post-4u .post-intro-box { max-width: none !important; margin: 0 0 28px !important; padding: 22px 24px 8px !important; border-radius: 16px !important; }
.post-4u .post-intro-box p { text-align: left !important; max-width: none !important; padding: 0 !important; margin: 0 0 .9em; font-size: 18px; font-weight: 500; }
.post-4u figure.img { margin: 1.6em auto; }
.post .caption { font-size: 14px; color: rgba(255, 255, 255, .6); text-align: center; list-style: none; margin-top: -0.8em; }
.more-box h2, .more-box h2 span { font-size: 22px !important; letter-spacing: normal !important; }
.more-box h2 { text-align: center !important; max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.more-box h2.blog-head, .more-box h2.blog-head span { font-size: 28px !important; }
.more-box h2 a { color: #fff; text-decoration: none; }
.more-box h2 a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .post { font-size: 16px; padding: 28px 16px 16px; }
  .post h2 { font-size: 22px; }
  .post-head { padding: 28px 0; }
}
/* Jalpha page: "What is Jalpha?" card */
.box.whatis { max-width: min(1100px, calc(100% - 32px)); margin: 40px auto 40px; padding: 36px 28px; border-radius: 20px; background: rgb(22, 33, 150); }
.box.whatis h2 { margin: 0 auto; max-width: 900px !important; }
.whatis-sub { display: block; margin-top: 16px; }
.whatis-en .whatis-sub, .whatis-en .whatis-sub span { font-size: 22px !important; line-height: 1.5; font-weight: 600 !important; }
@media (max-width: 767px) { .whatis-en h2 { font-size: 26px !important; } .whatis-en .whatis-sub, .whatis-en .whatis-sub span { font-size: 18px !important; } }
/* Jalpha waiting-list card: same width and spacing in both languages */
.box.wl-card { max-width: min(780px, calc(100% - 32px)) !important; margin: 24px auto !important; padding: 40px 24px !important; border-radius: 25px !important; }
.wl-card > h2 { max-width: 640px !important; margin-left: auto; margin-right: auto; }
.wl-card > .sp { height: 24px !important; }
.wl-card .tform { max-width: 640px !important; }
@media (max-width: 767px) { .box.wl-card { padding: 28px 8px !important; } }
@media (max-width: 767px) { .box.whatis { padding: 28px 18px; } }
.form-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 16px; outline: none; animation: done-in .35s ease-out; }
.form-done .done-badge { margin-bottom: 14px; filter: drop-shadow(0 6px 14px rgba(31,184,102,.35)); }
.form-done p { margin: 0; }
.form-done .done-title { font-size: 20px; font-weight: 600; }
.form-done .done-text { opacity: .85; max-width: 32em; }
@keyframes done-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form-done { animation: none; } }

/* ---------- reveal animations (only when JS is on) ---------- */
.js .rv { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.js .rv-up { transform: translateY(28px); }
.js .rv-right { transform: translateX(-28px); }
.js .rv-scale { transform: scale(.94); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- legal pages (privacy policy / terms): one consistent type scale ---------- */
.legal main span[style*="font-size"] { font-size: inherit !important; }
.legal main h1 { font-size: 34px !important; font-weight: 800; line-height: 1.25; letter-spacing: -.5px; margin-top: 8px; }
.legal main h2 { font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: 0; margin-top: 32px; padding-bottom: 2px; }
.legal main h3 { font-size: 18px; font-weight: 600; line-height: 1.45; margin-top: 18px; }
.legal main p, .legal main li { font-size: 15.5px; line-height: 1.8; }
.legal main h1 + p { color: var(--text-light); }
@media (max-width: 767px) {
  .legal main h1 { font-size: 27px !important; }
  .legal main h2 { font-size: 20px; }
  .legal main h3 { font-size: 17px; }
}

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 16px; }
