/* =====================================================================
   KAIRION — Brand system + site styles
   Light theme · modern corporate-tech
   ---------------------------------------------------------------------
   1. Brand tokens (CSS custom properties)
   2. Reset & base
   3. Layout primitives
   4. Buttons & shared UI
   5. Header / nav
   6. Sections (hero, services, about, approach, why, testimonials, contact)
   7. Footer
   8. Reveal animations & motion
   9. Responsive
   ===================================================================== */

/* ---------- 1. BRAND TOKENS ---------- */
:root {
  /* Palette — light base */
  --bg:          #ffffff;
  --bg-alt:      #f8fafc;   /* slate-50  */
  --bg-alt-2:    #f1f5f9;   /* slate-100 */

  /* Ink / text — slate scale */
  --ink:         #0f172a;   /* slate-900 (deep navy) */
  --text:        #1e293b;   /* slate-800 */
  --muted:       #64748b;   /* slate-500 */
  --border:      #e2e8f0;   /* slate-200 */

  /* Accents */
  --primary:      #4f46e5;  /* indigo-600 */
  --primary-dark: #4338ca;  /* indigo-700 */
  --primary-light:#6366f1;  /* indigo-500 */
  --secondary:    #06b6d4;  /* cyan-500   */
  --primary-tint: #eef2ff;  /* indigo-50  */

  /* Brand gradient */
  --grad: linear-gradient(135deg, var(--primary), var(--secondary));

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero:  clamp(2.4rem, 5vw + 1rem, 4.2rem);
  --fs-h2:    clamp(1.9rem, 3vw + .6rem, 2.8rem);
  --fs-h3:    1.2rem;
  --fs-lead:  clamp(1.05rem, 1vw + .8rem, 1.28rem);
  --fs-body:  1rem;
  --fs-small: .875rem;

  /* Spacing scale (4px base) */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-6: 1.5rem;  --sp-8: 2rem;   --sp-12: 3rem;  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm: 8px;  --r: 14px;  --r-lg: 22px;  --r-pill: 999px;

  /* Shadow (indigo-tinted, layered) */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow:    0 4px 12px rgba(15,23,42,.06), 0 12px 28px rgba(79,70,229,.07);
  --shadow-lg: 0 12px 24px rgba(15,23,42,.08), 0 30px 60px rgba(79,70,229,.12);
  --shadow-header: 0 1px 0 rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);

  --container: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }

.section { padding-block: var(--sp-24); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto var(--sp-12); text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-sub { color: var(--muted); font-size: var(--fs-lead); margin-top: var(--sp-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--sp-3);
}
.eyebrow-light { color: #a5b4fc; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.grid { display: grid; gap: var(--sp-6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-8);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  --btn-bg: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(79,70,229,.38); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary-light); color: var(--primary); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-header); border-bottom-color: var(--border); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { border-radius: 11px; }
.brand-word { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); }
.brand-accent { color: var(--primary); }

.nav { display: flex; align-items: center; gap: var(--sp-8); }
.nav ul { display: flex; align-items: center; gap: var(--sp-6); list-style: none; padding: 0; }
.nav a { font-weight: 500; color: var(--text); font-size: .96rem; position: relative; padding: .25rem 0; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s var(--ease);
}
.nav ul a:hover { color: var(--ink); }
.nav ul a:hover::after { width: 100%; }

/* Compact, better-proportioned header CTA */
.nav-cta { flex: none; padding: .7rem 1.5rem; font-size: .9rem; box-shadow: 0 6px 16px rgba(79,70,229,.24); }
.nav-cta:hover { transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: var(--r-sm);
}
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--sp-24) var(--sp-16); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(50% 60% at 10% 20%, rgba(6,182,212,.12), transparent 60%),
    linear-gradient(180deg, var(--primary-tint), var(--bg) 55%);
}
/* subtle grid overlay */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--sp-16); }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.03em; }
.hero .lead { font-size: var(--fs-lead); color: var(--muted); margin-top: var(--sp-6); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 0 rgba(6,182,212,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(6,182,212,.5);} 70% { box-shadow: 0 0 0 8px rgba(6,182,212,0);} 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0);} }

.hero-badges { list-style: none; padding: 0; margin-top: var(--sp-8); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
.hero-badges li { font-size: var(--fs-small); font-weight: 500; color: var(--text); background: #fff; border: 1px solid var(--border); padding: .4rem .8rem; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 60px rgba(79,70,229,.16)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

.hero-glass {
  position: absolute; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--r);
  padding: .6rem .9rem; font-size: var(--fs-small); font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: .5rem;
}
.hero-glass-1 { top: 12%; left: -4%; animation: float 6s ease-in-out infinite; }
.hero-glass-2 { bottom: 14%; right: -2%; animation: float 8s ease-in-out infinite .4s; }
.hero-glass-2 strong { color: var(--primary); font-size: 1.05rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

/* Trust strip */
.trust { border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust-inner { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-4) var(--sp-8); padding-block: var(--sp-6); }
.trust-inner > span { color: var(--muted); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.trust ul { display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-8); list-style: none; padding: 0; }
.trust li { color: var(--ink); font-weight: 700; opacity: .55; letter-spacing: -.01em; }

/* Services */
.service-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r);
  background: var(--primary-tint); color: var(--primary); margin-bottom: var(--sp-2);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.service-card:hover .service-icon { background: var(--grad); color: #fff; }
.service-card h3 { font-size: var(--fs-h3); }
.service-card p { color: var(--muted); font-size: .96rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 3/2; width: 100%; }
.about-badge {
  position: absolute; bottom: -20px; right: -12px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow); padding: .8rem 1rem; display: flex; flex-direction: column;
}
.about-badge strong { color: var(--primary); font-size: 1.4rem; }
.about-badge span { font-size: var(--fs-small); color: var(--muted); }
.about-copy h2 { font-size: var(--fs-h2); }
.about-copy p { color: var(--muted); margin-top: var(--sp-4); }
.mission { background: var(--primary-tint); border-left: 3px solid var(--primary); border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-6); color: var(--text) !important; }
.mission-label { display: block; font-weight: 700; color: var(--primary); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.about-copy .btn { margin-top: var(--sp-6); }

/* Stat band */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6);
  margin-top: var(--sp-16); padding: var(--sp-8); border-radius: var(--r-lg);
  background: var(--grad); box-shadow: var(--shadow-lg); color: #fff;
}
.stat { text-align: center; }
.stat-num { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.stat dd { font-size: var(--fs-small); opacity: .9; margin-top: .25rem; }

/* Approach */
.approach-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); counter-reset: step; }
.approach-step { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-sm); }
.approach-step h3 { font-size: var(--fs-h3); margin-top: var(--sp-3); }
.approach-step p { color: var(--muted); font-size: .95rem; margin-top: var(--sp-2); }
.step-num { font-size: 1.1rem; font-weight: 800; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
/* connector line on desktop */
.approach-step::after {
  content: ""; position: absolute; top: 44px; right: -20px; width: 20px; height: 2px; background: var(--border);
}
.approach-step:last-child::after { display: none; }

/* Why (dark band) */
.section-dark { background: var(--ink); color: #cbd5e1; }
.section-sub-light { color: #94a3b8; }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--sp-16); align-items: center; }
.why-head h2 { color: #fff; font-size: var(--fs-h2); }
.why-head .btn { margin-top: var(--sp-6); }
.why-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.why-list li { display: flex; gap: var(--sp-3); }
.why-list h3 { color: #fff; font-size: 1.05rem; }
.why-list p { color: #94a3b8; font-size: .92rem; margin-top: .2rem; }
.why-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 700; }

/* Testimonials */
.quote-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { color: #f59e0b; letter-spacing: 2px; }
.quote-card blockquote { font-size: 1.02rem; color: var(--text); }
.quote-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-author strong { display: block; color: var(--ink); font-size: .95rem; }
.quote-author small { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start; }
.contact-copy h2 { font-size: var(--fs-h2); }
.contact-details { list-style: none; padding: 0; margin-top: var(--sp-8); display: grid; gap: var(--sp-4); }
.contact-details li { display: flex; align-items: center; gap: var(--sp-3); }
.contact-details a:hover { color: var(--primary); }
.contact-details address { font-style: normal; }
.ci { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--primary-tint); color: var(--primary); }
.map-wrap { margin-top: var(--sp-8); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

.contact-form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; background: #fef2f2; }
.error { color: #dc2626; font-size: var(--fs-small); min-height: 0; }
.form-note { color: var(--muted); font-size: var(--fs-small); text-align: center; }
.form-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: var(--r-sm); padding: .8rem 1rem; font-weight: 600; text-align: center; }

/* ---------- 7. FOOTER ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: var(--sp-16); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-8); padding-bottom: var(--sp-12); }
.footer-brand p { color: var(--muted); margin-top: var(--sp-3); max-width: 34ch; font-size: .95rem; }
.footer-col h4 { font-size: .95rem; margin-bottom: var(--sp-4); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.footer-col a, .footer-col address { color: var(--muted); font-size: .95rem; font-style: normal; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); padding-block: var(--sp-6); border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-small); }

/* ---------- 8. REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-visual img, .hero-glass, .pulse-dot { animation: none !important; }
}

/* ---------- 9. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .approach-step::after { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .grid-3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: var(--sp-4); background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
    padding: var(--sp-6); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .35s var(--ease); pointer-events: none;
  }
  .nav.open { transform: translateY(0); pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
  .nav ul li a { display: block; padding: .6rem .25rem; font-size: 1.05rem; }
  .nav .nav-cta { text-align: center; margin-top: var(--sp-2); }
  .hamburger { display: flex; }

  .stat-band { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8) var(--sp-4); }
  .why-list { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-16); }
  .hero { padding-block: var(--sp-12) var(--sp-12); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-glass-1 { left: 0; }
  .hero-glass-2 { right: 0; }
}

/* ---------- 10. CONTACT CONSENT CHECKBOX ---------- */
.field-check { display: flex; gap: .6rem; align-items: flex-start; }
.field-check input[type="checkbox"] {
  margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--primary); cursor: pointer;
}
.field-check label { font-weight: 400; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.field-check a { color: var(--primary); text-decoration: underline; }

/* ---------- 11. LEGAL PAGES (Privacy / Terms / SMS) ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--primary-tint), var(--bg));
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-16) var(--sp-12);
}
.legal-hero .container { max-width: 840px; }
.legal-hero h1 { font-size: var(--fs-h2); }
.legal-hero .lead { color: var(--muted); font-size: var(--fs-lead); margin-top: var(--sp-3); }
.legal-updated {
  display: inline-block; margin-top: var(--sp-6); font-size: var(--fs-small); font-weight: 600;
  color: var(--primary); background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: .4rem .95rem;
}
.legal { padding-block: var(--sp-16); }
.legal .container { max-width: 840px; }

.legal-toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r); padding: var(--sp-6); margin-bottom: var(--sp-12); }
.legal-toc h2 { margin: 0 0 var(--sp-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; gap: var(--sp-6); }
.legal-toc li { margin-bottom: .4rem; break-inside: avoid; }
.legal-toc a { color: var(--primary); font-size: .95rem; }
.legal-toc a:hover { text-decoration: underline; }

.legal h2 { font-size: 1.35rem; margin-top: var(--sp-12); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body > h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: var(--sp-6); }
.legal p { margin-top: var(--sp-4); color: var(--text); }
.legal ul, .legal ol.legal-list { margin-top: var(--sp-4); padding-left: 1.4rem; display: grid; gap: .55rem; }
.legal li { color: var(--text); }
.legal a { color: var(--primary); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal address { font-style: normal; }

.legal .callout {
  background: var(--primary-tint); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--r-sm); padding: var(--sp-6); margin-top: var(--sp-6);
}
.legal .callout p:first-child { margin-top: 0; }
.legal .callout strong { color: var(--ink); }

@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
