/* ==========================================================================
   WunderPass landing page
   Colors and type follow the app theme (wunderpass_flutter/lib/core/theme).
   ========================================================================== */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #F1FBF6;
  --bg-deep: #E2F5EB;
  --green: #16955A;
  --green-dark: #0D7A47;
  --green-light: #34C384;
  --green-deepest: #0B6E40;
  --blue: #0A6AE0;
  --ink: #151B26;
  --muted: #5F6C77;
  --chip: #E3F6EC;
  --line: #E4ECE8;
  --card: #FFFFFF;

  --dark-bg: #101614;
  --dark-card: #1A2420;
  --dark-ink: #E7F2EC;
  --dark-muted: #9AABA3;

  --action: linear-gradient(135deg, var(--green-light) 0%, var(--green) 55%, var(--green-deepest) 100%);
  --shadow-soft: 0 6px 18px rgba(13, 122, 71, .08);
  --shadow-lift: 0 24px 60px -12px rgba(13, 80, 50, .25);

  --radius: 24px;
  --radius-sm: 16px;
  --container: 1160px;
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html.lang-pending body { opacity: 0; animation: wp-reveal 0s 1s forwards; }
@keyframes wp-reveal { to { opacity: 1; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 8px; }

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark);
  background: var(--chip);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-dark { background: rgba(63, 208, 143, .14); color: #8FE7B5; }

.text-gradient {
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 14px 26px;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 8px 20px -6px rgba(22, 149, 90, .55); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 26px -6px rgba(22, 149, 90, .6); }

.wordmark { font-weight: 800; letter-spacing: -0.03em; font-size: 24px; line-height: 1; }
.wm-wunder { color: var(--green); }
.wm-pass { color: var(--blue); }

/* Phone frame around the screenshots */
.phone {
  position: relative;
  width: 100%; max-width: 300px;
  aspect-ratio: 571 / 1155;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2A332F, #0C110F);
  box-shadow: var(--shadow-lift), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 38px;
  background: var(--bg);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(241, 251, 246, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(13, 122, 71, .06); background: rgba(241, 251, 246, .9); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--ink); background: rgba(22, 149, 90, .08); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex; padding: 4px; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch button {
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--green); color: #fff; }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.blob-green { width: 520px; height: 520px; right: -80px; top: -60px; background: radial-gradient(circle, #9BE6C1 0%, transparent 70%); }
.blob-blue { width: 460px; height: 460px; right: 260px; bottom: -160px; background: radial-gradient(circle, #A9C9FF 0%, transparent 70%); }

.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }

.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin-bottom: 32px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 176px;
  padding: 10px 20px 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: 14px; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(21, 27, 38, .6);
  transition: transform .2s, box-shadow .2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(21, 27, 38, .65); }
.store-btn[aria-disabled="true"] { cursor: default; }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: .02em; text-transform: uppercase; }
.store-btn strong { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.store-btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }

.hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hero-points svg {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--chip); stroke: var(--green); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

.hero-visual { position: relative; height: 620px; }
.hero-visual .phone { position: absolute; width: 290px; }
.phone-front { right: 6%; top: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.phone-back { right: 46%; top: 70px; z-index: 1; transform: rotate(-7deg); opacity: .96; animation: float-back 8s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-back { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(10px); } }

.float-chip {
  text-align: left;
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  box-shadow: 0 18px 40px -14px rgba(13, 80, 50, .35);
  white-space: nowrap;
}
.float-chip span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.float-chip strong { font-size: 15px; }
.float-chip small { font-size: 13px; color: var(--muted); }
.chip-top { right: -2%; top: 96px; animation: float 6s ease-in-out infinite; }
.chip-bottom { left: 0; bottom: 60px; animation: float 6.5s ease-in-out -2s infinite; }

.chip-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.chip-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip-icon-green { background: var(--action); }
.chip-icon-blue { background: linear-gradient(135deg, #5A9CFF, var(--blue)); }

/* ---------- Sections ---------- */

.section { padding: 112px 0; position: relative; }
.section-tint { background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head.left { text-align: left; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--muted); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature, .privacy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s, box-shadow .3s;
}
.feature:hover, .privacy-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(13, 122, 71, .25); }
.feature h3, .privacy-card h3 { font-size: 20px; font-weight: 700; margin: 20px 0 8px; }
.feature p, .privacy-card p { color: var(--muted); font-size: 16px; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--chip);
}
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.formats {
  margin-top: 36px; text-align: center; font-size: 15px; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
}
.formats > span:first-child { font-weight: 700; color: var(--ink); }

/* Showcase */
.showcase { display: flex; flex-direction: column; gap: 120px; }
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.showcase-row.reverse .showcase-media { order: 2; }
.showcase-media { display: flex; justify-content: center; position: relative; }
.showcase-media::before {
  content: ""; position: absolute; z-index: 0;
  width: 420px; height: 420px; max-width: 100%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 195, 132, .28) 0%, rgba(10, 106, 224, .08) 50%, transparent 70%);
}
.showcase-media .phone { z-index: 1; max-width: 290px; }

.showcase-copy h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.showcase-copy p { font-size: 18px; color: var(--muted); margin-bottom: 26px; max-width: 30em; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 36px; font-weight: 600; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316955A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* How it works */
.how { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.how-media { display: flex; justify-content: center; }
.how-media .phone { max-width: 290px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.step-num {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--action); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 18px -8px rgba(22, 149, 90, .7);
}
.step h3 { font-size: 19px; font-weight: 700; margin: 2px 0 4px; }
.step p { color: var(--muted); font-size: 16px; }

/* Dark mode band */
.section-dark { background: radial-gradient(ellipse at 70% 20%, #1C3D2C 0%, var(--dark-bg) 55%), var(--dark-bg); color: var(--dark-ink); overflow: hidden; }
.dark-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.dark-copy h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.dark-copy p { font-size: 18px; color: var(--dark-muted); max-width: 28em; }

.dark-phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.dark-phones .phone { position: absolute; width: 270px; }
.phone-light { transform: translateX(-38%) rotate(-5deg) scale(.92); opacity: .9; }
.phone-dark { transform: translateX(34%) rotate(4deg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(143, 231, 181, .12); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .2s;
}
.faq-list details[open] { box-shadow: 0 14px 32px -16px rgba(13, 122, 71, .3); }
.faq-list summary {
  list-style: none; cursor: pointer;
  padding: 22px 64px 22px 24px; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316955A' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); }

/* Final CTA */
.cta-section { padding-top: 40px; }
.cta-card {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 72px 32px;
  border-radius: 36px;
  background: var(--action);
  color: #fff;
  box-shadow: 0 30px 70px -24px rgba(13, 122, 71, .55);
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .1);
}
.cta-card::before { width: 420px; height: 420px; right: -120px; top: -180px; }
.cta-card::after { width: 300px; height: 300px; left: -100px; bottom: -160px; background: rgba(10, 106, 224, .25); }
.cta-card > * { position: relative; z-index: 1; }
.cta-icon { margin: 0 auto 24px; border-radius: 22px; box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .35); }
.cta-card h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-card p { font-size: 19px; opacity: .92; margin: 0 auto 32px; max-width: 30em; }
.store-buttons-center { justify-content: center; }

/* Footer */
.site-footer { padding: 64px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.footer-brand .wordmark { font-size: 22px; }
.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.footer-links a:hover { color: var(--green); }
.footer-bottom { padding-top: 24px; color: var(--muted); }
.footer-bottom small { font-size: 14px; }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }

  .hero { padding-top: 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .store-buttons, .hero-points { justify-content: center; }
  .hero-visual { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-visual .phone { width: 260px; }
  .phone-front { right: 8%; }
  .phone-back { right: auto; left: 6%; top: 60px; }

  .feature-grid, .privacy-grid { grid-template-columns: repeat(2, 1fr); }

  .showcase { gap: 88px; }
  .showcase-row, .how, .dark-inner { grid-template-columns: 1fr; gap: 48px; }
  .showcase-row.reverse .showcase-media { order: 0; }
  .showcase-copy, .dark-copy { text-align: center; }
  .showcase-copy p, .dark-copy p { margin-left: auto; margin-right: auto; }
  .check-list { justify-content: center; text-align: left; }
  .how-copy .section-head.left { text-align: center; margin: 0 auto 40px; }
  .steps { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .wordmark { font-size: 21px; }
  .brand img { width: 34px; height: 34px; }
  .header-cta { display: none; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }

  .hero-visual { height: 470px; }
  .hero-visual .phone { width: 210px; border-radius: 36px; padding: 7px; }
  .hero-visual .phone img { border-radius: 30px; }
  .phone-front { right: 2%; }
  .phone-back { left: 2%; top: 48px; }
  .float-chip { padding: 9px 14px 9px 9px; gap: 10px; border-radius: 14px; }
  .chip-icon { width: 34px; height: 34px; border-radius: 10px; }
  .float-chip strong { font-size: 13px; }
  .float-chip small { font-size: 11.5px; }
  .chip-top { right: -2%; top: 40px; }
  .chip-bottom { left: -2%; bottom: 24px; }

  .feature-grid, .privacy-grid { grid-template-columns: 1fr; }
  .store-btn { min-width: 0; flex: 1 1 150px; justify-content: center; padding: 10px 14px 10px 12px; gap: 10px; }
  .store-btn strong { font-size: 16px; }

  .dark-phones { min-height: 440px; }
  .dark-phones .phone { width: 200px; border-radius: 36px; padding: 7px; }
  .dark-phones .phone img { border-radius: 30px; }

  .cta-card { padding: 56px 22px; border-radius: 28px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .phone-back { transform: rotate(-7deg); }
  .js .reveal { opacity: 1; transform: none; }
  html.lang-pending body { animation: wp-reveal 0s 1s forwards !important; }
}

/* ==========================================================================
   Legal pages (privacy.html, terms.html)
   Both language versions are in the page; the one matching <html lang> shows.
   ========================================================================== */

.legal-doc[lang="en"] { display: none; }
html[lang="en"] .legal-doc[lang="en"] { display: block; }
html[lang="en"] .legal-doc[lang="hu"] { display: none; }

.back-link {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.back-link:hover { color: var(--ink); background: rgba(22, 149, 90, .08); }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.legal { padding: 48px 0 96px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); }
.legal .container { max-width: 860px; }

.legal-doc { font-size: 16.5px; line-height: 1.7; color: #2B3440; }
.legal-doc h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 10px; }
.legal-meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.legal-doc h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 52px 0 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-doc h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 30px 0 8px; }
.legal-doc p + p, .legal-doc p + ul, .legal-doc ul + p, .legal-doc dl + p { margin-top: 12px; }
.legal-doc ul { padding-left: 22px; margin: 10px 0 0; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc a { color: var(--green-dark); text-underline-offset: 3px; }
.legal-doc strong { color: var(--ink); }

.legal-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 26px 28px; margin: 0 0 8px;
}
.legal-box h2 { margin-top: 0; font-size: 20px; }
.legal-box ul { margin-top: 4px; }
.legal-box h3 { margin-top: 0; }
.legal-box-spaced { margin: 24px 0; border-color: rgba(22, 149, 90, .35); }

.legal-toc { columns: 2; column-gap: 32px; padding-left: 22px; margin: 0; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { text-decoration: none; font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }

.facts {
  display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px;
  margin: 14px 0 0; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15.5px;
}
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }

.legal-contact { margin-top: 10px; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* Placeholders that must be filled in before publishing. */
.todo { background: #FFF1B8; color: #6B4E00; font-weight: 600; padding: 0 5px; border-radius: 5px; }

@media (max-width: 640px) {
  .legal { padding-top: 28px; }
  .legal-toc { columns: 1; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd + dt { margin-top: 10px; }
  .legal-box { padding: 22px 20px; }
  .back-link span { display: none; }
}
