/* =========================================================
   Fuza — landing page stylesheet
   ---------------------------------------------------------
   Peach + orange palette, soft rounded cards, decorative
   leaves/citrus in the hero, dashed connectors in how-it-works.
   Admin-editable content hydrates in at runtime via app.js;
   layout never depends on exact copy so it reflows cleanly.
   ========================================================= */

:root {
  --brand: #ff7a28;
  --brand-dark: #ef6b18;
  --brand-soft: #fff2e5;
  --brand-softer: #fff9f2;
  --peach: #fde9d7;
  --peach-2: #ffe1c1;
  --ink: #121217;
  --ink-2: #1b1b1f;
  --ink-muted: #6b6f79;
  --line: #ececf1;
  --bg: #ffffff;
  --bg-alt: #fafafb;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-card: 0 12px 30px rgba(27, 27, 31, 0.05);
  --shadow-card-hover: 0 18px 40px rgba(255, 122, 40, 0.18);
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-width: 100%;
  overflow-x: hidden; /* kill any sideways scroll that creates phantom gaps */
}
html { height: 100%; }
body { min-height: 100%; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-muted); }

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

.text-brand { color: var(--brand); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-pill { border-radius: 999px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 40, .35);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 245, 235, 0.75);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 82px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

/* When the admin uploads a custom logo (likely a wordmark with brand text
   baked in), we hide the separate .brand-text span and let the image use
   its natural width. Sized generously so the brand reads at a glance.
   `!important` prevents the later `.footer-brand .brand-logo { width: 38px }`
   rule (same specificity) from squashing the footer logo back to 38px. */
.brand-logo.brand-logo--custom,
.site-header .brand-logo.brand-logo--custom,
.footer-brand .brand-logo.brand-logo--custom {
  width: auto !important;
  object-fit: contain;
}
.site-header .brand-logo.brand-logo--custom {
  max-width: 180px !important;
  height: 60px !important;
}
.footer-brand .brand-logo.brand-logo--custom {
  max-width: 180px !important;
  height: 60px !important;
}

/* Give the header extra vertical room so the larger logo sits comfortably
   without crowding the nav. */
.site-header:has(.brand-logo--custom) .nav {
  height: 80px;
}
.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 34px;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  transition: color .2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brand); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 70px;
  background:
    radial-gradient(900px 500px at 8% -10%, #ffe4cc 0%, transparent 60%),
    radial-gradient(900px 500px at 92% 10%, #ffe4cc 0%, transparent 55%),
    linear-gradient(180deg, #fff5ea 0%, #fff9f2 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 30px 0 10px;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  margin-bottom: 18px;
}
.hero-copy h1 .text-brand { display: inline-block; margin-right: 8px; }
.hero-copy p {
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 26px;
  color: #4d4d57;
}
.hero-stores { margin-top: 8px; }

.hero-visual {
  display: grid;
  place-items: center;
}
.hero-visual img {
  width: min(420px, 92%);
  filter: drop-shadow(0 30px 50px rgba(255, 122, 40, .22));
}

/* decorative leaves and citrus */
.hero-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}
.hero-decor--leaf-tr {
  top: -30px;
  right: -20px;
  width: 260px;
  height: 260px;
  background: radial-gradient(closest-side, #8fc96d 0, #a8d884 60%, transparent 62%);
  filter: blur(0.2px);
  transform: rotate(12deg);
  clip-path: polygon(50% 0, 95% 25%, 100% 70%, 60% 100%, 15% 85%, 0 45%, 20% 5%);
}
.hero-decor--leaf-br {
  bottom: -40px;
  right: 10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(closest-side, #a5cf8a 0, #c1dca7 60%, transparent 62%);
  transform: rotate(-22deg);
  clip-path: polygon(50% 0, 95% 25%, 100% 70%, 60% 100%, 15% 85%, 0 45%, 20% 5%);
}
.hero-decor--citrus {
  bottom: -50px;
  left: 38%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, #fff3a3, #fcd55f 55%, #e8a30a 70%);
  box-shadow: 0 20px 40px rgba(232, 163, 10, .2);
}

/* ---------- store badges ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #1b1b1f;
  color: #fff;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small {
  font-size: 10.5px;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.store-badge strong { font-size: 14.5px; }

/* ---------- eyebrow / section heading ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.eyebrow h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  white-space: normal;
  text-align: center;
}
.eyebrow .rule {
  flex: 0 1 110px;
  height: 1px;
  background: linear-gradient(to right, transparent, #cfcfd4 40%, #cfcfd4 60%, transparent);
}
.eyebrow-sub {
  text-align: center;
  margin: 0 auto 40px;
  color: var(--ink-muted);
  max-width: 620px;
  font-size: 15px;
}

/* ---------- hero secondary link ---------- */
.hero-secondary {
  margin: -6px 0 18px;
  font-size: 14.5px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-secondary a {
  color: var(--brand);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 122, 40, .5);
  padding-bottom: 2px;
}
.hero-secondary a:hover { border-bottom-style: solid; }
.hero-secondary span { color: var(--brand); font-weight: 700; }

/* ---------- ABOUT ---------- */
.about-section {
  padding: 60px 0 20px;
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.about-visual img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  aspect-ratio: 5 / 4;
  margin: 0 auto;
  display: block;
}
.about-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.01em;
}
.about-copy p {
  font-size: 16px;
  max-width: 54ch;
  color: var(--ink-muted);
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .about-copy p { margin-left: auto; margin-right: auto; }
}

/* ---------- footer tagline ---------- */
.footer-tagline {
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  margin: 8px 0 4px;
}

/* ---------- WHY CHOOSE ---------- */
.why {
  padding: 80px 0 40px;
  background: #fff;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.why-grid .why-card:nth-child(4),
.why-grid .why-card:nth-child(5) {
  grid-column: span 1;
}
/* Second row — remaining cards centered regardless of count. */
.why-row2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 24px auto 0;
  max-width: 820px;
}
.why-row2 .why-card {
  flex: 1 1 240px;
  max-width: 260px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 4px auto 16px;
}
.why-icon svg { width: 30px; height: 30px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { font-size: 14px; margin: 0; color: var(--ink-muted); }

/* ---------- FEATURES ---------- */
.features {
  padding: 80px 0;
  background: #fff;
}
.features-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: flex-start;
}
.feature-tile {
  text-align: center;
  padding: 10px;
}
.feature-tile h3 {
  font-size: 15px;
  margin: 14px 0 6px;
}
.feature-tile p {
  font-size: 13px;
  margin: 0;
  color: var(--ink-muted);
}
.feature-illu {
  width: 86px;
  height: 86px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.feature-illu--pin      { background-image: url("assets/illu-pin.svg"); }
.feature-illu--card     { background-image: url("assets/illu-card.svg"); }
.feature-illu--discount { background-image: url("assets/illu-discount.svg"); }
.feature-illu--folder   { background-image: url("assets/illu-folder.svg"); }
.feature-illu--lang     { background-image: url("assets/illu-lang.svg"); }

/* ---------- HOW IT WORKS ---------- */
.how {
  padding: 80px 0;
  background: #fff;
}
.steps-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  padding-top: 20px;
}
.step {
  position: relative;
  text-align: center;
}
.step:nth-child(1) { transform: translateY(40px); }
.step:nth-child(2) { transform: translateY(0); }
.step:nth-child(3) { transform: translateY(40px); }

.step-art {
  width: 170px;
  height: 170px;
  margin: 0 auto 18px;
  background: var(--brand-softer);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(255, 122, 40, .12);
  overflow: hidden;
}
.step-art img, .step-art svg { width: 80%; height: 80%; object-fit: contain; }

.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p  { font-size: 14px; margin: 0 auto; max-width: 22ch; color: var(--ink-muted); }

/* dashed connectors between steps (drawn with SVG backgrounds) */
.step::after {
  content: "";
  position: absolute;
  top: 80px;
  right: -40%;
  width: 80%;
  height: 60px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}
.step:nth-child(1)::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 60' fill='none'><path d='M0 50 C 70 50, 90 10, 220 10' stroke='%23ff9b57' stroke-width='2' stroke-dasharray='4 6' stroke-linecap='round'/></svg>");
}
.step:nth-child(2)::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 60' fill='none'><path d='M0 10 C 130 10, 150 50, 220 50' stroke='%23ff9b57' stroke-width='2' stroke-dasharray='4 6' stroke-linecap='round'/></svg>");
}
.step:nth-child(3)::after { display: none; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 40px 0 90px;
  background: #fff;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(27, 27, 31, .08);
}
.testimonial-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFD27A;
  color: #6a4a1a;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 800; font-size: 15px; }
.testimonial-role { font-size: 12.5px; color: var(--ink-muted); margin-top: 1px; }
.stars { display: flex; gap: 2px; margin-top: 4px; }
.stars svg { width: 14px; height: 14px; fill: #F7B500; }
.stars .star-off { fill: #E3E3E7; }
.testimonial-quote { font-size: 14.5px; color: #3f3f47; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  padding: 50px 0;
}
.cta-grid {
  background:
    radial-gradient(600px 300px at 0% 0%, #ffe4cc, transparent 70%),
    linear-gradient(135deg, #ffeeda 0%, #fff4e6 100%);
  border-radius: 26px;
  padding: 40px 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(255, 122, 40, .1);
}
.cta-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}
.cta-copy p { max-width: 50ch; font-size: 15px; color: #4d4d57; }
.cta-visual img {
  width: min(320px, 100%);
  margin-left: auto;
  filter: drop-shadow(0 20px 30px rgba(255, 122, 40, .2));
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #f3f4f6;
  color: #3f3f47;
  padding: 56px 0 0;
  margin-top: 20px;
}
.site-footer h4 {
  color: #1b1b1f;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 32px;
}
.footer-brand .brand-logo { height: 38px; width: 38px; }
.footer-brand .brand-text { font-size: 18px; }
.footer-brand p {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 14px;
  color: #5b5b64;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #4a4a52; transition: color .2s ease; font-size: 14px; }
.footer-col a:hover { color: var(--brand); }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.contact-list .ico {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}
.ico-pin   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 7-8 12-8 12s-8-5-8-12a8 8 0 0 1 16 0z'/><circle cx='12' cy='10' r='3'/></svg>"); }
.ico-mail  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></svg>"); }
.ico-phone { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3.1-8.7A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.7a16 16 0 0 0 6 6l1.1-1.1a2 2 0 0 1 2.1-.5c.9.4 1.9.6 2.8.7a2 2 0 0 1 1.7 2z'/></svg>"); }

.social-list {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.social-list a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #5b5b64;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.social-list a:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.social-list svg { width: 15px; height: 15px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid #e4e5ea;
  padding: 18px 0;
  background: #f3f4f6;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #6b6b73;
  font-size: 12.5px;
}
.footer-bottom-inner .legal a { color: #6b6b73; }
.footer-bottom-inner .legal a:hover { color: var(--brand); }
.footer-bottom-inner .legal span { margin: 0 8px; color: #bdbdc3; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .features-row { grid-template-columns: repeat(3, 1fr); }
  .features-row .feature-tile:nth-child(4),
  .features-row .feature-tile:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 82px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }

  .hero { padding-bottom: 40px; }
  .hero-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-visual { order: -1; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .store-badges, .hero-stores { justify-content: center; }

  .why-grid,
  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-flow {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .step { transform: none !important; }
  .step::after { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .cta-grid { padding: 30px 24px; }
  .cta-visual img { margin: 0 auto; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .why-grid, .features-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; }
  .eyebrow .rule { flex-basis: 40px; }
  .hero-copy h1 { font-size: 30px; }
  .store-badges { gap: 10px; }
  .store-badge { padding: 8px 14px; }
}

/* =========================================================
   LEGAL PAGES (privacy-policy.html, terms.html)
   ---------------------------------------------------------
   A stripped-down article layout that shares the main
   header + footer with index.html. Content is injected as
   HTML (from `settings/constant.privacyPolicy` /
   `settings/constant.termsAndConditions`) so the admin can
   format with headings, lists, bold, links, etc. via the
   rich-text editor in Policy Settings.
   ========================================================= */

/* Legal hero + body span the full viewport edge-to-edge so there are
   never phantom white gaps on the left/right of the page. */
.legal-hero,
.legal-body {
  width: 100%;
  margin: 0;
}
.legal-hero {
  padding: 40px 0 28px; /* tighter top padding so the page sits flush under the header */
  background:
    radial-gradient(900px 400px at 10% 0%, #ffe4cc 0%, transparent 55%),
    linear-gradient(180deg, #fff5ea 0%, #fff9f2 100%);
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 10px;
}
.legal-hero p {
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0;
}
.legal-crumbs {
  display: inline-flex;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.legal-crumbs a {
  color: var(--brand);
  font-weight: 600;
}
.legal-crumbs span { color: #bdbdc3; }

.legal-body {
  padding: 32px 0 60px;
  background: #fff;
}
.legal-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.75;
}
.legal-article h2 {
  font-size: 22px;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.legal-article h2:first-child { margin-top: 0; }
.legal-article h3 {
  font-size: 17px;
  margin: 22px 0 8px;
}
.legal-article p  { margin: 0 0 14px; color: #3b3b42; }
.legal-article ul,
.legal-article ol {
  padding-left: 22px;
  margin: 0 0 16px;
  color: #3b3b42;
}
.legal-article li { margin-bottom: 6px; }
.legal-article a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-article a:hover { color: var(--brand-dark); }
.legal-article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.legal-article blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  background: var(--brand-softer);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  color: #3b3b42;
}
.legal-article code {
  background: #f3f3f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
}

/* placeholder shown while the document is being fetched */
.legal-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-skeleton div {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f2f2f5 0%, #e8e8ec 50%, #f2f2f5 100%);
  background-size: 200% 100%;
  animation: legal-shimmer 1.4s infinite linear;
}
.legal-skeleton div:nth-child(1) { width: 40%; height: 22px; }
.legal-skeleton div:nth-child(2) { width: 95%; }
.legal-skeleton div:nth-child(3) { width: 92%; }
.legal-skeleton div:nth-child(4) { width: 60%; }
.legal-skeleton div:nth-child(5) { width: 98%; margin-top: 14px; }
.legal-skeleton div:nth-child(6) { width: 85%; }
@keyframes legal-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* empty-state if the admin hasn't filled the policy yet */
.legal-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--ink-muted);
}
.legal-empty h2 { color: var(--ink); margin-bottom: 8px; font-size: 20px; }

