/* =========================================================
   Segretaria Ahsen — app information site
   Design system aligned with ahsen-studio.netlify.app
   ========================================================= */

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

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-soft: #0f0f13;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .085);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #7c7c86;
  --border: rgba(255, 255, 255, .075);
  --border-strong: rgba(255, 255, 255, .14);
  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --accent-deep: #6d28d9;
  --accent-soft: rgba(139, 92, 246, .12);
  --accent-text: #c4b5fd;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --header-bg: rgba(9, 9, 11, .78);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, .24);
  --container: 1140px;
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --surface: rgba(0, 0, 0, .025);
  --surface-2: rgba(0, 0, 0, .045);
  --surface-3: rgba(0, 0, 0, .065);
  --text: #09090b;
  --text-secondary: #52525b;
  --text-tertiary: #71717a;
  --border: rgba(0, 0, 0, .08);
  --border-strong: rgba(0, 0, 0, .14);
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-deep: #5b21b6;
  --accent-soft: rgba(124, 58, 237, .075);
  --accent-text: #5b21b6;
  --header-bg: rgba(255, 255, 255, .82);
  --shadow: 0 30px 80px rgba(20, 20, 30, .12);
  --shadow-soft: 0 12px 36px rgba(20, 20, 30, .07);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 86% -8%, rgba(139, 92, 246, .22), transparent 62%),
    radial-gradient(760px 540px at -5% 18%, rgba(59, 130, 246, .10), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .72), transparent 74%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .72), transparent 74%);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(900px 620px at 86% -8%, rgba(124, 58, 237, .10), transparent 62%),
    radial-gradient(760px 540px at -5% 18%, rgba(59, 130, 246, .06), transparent 60%),
    var(--bg);
}

html[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }

::selection {
  background: rgba(139, 92, 246, .35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

.nav {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 24px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-radius: 12px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 55%, #5b21b6 100%);
  box-shadow: 0 10px 26px rgba(109, 40, 217, .34), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.04);
  box-shadow: 0 14px 32px rgba(109, 40, 217, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.brand-copy { min-width: 0; }
.brand-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .icon-sun { display: none; }
html[data-theme="light"] .icon-btn .icon-sun { display: block; }
html[data-theme="light"] .icon-btn .icon-moon { display: none; }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  list-style: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 18px; height: 18px; }
.mobile-panel {
  position: absolute;
  top: 48px;
  right: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}
.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}
.mobile-panel a:hover { background: var(--surface); color: var(--text); }

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

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 52%, #6d28d9 100%);
  box-shadow: 0 10px 30px rgba(109, 40, 217, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(109, 40, 217, .4), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(139, 92, 246, .45);
}
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 13px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .10);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .10); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, .03); }
}

.gradient-text {
  background: linear-gradient(112deg, #c4b5fd 0%, #8b5cf6 48%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .gradient-text {
  background: linear-gradient(112deg, #6d28d9 0%, #7c3aed 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 78px 24px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 52px;
  align-items: center;
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.65rem, 6vw, 5.05rem);
  font-weight: 750;
  line-height: .98;
  letter-spacing: -.06em;
}
.hero h1 .line { display: block; }

.lede {
  max-width: 590px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions-center {
  justify-content: center;
  margin-top: 22px;
}

.creator-note {
  margin: 22px 0 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}
.creator-note strong { color: var(--text-secondary); font-weight: 600; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 26px;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.4;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 14px; height: 14px; color: var(--accent-text); }

.hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: 5% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .32), transparent 66%);
  filter: blur(28px);
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}
html[data-theme="light"] .glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.mock {
  width: min(100%, 378px);
  padding: 18px;
  transform: rotate(-1.4deg);
  transition: transform .45s var(--ease);
}
.mock:hover { transform: rotate(0deg) translateY(-4px); }

.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mock-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #312e81, #8b5cf6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.mock-person { min-width: 0; flex: 1; }
.mock-name {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}
.mock-sub {
  display: block;
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.3;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(251, 191, 36, .22);
  border-radius: 999px;
  background: rgba(251, 191, 36, .08);
  color: var(--warning);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.mock-body {
  padding: 16px 0 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.62;
}
.mock-quote {
  margin: 9px 0 0;
  padding: 11px 12px;
  border-left: 2px solid rgba(139, 92, 246, .55);
  border-radius: 0 10px 10px 0;
  background: rgba(139, 92, 246, .06);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
}
.mock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.pill-primary {
  border-color: rgba(139, 92, 246, .26);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.pill svg { width: 12px; height: 12px; }
.mock-note {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 10px;
}

.mini-card {
  position: absolute;
  right: -6px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 205px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
  transform: rotate(1.8deg);
  transition: transform .45s var(--ease);
}
.mock:hover + .mini-card, .hero-visual:hover .mini-card { transform: rotate(0deg) translateY(-3px); }
.mini-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(52, 211, 153, .10);
  color: var(--success);
}
.mini-icon svg { width: 15px; height: 15px; }
.mini-title { display: block; font-size: 11.5px; font-weight: 650; line-height: 1.3; }
.mini-sub { display: block; margin-top: 2px; color: var(--text-tertiary); font-size: 10px; line-height: 1.3; }

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

.section {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 64px 24px;
}

.section-head { max-width: 660px; margin-bottom: 30px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  font-weight: 730;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.feature {
  padding: 21px 19px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s ease, background .3s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, .28);
  background: var(--surface-2);
}
.icon-box {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(139, 92, 246, .18);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.icon-box svg { width: 18px; height: 18px; }
.feature h3 {
  margin: 0 0 7px;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.62;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.step-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(139, 92, 246, .24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
}
.step h3 {
  margin: 0 0 7px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.62;
}
.step a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(139, 92, 246, .10), transparent 65%),
    var(--surface);
}
.split h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
.split p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}
.check-list svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--success);
}
.check-list strong { color: var(--text); font-weight: 600; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(139, 92, 246, .20);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.6;
}
.callout svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }
.callout-spaced { margin-top: 22px; }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  padding: 17px 34px 17px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s ease, color .2s ease;
}
.faq details[open] summary::after { content: "−"; color: var(--accent-text); }
.faq details p {
  margin: 0;
  padding: 0 34px 18px 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
}
.faq details a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */

.legal-hero {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 64px 24px 20px;
}
.legal-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.legal-hero .lede { max-width: 700px; font-size: 15px; }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}
.chip svg { width: 12px; height: 12px; color: var(--accent-text); }

.legal-layout {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 26px 24px 84px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.legal-toc strong {
  display: block;
  margin: 0 0 8px;
  padding: 0 4px;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-toc a {
  display: block;
  padding: 5px 4px;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.4;
  transition: color .2s ease;
}
.legal-toc a:hover { color: var(--accent-text); }

.legal-body { max-width: 760px; min-width: 0; }
.legal-body .notice {
  margin-bottom: 28px;
  padding: 17px 19px;
  border: 1px solid rgba(139, 92, 246, .22);
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.68;
}
.legal-body .notice strong { color: var(--accent-text); }
.legal-body h2 {
  margin: 42px 0 12px;
  padding-top: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  scroll-margin-top: 100px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  margin: 24px 0 8px;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.4;
}
.legal-body p, .legal-body li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.76;
}
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul { padding-left: 20px; }
.legal-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-body a:hover { color: var(--text); }
.legal-body .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 26px;
}
.legal-body .mini-grid div {
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}
.legal-body .mini-grid strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12.5px;
}
.legal-body .mini-grid span {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.55;
}
.legal-body table {
  width: 100%;
  margin: 18px 0 24px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.legal-body th, .legal-body td {
  padding: 10px 11px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.legal-body th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.legal-body td { color: var(--text-secondary); }
.legal-body .back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  color: var(--text-tertiary);
  font-size: 12px;
  text-decoration: none;
}
.legal-body .back-top:hover { color: var(--accent-text); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 38px 24px 26px;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.6;
}
.footer-cols {
  display: flex;
  gap: 54px;
  flex-wrap: wrap;
}
.footer-col { min-width: 130px; }
.footer-col h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-col a, .footer-col span {
  display: block;
  padding: 3px 0;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.5;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
}
.footer-bottom p { margin: 0; }

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

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 62px;
  }
  .hero-visual { min-height: 330px; }
  .hero-copy { max-width: 760px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  .legal-layout { grid-template-columns: 1fr; gap: 22px; }
  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
  }
  .legal-toc strong { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .nav { min-height: 68px; padding: 0 18px; gap: 10px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 13.5px; white-space: normal; }
  .nav-actions { gap: 7px; }
  .nav-actions .btn { display: none; }
  .container, .hero, .section, .legal-hero, .legal-layout, .footer { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 48px; padding-bottom: 38px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .lede { font-size: 15px; }
  .section { padding-top: 46px; padding-bottom: 46px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .split { padding: 23px 20px; }
  .mini-card { right: 0; bottom: 0; width: 190px; }
  .hero-visual { min-height: 350px; }
  .mock { width: min(100%, 350px); }
  .legal-hero { padding-top: 44px; }
  .legal-layout { padding-top: 20px; padding-bottom: 60px; }
  .legal-body .mini-grid { grid-template-columns: 1fr; }
  .footer-main { gap: 24px; }
  .footer-cols { gap: 32px; }
  .footer-bottom { margin-top: 24px; }
}

@media (max-width: 430px) {
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 7px 12px; font-size: 11.5px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-body table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .legal-toc, .skip-link, .hero-glow, .mini-card, .hero-visual { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .legal-layout { display: block; padding: 0; }
  .legal-body { max-width: none; }
  .legal-body p, .legal-body li { color: #222; }
  .legal-body h2 { page-break-after: avoid; }
  .notice { border: 1px solid #ccc; background: #f7f7f7; }
}
