/* My Flirt / Flörtüm — site styles.
   Mobile first. Logical properties only (margin-inline, inset-inline…) so RTL (ar, ur) works.
   Colour pairs are measured in scripts/contrast.mjs (WCAG 2.2 AA). */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, subset by unicode-range) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-ext-wght.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* palette: timeleft navy + warm peach/coral, hinge cream/white; indigo + pink from the logo */
  --c-navy: #1b1f4b;
  --c-navy-2: #262b63;
  --c-indigo: #3f25c4;
  --c-pink: #ff1066;          /* decorative only (logo heart) */
  --c-cream: #fbf6ef;
  --c-sand: #f4ebdf;
  --c-peach: #ffe8da;
  --c-peach-2: #ffc9ad;
  --c-coral: #ff8a6b;
  --c-coral-ink: #a8381f;     /* coral usable as text on light backgrounds */
  --c-white: #ffffff;
  --c-muted: #50557a;
  --c-line: #e7dccd;
  --c-footer-text: #f6efe6;
  --c-footer-muted: #c9cbe6;
  --c-draft-bg: #fff1bf;
  --c-draft-fg: #4a3500;

  --bg: var(--c-cream);
  --text: var(--c-navy);
  --link: var(--c-coral-ink);
  --focus: var(--c-indigo);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lh-body: 1.6;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-h1: clamp(2.35rem, 1.7rem + 3.4vw, 4.2rem);

  /* space & shape */
  --gutter: 16px;
  --max: 1160px;
  --measure: 68ch;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgb(27 31 75 / 0.06), 0 8px 28px rgb(27 31 75 / 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Non-Latin scripts: system fonts only, no font download. Slightly taller lines. */
.font-system {
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-display);
  --lh-body: 1.75;
}
:lang(hi), :lang(bn) { --font-display: "Nirmala UI", "Noto Sans Devanagari", "Noto Sans Bengali", "Kohinoor Devanagari", system-ui, sans-serif; --font-body: var(--font-display); }
:lang(ar) { --font-display: "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif; --font-body: var(--font-display); }
:lang(ur) { --font-display: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; --font-body: var(--font-display); --lh-body: 2; }
:lang(ja) { --font-display: "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; --font-body: var(--font-display); }
:lang(ko) { --font-display: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; --font-body: var(--font-display); }
:lang(zh) { --font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; --font-body: var(--font-display); }
:lang(th) { --font-display: "Leelawadee UI", "Thonburi", "Noto Sans Thai", system-ui, sans-serif; --font-body: var(--font-display); --lh-body: 1.85; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
.font-system h1, .font-system h2, .font-system h3 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
address { font-style: normal; }
ul, ol { padding-inline-start: 1.25em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; padding: 10px 16px; background: var(--c-navy); color: var(--c-cream); border-radius: var(--r-sm); text-decoration: none; transition: inset-block-start 0.2s; }
.skip-link:focus { inset-block-start: 12px; }
.icon { flex: none; }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.7em 1.25em;
  border-radius: var(--r-pill); border: 2px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn-sm { min-height: 40px; padding: 0.5em 1em; font-size: var(--fs-sm); }
.btn-lg { min-height: 52px; padding: 0.85em 1.6em; font-size: 1.05rem; }
.btn-primary { background: var(--c-navy); color: var(--c-cream); }
.btn-primary:hover { background: var(--c-navy-2); }
.btn-coral { background: var(--c-coral); color: var(--c-navy); }
.btn-ghost { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn-ghost:hover { background: var(--c-white); }
.btn-label-short { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgb(251 246 239 / 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid rgb(231 220 205 / 0.8);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-navy); text-decoration: none; margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; white-space: nowrap; }
.header-nav { display: none; gap: 24px; }
.header-nav a { color: var(--c-navy); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.header-nav a:hover { text-decoration: underline; }
@media (max-width: 420px) {
  .btn-label-long { display: none; }
  .btn-label-short { display: inline; }
}
@media (min-width: 880px) {
  .header-nav { display: flex; margin-inline-end: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 40px 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 16px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; color: var(--c-coral-ink); }
.hero-title { font-size: var(--fs-h1); margin-block-end: 0.35em; }
.hero-brand { display: block; font-size: 0.42em; letter-spacing: 0; color: var(--c-indigo); margin-block-end: 0.35em; }
.lead { font-size: var(--fs-lead); color: var(--c-muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 20px; }
.hero-note { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--c-muted); max-width: 36em; }
.badge { flex: none; display: inline-grid; place-items: center; min-width: 2.6em; padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-navy); color: var(--c-cream); font-weight: 700; font-size: 0.8rem; line-height: 1.6; }

/* Phone mockup: an illustrative chat screen drawn in HTML/CSS */
.phone-wrap { position: relative; margin: 0; display: grid; place-items: center; padding-block: 12px; }
.phone {
  position: relative; z-index: 1;
  width: min(290px, 78vw); aspect-ratio: 9 / 19;
  padding: 12px; border-radius: 44px;
  background: var(--c-navy);
  box-shadow: 0 30px 60px -20px rgb(27 31 75 / 0.45), inset 0 0 0 2px rgb(255 255 255 / 0.08);
}
.phone::before { content: ""; position: absolute; inset-block-start: 22px; inset-inline: 0; margin-inline: auto; width: 70px; height: 20px; border-radius: 12px; background: var(--c-navy); z-index: 2; }
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgb(255 201 173 / 0.45), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgb(63 37 196 / 0.08), transparent 60%),
    var(--c-cream);
  display: flex; flex-direction: column;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 46px 14px 12px;
  background: rgb(255 255 255 / 0.82); backdrop-filter: blur(8px);
  border-block-end: 1px solid rgb(27 31 75 / 0.07); color: var(--c-navy);
}
.chat-back, .chat-more { flex: none; width: 20px; height: 20px; color: var(--c-muted); }
html[dir="rtl"] .chat-back, html[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
.chat-more { margin-inline-start: auto; }
.chat-avatar {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-peach-2), var(--c-coral) 55%, var(--c-pink));
  color: var(--c-white); font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 0 2px var(--c-white), 0 0 0 3.5px rgb(255 138 107 / 0.45);
}
.chat-who { display: grid; min-width: 0; line-height: 1.2; }
.chat-name { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--c-muted); }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #22b573; box-shadow: 0 0 0 2px rgb(34 181 115 / 0.2); }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px 14px 12px; }
.bubble { margin: 0; max-width: 82%; padding: 9px 13px 7px; border-radius: 18px; font-size: 0.9rem; line-height: 1.4; box-shadow: 0 2px 6px rgb(27 31 75 / 0.08); }
.bubble-meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-block-start: 2px; font-size: 0.66rem; line-height: 1; opacity: 0.6; }
.bubble-meta svg { width: 14px; height: 10px; }
.bubble-out .bubble-meta { opacity: 0.8; color: var(--c-peach); }
.chat-input { display: flex; align-items: center; gap: 8px; margin: 0 10px 14px; padding: 6px 6px 6px 12px; border-radius: var(--r-pill); background: var(--c-white); box-shadow: 0 4px 14px rgb(27 31 75 / 0.1); }
html[dir="rtl"] .chat-input { padding: 6px 12px 6px 6px; }
.chat-attach { flex: none; width: 20px; height: 20px; color: var(--c-muted); }
.chat-field { flex: 1; min-width: 0; font-size: 0.82rem; color: var(--c-muted); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-indigo); color: var(--c-white); }
.chat-send svg { width: 16px; height: 16px; }
.bubble-in { align-self: flex-start; background: var(--c-white); color: var(--c-navy); border-end-start-radius: 6px; }
.bubble-out { align-self: flex-end; background: var(--c-indigo); color: var(--c-white); border-end-end-radius: 6px; }
.bubble-typing { align-self: flex-start; display: flex; gap: 5px; background: var(--c-white); padding: 14px 16px; border-end-start-radius: 6px; }
.bubble-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); opacity: 0.5; animation: typing 1.2s infinite ease-in-out; }
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.blob-peach { width: 78%; aspect-ratio: 1; background: var(--c-peach-2); inset-block-start: 8%; inset-inline-start: 4%; opacity: 0.75; animation: float 12s ease-in-out infinite; }
.blob-indigo { width: 30%; aspect-ratio: 1; background: var(--c-pink); opacity: 0.18; inset-block-end: 6%; inset-inline-end: 6%; animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(8px, -12px) scale(1.03); } }

@media (min-width: 880px) {
  .hero { padding-block: 72px 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-peach { background: var(--c-peach); }
.section-cream { background: var(--c-sand); }
.section-head { max-width: 40em; margin-block-end: 36px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-lead { color: var(--c-muted); font-size: var(--fs-lead); margin: 0; }
@media (min-width: 880px) { .section { padding-block: 96px; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: none; }
.step { position: relative; padding: 28px 24px 24px; background: var(--c-white); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.step p { color: var(--c-muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-block-end: 16px; border-radius: 50%; background: var(--c-peach); color: var(--c-coral-ink); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; padding: 24px; background: var(--c-white); border-radius: var(--r); box-shadow: var(--shadow); }
.card p { color: var(--c-muted); margin: 0 0 16px; }
.card p:last-child { margin: 0; }
.card-icon { width: 36px; height: 36px; margin-block-end: 14px; color: var(--c-indigo); }
.card-link { margin-block-start: auto; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.cards-outline .card { background: transparent; box-shadow: none; border: 1.5px solid var(--c-line); }
@media (min-width: 620px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.google-box { margin-block-start: 32px; padding: 24px; border-radius: var(--r); background: var(--c-white); border-inline-start: 5px solid var(--c-indigo); box-shadow: var(--shadow); }
.google-box p { color: var(--c-muted); max-width: var(--measure); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--c-white); border-radius: var(--r); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: var(--r); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.1rem; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-peach); color: var(--c-coral-ink); font-size: 1.3rem; font-weight: 600; transition: transform 0.25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--c-muted); }
.faq-answer p { margin: 0; max-width: var(--measure); }

/* CTA band */
.cta-band { background: var(--c-navy); color: var(--c-footer-text); text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 20px; }
.cta-inner h2 { font-size: var(--fs-h2); margin: 0; max-width: 18em; }

/* ---------- Footer (hinge / timeleft style: big, calm, many columns) ---------- */
.site-footer { background: var(--c-navy); color: var(--c-footer-text); padding-block: 56px 32px; border-block-start: 1px solid rgb(255 255 255 / 0.08); }
.cta-band + .site-footer, .cta-band ~ .site-footer { border-block-start-color: rgb(255 255 255 / 0.12); }
.site-footer a { color: var(--c-peach-2); }
.site-footer a.btn-coral { color: var(--c-navy); }
.site-footer :focus-visible { outline-color: var(--c-peach-2); }
.site-footer .brand-invert { color: var(--c-footer-text); }
.brand-invert img { width: 44px; height: 44px; }
.footer-top { display: grid; gap: 40px; }
.footer-brand { display: grid; justify-items: start; align-content: start; gap: 16px; }
.footer-tagline { color: var(--c-footer-muted); margin: 0; max-width: 22em; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 24px; }
.footer-heading { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-footer-muted); margin: 0 0 14px; }
.font-system .footer-heading { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col { min-width: 0; }
.footer-col a { text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration: underline; }
.footer-label { display: block; font-size: 0.8rem; color: var(--c-footer-muted); }

/* Language picker: a popup that opens upwards over the page, so the footer never grows. */
.lang-picker { position: relative; display: inline-block; }
.lang-picker summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 12px; border: 1.5px solid rgb(255 255 255 / 0.3); border-radius: var(--r-pill); cursor: pointer; list-style: none; transition: border-color 0.2s, background-color 0.2s; }
.lang-picker summary:hover, .lang-picker[open] summary { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.06); }
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(-135deg) translate(-2px, -2px); margin-inline-start: 2px; transition: transform 0.2s; }
.lang-picker[open] summary::after { transform: rotate(45deg) translate(-2px, -2px); }
.footer-col-lang { grid-column: 1 / -1; }
.flag { flex: none; width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18); }
.footer-col .lang-list {
  position: absolute; z-index: 30; inset-block-end: calc(100% + 10px); inset-inline-start: 0;
  width: max-content; min-width: 100%; max-width: calc(100vw - 32px);
  max-height: min(62vh, 30rem); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; display: grid; grid-template-columns: 1fr; gap: 2px;
  background: var(--c-navy-2); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--r);
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.55);
  scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.25) transparent;
  animation: lang-pop 0.16s ease-out;
}
@keyframes lang-pop { from { opacity: 0; transform: translateY(6px); } }
.lang-list a { overflow-wrap: normal; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 28px 6px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--c-footer-text); font-size: var(--fs-sm); white-space: nowrap; }
html[dir="rtl"] .lang-list a { padding: 6px 10px 6px 28px; }
.footer-col .lang-list a:hover { background: rgb(255 255 255 / 0.08); text-decoration: none; }
.footer-col .lang-list a[aria-current] { background: var(--c-peach-2); color: var(--c-navy); font-weight: 600; }
.lang-list a[aria-current] .flag { box-shadow: 0 0 0 1px rgb(27 31 75 / 0.2); }
@media (prefers-reduced-motion: reduce) { .footer-col .lang-list { animation: none; } }

.footer-bottom { display: grid; gap: 16px; margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid rgb(255 255 255 / 0.14); font-size: 0.85rem; color: var(--c-footer-muted); }
.footer-company strong { color: var(--c-footer-text); font-weight: 600; }
.footer-copy { margin: 0; }
.footer-note { display: block; margin-block-start: 4px; }
@media (min-width: 880px) {
  .footer-top { grid-template-columns: 0.8fr 2.2fr; gap: 56px; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: end; }
  .footer-copy { text-align: end; }
}

/* ---------- Legal pages ---------- */
.legal-head { padding-block: 48px 24px; background: var(--c-sand); border-block-end: 1px solid var(--c-line); }
.legal-head h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); margin-block: 8px 12px; }
.legal-container { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--c-muted); }
.legal-updated { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }
.notice { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; }
.notice-draft { background: var(--c-draft-bg); color: var(--c-draft-fg); border: 1.5px dashed var(--c-draft-fg); }
.legal-body { padding-block: 32px 64px; }
.toc { margin-block-end: 36px; padding: 20px 24px; background: var(--c-white); border-radius: var(--r); border: 1px solid var(--c-line); }
.toc-title { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; font-size: var(--fs-sm); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.6rem; margin-block: 2em 0.6em; }
.prose h3 { font-size: 1.2rem; margin-block: 1.6em 0.5em; }
.prose li { margin-block-end: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1em 1.5em; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 12px; border-block-end: 1px solid var(--c-line); }
.prose th { background: var(--c-sand); }
.prose blockquote, .prose .callout { margin: 1.5em 0; padding: 16px 20px; background: var(--c-peach); border-radius: var(--r-sm); border-inline-start: 4px solid var(--c-coral-ink); }
.legal-foot { max-width: var(--measure); margin-block-start: 56px; padding-block-start: 24px; border-block-start: 1px solid var(--c-line); color: var(--c-muted); font-size: var(--fs-sm); }
.legal-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal-index a { display: block; padding: 16px 20px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; color: var(--c-navy); }
.legal-index a:hover { border-color: var(--c-navy); }

/* ---------- Reveal on scroll (JS adds .js; without JS everything is visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none; }
  body { background: #fff; }
}
