/* style.css — BridgePoint AI design tokens + component styles */

/* ============ DESIGN TOKENS ============ */
:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — warm sandstone/paper, not sterile white */
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-surface-2: #fdfbf8;
  --color-surface-offset: #f2ede4;
  --color-surface-offset-2: #ebe4d8;
  --color-surface-dynamic: #e3dbcb;
  --color-divider: #e5ded1;
  --color-border: #ddd3c0;

  /* Text — warm charcoal, not pure black */
  --color-text: #241f19;
  --color-text-muted: #6b6357;
  --color-text-faint: #a89f8f;
  --color-text-inverse: #faf7f2;

  /* Primary Accent — deep bridge teal */
  --color-primary: #0e5b58;
  --color-primary-hover: #0a4643;
  --color-primary-active: #073533;
  --color-primary-highlight: #d3e3e0;

  /* Secondary accent — warm sunset terracotta (used sparingly) */
  --color-accent: #c9622f;
  --color-accent-hover: #a94f24;
  --color-accent-active: #863d1b;
  --color-accent-highlight: #f0dccd;

  /* Warning */
  --color-warning: #96591c;
  --color-warning-hover: #714213;
  --color-warning-active: #4b2c0d;
  --color-warning-highlight: #e6d6c2;

  /* Error */
  --color-error: #a13333;
  --color-error-hover: #7d2626;
  --color-error-active: #561a1a;
  --color-error-highlight: #e5cfcb;

  /* Success */
  --color-success: #3f7a4c;
  --color-success-hover: #2c5c37;
  --color-success-active: #1e3f26;
  --color-success-highlight: #d3e2d3;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — warm-toned */
  --shadow-sm: 0 1px 2px oklch(0.25 0.03 60 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.25 0.03 60 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.25 0.03 60 / 0.16);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'General Sans', sans-serif;
  --font-body: 'Satoshi', 'General Sans', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #17140f;
  --color-surface: #1d1a14;
  --color-surface-2: #211d16;
  --color-surface-offset: #251f17;
  --color-surface-offset-2: #2a241a;
  --color-surface-dynamic: #332b1e;
  --color-divider: #2c2620;
  --color-border: #3a3226;
  --color-text: #ece6da;
  --color-text-muted: #a89f8f;
  --color-text-faint: #6b6357;
  --color-text-inverse: #201c15;

  --color-primary: #5fada8;
  --color-primary-hover: #7fc0bb;
  --color-primary-active: #97cdc9;
  --color-primary-highlight: #24403d;

  --color-accent: #e08a52;
  --color-accent-hover: #e89e6d;
  --color-accent-active: #efb388;
  --color-accent-highlight: #4a3220;

  --color-warning: #d29a5c;
  --color-warning-hover: #dcac78;
  --color-warning-active: #e6bd94;
  --color-warning-highlight: #443421;

  --color-error: #d17a7a;
  --color-error-hover: #d99191;
  --color-error-active: #e1a8a8;
  --color-error-highlight: #472a2a;

  --color-success: #82b98d;
  --color-success-hover: #98c7a2;
  --color-success-active: #aed5b7;
  --color-success-highlight: #2a3d2e;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #17140f;
    --color-surface: #1d1a14;
    --color-surface-2: #211d16;
    --color-surface-offset: #251f17;
    --color-surface-offset-2: #2a241a;
    --color-surface-dynamic: #332b1e;
    --color-divider: #2c2620;
    --color-border: #3a3226;
    --color-text: #ece6da;
    --color-text-muted: #a89f8f;
    --color-text-faint: #6b6357;
    --color-text-inverse: #201c15;
    --color-primary: #5fada8;
    --color-primary-hover: #7fc0bb;
    --color-primary-active: #97cdc9;
    --color-primary-highlight: #24403d;
    --color-accent: #e08a52;
    --color-accent-hover: #e89e6d;
    --color-accent-active: #efb388;
    --color-accent-highlight: #4a3220;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  }
}

/* ============ LAYOUT PRIMITIVES ============ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--default {
  max-width: var(--content-default);
}
.container--narrow {
  max-width: var(--content-narrow);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  max-width: 24ch;
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-top: var(--space-4);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.18);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-block {
  width: 100%;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}
.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--color-primary);
}
.brand-name {
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
.nav-desktop a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav-desktop a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
}

.cta-header {
  display: none;
}

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

/* Mobile nav sheet */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}
.mobile-nav-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.mobile-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.mobile-nav-footer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (min-width: 900px) {
  .mobile-nav {
    display: none;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(var(--space-16), 10vw, var(--space-24));
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-20));
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-16);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-text);
  max-width: 13ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero-trust {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
}

.hero-art {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.4;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ PROBLEM SECTION ============ */
.problem {
  background: var(--color-surface-offset);
}

.problem-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-12);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .problem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.problem-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.problem-card svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.problem-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ SERVICES ============ */
.services-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.services-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-12);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-card .service-icon {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.service-stat {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.service-stat strong {
  color: var(--color-accent);
  font-weight: 700;
}
.service-stat a {
  color: var(--color-text-muted);
  text-decoration: underline;
  white-space: nowrap;
}
.service-stat a:hover {
  color: var(--color-accent);
}
.service-stat--inverse {
  border-top-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
}
.service-stat--inverse strong {
  color: var(--color-text-inverse);
}
.service-stat--inverse a {
  color: rgba(255, 255, 255, 0.75);
}
.service-stat--inverse a:hover {
  color: var(--color-text-inverse);
}

/* Feature callout: first service card spans wide */
.service-card--feature {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
}
@media (min-width: 640px) {
  .service-card--feature {
    grid-template-columns: auto 1fr;
  }
}
.service-card--feature .service-icon {
  width: 40px;
  height: 40px;
  color: var(--color-text-inverse);
}
.service-card--feature h3 {
  color: var(--color-text-inverse);
  font-size: var(--text-xl);
}
.service-card--feature p {
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  font-size: var(--text-base);
  max-width: 52ch;
}

/* ============ HOW IT WORKS ============ */
.how {
  background: var(--color-surface-offset);
}

.how-steps {
  margin-top: var(--space-12);
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 800px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-step {
  position: relative;
  padding-top: var(--space-6);
}
.how-step-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary-highlight);
  -webkit-text-stroke: 1.5px var(--color-primary);
  color: transparent;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.how-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.how-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ BENEFITS ============ */
.benefits-grid {
  margin-top: var(--space-12);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-md);
}
.benefit-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.benefit-item span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}

/* ============ CONTACT ============ */
.contact {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  margin-inline: var(--space-5);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
}
@media (min-width: 1280px) {
  .contact {
    margin-inline: auto;
    max-width: var(--content-wide);
  }
}

.contact-inner {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.contact-info .section-eyebrow {
  color: var(--color-accent-hover);
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-inverse);
  max-width: 20ch;
}
.contact-info p {
  margin-top: var(--space-4);
  color: oklch(from var(--color-text-inverse) l c h / 0.82);
  max-width: 42ch;
}

.contact-details {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-details a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: var(--text-base);
}
.contact-details svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-hover);
  flex-shrink: 0;
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  color: var(--color-text);
}

.form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}
@media (min-width: 560px) {
  .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.field .required {
  color: var(--color-accent);
}
.field input,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-base);
  min-height: 44px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-primary);
}
.field-error {
  display: none;
  color: var(--color-error);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--color-error);
}
.field.has-error .field-error {
  display: block;
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-success-highlight);
  color: var(--color-success-active, var(--color-text));
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
}
.form-success.is-visible {
  display: flex;
}
.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 1px;
}

.form-note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============ FOOTER ============ */
.footer {
  padding-block: var(--space-16);
  border-top: 1px solid var(--color-divider);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 800px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.footer-brand .brand {
  margin-bottom: var(--space-3);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 40ch;
}
.footer-nav {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.footer-nav-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-nav-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-nav-col a:hover {
  color: var(--color-text);
}
.footer-bottom {
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
@media (min-width: 800px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ LEGAL PAGES ============ */
.legal-page {
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
}
.legal-page .container {
  max-width: var(--content-default);
}
.legal-page .legal-updated {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}
.legal-page h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}
.legal-page h2:first-of-type {
  margin-top: var(--space-6);
}
.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  line-height: 1.7;
}
.legal-page ul {
  padding-left: 1.25em;
  margin: var(--space-3) 0;
}
.legal-page li {
  margin-bottom: var(--space-2);
}
.legal-page a {
  color: var(--color-accent);
  text-decoration: underline;
}
