/* GuaSend premium fintech design system */
:root {
  --purple: #43007a;
  --purple-deep: #2a004d;
  --purple-mid: #5a1a96;
  --purple-soft: rgba(67, 0, 122, 0.08);
  --purple-glow: rgba(67, 0, 122, 0.22);
  --coral: #fe6d53;
  --coral-soft: rgba(254, 109, 83, 0.14);
  --coral-glow: rgba(254, 109, 83, 0.35);
  --white: #ffffff;
  --bg: #faf9fc;
  --surface: #ffffff;
  --text: #120a1c;
  --text-muted: #5e5670;
  --text-soft: #8a8299;
  --line: rgba(67, 0, 122, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow-xs: 0 2px 8px rgba(42, 0, 77, 0.04);
  --shadow-sm: 0 8px 32px rgba(42, 0, 77, 0.08);
  --shadow-md: 0 20px 60px rgba(42, 0, 77, 0.12);
  --shadow-lg: 0 40px 80px rgba(42, 0, 77, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --illus-radius: 28px;
  --illus-radius-lg: 40px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(4rem, 8vw, 7rem);
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--purple); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--coral); }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: var(--purple-glow);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--coral-soft);
  bottom: 20%;
  left: -100px;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--purple-soft);
  top: 45%;
  right: 10%;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--purple);
  color: var(--white);
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 252, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  margin-right: auto;
}

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

.brand-logo { border-radius: 11px; }

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.site-nav { display: none; align-items: center; gap: 2rem; }

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav a:hover { color: var(--purple); }

.header-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  align-items: stretch;
  gap: 1rem;
}

@media (min-width: 900px) {
  .site-nav.is-open {
    position: static;
    flex-direction: row;
    padding: 0;
    border: none;
    box-shadow: none;
    align-items: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.75rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: var(--white);
  box-shadow: 0 8px 28px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--purple-glow);
  color: var(--white);
}

.btn-accent {
  background: linear-gradient(135deg, var(--coral) 0%, #ff8269 100%);
  color: var(--white);
  box-shadow: 0 8px 28px var(--coral-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--coral-glow);
  color: var(--white);
}

.btn-outline {
  background: var(--surface);
  color: var(--purple);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.btn-lg { min-height: 56px; padding-inline: 2.25rem; font-size: 1rem; }

/* Glass panels */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.hero-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--coral-glow);
}

.gradient-text {
  color: var(--purple);
}

.lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.stat-card {
  flex: 1;
  min-width: 100px;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* 3D illustrations rounded directly on the image */
.illus-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--illus-radius);
  filter: drop-shadow(0 16px 36px rgba(42, 0, 77, 0.14));
}

.illus-img--hero {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  margin-inline: auto;
  border-radius: var(--illus-radius-lg);
}

.illus-img--float {
  position: absolute;
  right: 0;
  bottom: 8%;
  z-index: 3;
  width: min(38%, 180px);
  border-radius: var(--illus-radius);
  animation: float 6s var(--ease) infinite;
}

.illus-img--bento {
  width: min(100%, 340px);
  margin-inline: auto;
  border-radius: var(--illus-radius-lg);
}

.illus-img--section {
  width: 100%;
  border-radius: var(--illus-radius-lg);
}

.illus-img--mission {
  width: min(260px, 100%);
  margin-inline: auto;
  border-radius: var(--illus-radius-lg);
}

.illus-img--wide {
  width: 100%;
  border-radius: var(--illus-radius-lg);
}

.illus-img--trust {
  width: min(220px, 100%);
  margin-inline: auto;
  border-radius: var(--illus-radius-lg);
}

.illus-img--mini {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 88px;
  border-radius: 20px;
  filter: drop-shadow(0 8px 20px rgba(42, 0, 77, 0.12));
}

/* Hero stage */
.hero-stage {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-stage { min-height: 520px; }
}

.stage-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, var(--purple-soft) 0%, transparent 70%);
  border-radius: 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.glass-quote {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  max-width: 260px;
  padding: 1.25rem 1.5rem;
  background: rgba(67, 0, 122, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 24px 24px 24px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

.glass-quote p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

/* Hero pillars row */
.hero-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  list-style: none;
  padding: 2.5rem 0 var(--section-pad);
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-pillars { grid-template-columns: repeat(4, 1fr); }
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: var(--white);
  border-radius: 14px;
}

.pillar-icon--coral {
  background: linear-gradient(145deg, var(--coral) 0%, #ff8269 100%);
}

.pillar-icon svg { width: 22px; height: 22px; }

.pillar-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.pillar-card span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--section-pad);
}

.section-tint {
  background: linear-gradient(180deg, transparent 0%, var(--purple-soft) 50%, transparent 100%);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36ch;
}

.section-head.center { text-align: center; margin-inline: auto; }

.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral);
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Bento ecosystem */
.bento {
  display: grid;
  gap: 1.25rem;
}

.bento-feature {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  position: relative;
  align-items: center;
}

@media (min-width: 768px) {
  .bento-feature {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2.5rem 3rem;
  }
}

.bento-feature h3 {
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.bento-feature p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after { transform: translateX(4px); }

.bento-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

.eco-tile {
  padding: 1.5rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.eco-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.eco-tile--wallet {
  min-height: 140px;
  padding-bottom: 5rem;
}

.eco-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.06em;
}

.eco-tile h3 {
  margin: 0.5rem 0 0.35rem;
  color: var(--purple);
}

.eco-tile p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Split sections */
.split-section {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .split-section--reverse .illus-frame { order: -1; }
}

.illus-frame {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.illus-frame--wide {
  margin-top: 0.5rem;
}

/* Steps */
.steps-premium {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.steps-premium li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.steps-premium li:hover {
  border-color: rgba(67, 0, 122, 0.25);
  box-shadow: var(--shadow-xs);
}

.step-badge {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--white);
  border-radius: 12px;
}

.step-badge--coral { background: var(--coral); }

.steps-premium strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.steps-premium span {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Journey cards */
.journey-cards {
  display: grid;
  gap: 0.875rem;
}

.journey-card {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  align-items: start;
}

.journey-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--white);
  border-radius: 12px;
}

.journey-icon--coral { background: var(--coral); }
.journey-icon svg { width: 22px; height: 22px; }

.journey-card h3 {
  color: var(--purple);
  align-self: end;
}

.journey-card p {
  grid-column: 2;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Mission */
.mission-panel {
  display: grid;
  gap: 2rem;
  padding: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(67, 0, 122, 0.06) 0%, rgba(254, 109, 83, 0.06) 100%);
}

@media (min-width: 768px) {
  .mission-panel {
    grid-template-columns: auto 1fr;
    padding: 3rem 3.5rem;
    gap: 3rem;
  }
}

.mission-visual {
  display: flex;
  justify-content: center;
}

.mission-copy .section-label { margin-bottom: 0.5rem; }

.mission-copy h2 { margin-bottom: 1rem; color: var(--purple); }

.mission-copy p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
}

/* Values layout */
.values-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .values-layout {
    grid-template-columns: 1fr 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
  }
  .impact-panel { grid-column: 2; grid-row: 1 / 3; }
}

.values-panel,
.trust-panel {
  padding: 2rem;
}

.values-premium,
.trust-premium,
.impact-premium {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.values-premium li,
.trust-premium li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.values-premium li:last-child,
.trust-premium li:last-child { border-bottom: none; }

.values-premium strong,
.trust-premium strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.2rem;
}

.values-premium span,
.trust-premium span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.impact-premium li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.impact-premium li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

.trust-illus {
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
}

.trust-panel .section-head { text-align: center; margin-inline: auto; }

/* CTA */
.cta-premium {
  position: relative;
  z-index: 1;
  padding-bottom: var(--section-pad);
}

.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 55%, #5a2088 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--coral-glow) 0%, transparent 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .cta-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-copy h2 {
  color: var(--white);
  max-width: 18ch;
}

.cta-copy p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--purple-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-brand img { border-radius: 10px; }

.footer-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--coral); }

.footer-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-pillars { grid-template-columns: repeat(4, 1fr); }
}

.footer-pillars li {
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main { position: relative; z-index: 1; }

/* Legal / TOS page */
.legal-page .site-nav--legal {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.legal-page .site-nav--legal a[aria-current="page"] {
  color: var(--purple);
  font-weight: 600;
}

.legal-main {
  padding: clamp(2rem, 5vw, 3rem) 0 var(--section-pad);
}

.legal-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr 220px;
  }

  .legal-toc {
    grid-column: 2;
    grid-row: 1 / 3;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .legal-hero,
  .legal-content {
    grid-column: 1;
  }
}

.legal-hero {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.legal-hero h1 {
  margin: 0.5rem 0 0.75rem;
  color: var(--purple);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.legal-intro {
  color: var(--text-muted);
  max-width: 65ch;
  line-height: 1.75;
}

.legal-content {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.legal-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.25rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.legal-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 72ch;
}

.legal-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.legal-section li strong {
  color: var(--text);
}

.legal-ack {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--purple-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--purple);
  max-width: 72ch;
}

.legal-toc {
  padding: 1.25rem 1.5rem;
}

.legal-toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coral);
  margin: 0 0 1rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.875rem;
}

.legal-toc li {
  margin-bottom: 0.5rem;
}

.legal-toc a {
  color: var(--text-muted);
  font-weight: 500;
}

.legal-toc a:hover {
  color: var(--purple);
}

@media (max-width: 1023px) {
  .legal-toc {
    order: -1;
  }
}
