/* ============================================================
   SMScribe — Site-Wide Theme
   smscribe.css  |  v1.0
   Import this file on every page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Bricolage+Grotesque:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────── */
:root {

  /* — Brand Blues — */
  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;
  --blue-200:  #bfdbfe;
  --blue-300:  #93c5fd;
  --blue-400:  #60a5fa;
  --blue-500:  #3b82f6;   /* primary action */
  --blue-600:  #2563eb;   /* hover state    */
  --blue-700:  #1d4ed8;
  --blue-800:  #1e40af;
  --blue-900:  #1e3a8a;   /* hero heading   */
  --blue-950:  #172554;   /* deepest navy   */

  /* — Neutrals — */
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1e293b;
  --gray-900:  #0f172a;

  /* — Semantic Aliases — */
  --bg:              var(--white);
  --bg-subtle:       var(--gray-50);
  --bg-raised:       var(--white);
  --surface:         var(--white);
  --surface-hover:   var(--blue-50);

  --border:          var(--gray-200);
  --border-focus:    var(--blue-500);

  --text-primary:    var(--gray-900);
  --text-secondary:  var(--gray-600);
  --text-muted:      var(--gray-400);
  --text-on-dark:    var(--white);

  --accent:          var(--blue-500);
  --accent-hover:    var(--blue-600);
  --accent-dim:      var(--blue-50);
  --accent-border:   var(--blue-200);

  --hero-text:       var(--blue-900);
  --hero-sub:        var(--blue-700);

  --success:  #10b981;
  --warning:  #f59e0b;
  --danger:   #ef4444;

  /* — Typography — */
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Bricolage Grotesque', 'Inter', sans-serif;

  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   3.75rem;    /* 60px */

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --leading-tight:   1.15;
  --leading-snug:    1.375;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  --tracking-tight:  -0.03em;
  --tracking-snug:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-widest:  0.12em;

  /* — Spacing — */
  --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;

  /* — Layout — */
  --max-w-sm:   640px;
  --max-w-md:   768px;
  --max-w-lg:   1024px;
  --max-w-xl:   1280px;
  --max-w-site: 1140px;

  --nav-h:      64px;

  /* — Shape — */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.06);
  --shadow-sm:  0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 6px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:  0 10px 24px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
  --shadow-xl:  0 20px 48px rgba(15,23,42,0.10), 0 8px 16px rgba(15,23,42,0.06);
  --shadow-blue: 0 4px 20px rgba(59,130,246,0.25);

  /* — Transitions — */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  200ms;
  --dur-slow:  300ms;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }


/* ─────────────────────────────────────────
   3. NAVIGATION
   ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w-site);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--blue-900);
  text-decoration: none;
  letter-spacing: var(--tracking-snug);
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--blue-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.active { color: var(--accent); }

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

/* Mobile nav toggle (implement JS as needed) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease);
}


/* ─────────────────────────────────────────
   4. BUTTONS
   ───────────────────────────────────────── */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
  padding: 0.625rem 1.125rem;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primary */
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  box-shadow: var(--shadow-blue);
}

/* Secondary */
.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

/* Sizes */
.btn-sm {
  font-size: var(--text-xs);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: var(--text-base);
  padding: 0.825rem 1.5rem;
  border-radius: var(--radius-lg);
}


/* ─────────────────────────────────────────
   5. HERO SECTION
   ───────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 60%);
  border-bottom: 1px solid var(--border);
  padding: var(--space-24) var(--space-8) var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle waveform grid decoration */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59,130,246,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37,99,235,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  margin-bottom: var(--space-6);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: var(--weight-bold);
  color: var(--blue-900);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-500);
}

.hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Audio wave decoration */
.wave-bar-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: var(--space-12) auto 0;
  height: 40px;
}

.wave-bar {
  width: 3px;
  background: var(--blue-300);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}

.wave-bar:nth-child(1)  { height: 12px; animation-delay: 0s;    }
.wave-bar:nth-child(2)  { height: 22px; animation-delay: 0.1s;  }
.wave-bar:nth-child(3)  { height: 32px; animation-delay: 0.2s;  background: var(--blue-400); }
.wave-bar:nth-child(4)  { height: 38px; animation-delay: 0.3s;  background: var(--blue-500); }
.wave-bar:nth-child(5)  { height: 28px; animation-delay: 0.4s;  background: var(--blue-400); }
.wave-bar:nth-child(6)  { height: 36px; animation-delay: 0.5s;  background: var(--blue-500); }
.wave-bar:nth-child(7)  { height: 40px; animation-delay: 0.35s; background: var(--blue-600); }
.wave-bar:nth-child(8)  { height: 30px; animation-delay: 0.25s; background: var(--blue-500); }
.wave-bar:nth-child(9)  { height: 20px; animation-delay: 0.15s; background: var(--blue-400); }
.wave-bar:nth-child(10) { height: 14px; animation-delay: 0.05s; }
.wave-bar:nth-child(11) { height: 8px;  animation-delay: 0s;    }

@keyframes wave {
  0%, 100% { transform: scaleY(1);    opacity: 0.7; }
  50%       { transform: scaleY(0.4); opacity: 1;   }
}


/* ─────────────────────────────────────────
   6. SECTION LAYOUT
   ───────────────────────────────────────── */
.section {
  padding: var(--space-20) var(--space-8);
}

.section-sm   { padding: var(--space-12) var(--space-8); }
.section-lg   { padding: var(--space-32) var(--space-8); }
.section-gray { background: var(--gray-50); }
.section-blue { background: var(--blue-50); }
.section-dark {
  background: var(--blue-950);
  color: var(--text-on-dark);
}

.container {
  width: 100%;
  max-width: var(--max-w-site);
  margin: 0 auto;
}

.container-sm { max-width: var(--max-w-sm);  }
.container-md { max-width: var(--max-w-md);  }
.container-lg { max-width: var(--max-w-lg);  }

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  color: var(--blue-900);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: var(--leading-relaxed);
}

.section-dark .section-heading { color: var(--white); }
.section-dark .section-sub     { color: var(--blue-200); }
.section-dark .section-label   { color: var(--blue-300); }


/* ─────────────────────────────────────────
   7. CARDS
   ───────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--blue-500);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}


/* ─────────────────────────────────────────
   8. BADGES & TAGS
   ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-blue    { background: var(--blue-50);   color: var(--blue-700);  border: 1px solid var(--blue-200); }
.badge-gray    { background: var(--gray-100);  color: var(--gray-700);  border: 1px solid var(--gray-200); }
.badge-green   { background: #ecfdf5;          color: #065f46;          border: 1px solid #a7f3d0; }


/* ─────────────────────────────────────────
   9. FORMS & INPUTS
   ───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: var(--text-sm);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ─────────────────────────────────────────
   10. DIVIDERS
   ───────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

.divider-blue { border-top-color: var(--blue-200); }


/* ─────────────────────────────────────────
   11. LEGAL PAGE STYLES
   (used on /privacy-policy and /terms)
   ───────────────────────────────────────── */
.legal-hero {
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 70%);
  border-bottom: 1px solid var(--border);
  padding: var(--space-20) var(--space-8) var(--space-16);
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  color: var(--blue-900);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.legal-hero .meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-8) var(--space-24);
}

.legal-intro {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-left: 3px solid var(--blue-500);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-10);
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
}

.legal-section {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}

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

.legal-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--blue-400);
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-section p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-section li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding-left: 1.1rem;
  position: relative;
  line-height: var(--leading-relaxed);
}

.legal-section li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue-400);
  font-weight: var(--weight-bold);
}

.legal-section a {
  color: var(--blue-600);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-200);
  transition: border-color var(--dur-base);
}

.legal-section a:hover { border-bottom-color: var(--blue-500); }

.legal-section strong {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.sms-info-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sms-info-box p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--gray-600);
}


/* ─────────────────────────────────────────
   12. FOOTER
   ───────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-16) var(--space-8) var(--space-8);
}

.footer-grid {
  max-width: var(--max-w-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-8);
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--white);
  text-decoration: none;
  letter-spacing: var(--tracking-snug);
  display: block;
  margin-bottom: var(--space-3);
}

.footer-brand .logo span { color: var(--blue-400); }

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--gray-500);
  max-width: 260px;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--dur-base);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w-site);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--dur-base);
}

.footer-legal a:hover { color: var(--gray-400); }


/* ─────────────────────────────────────────
   13. UTILITIES
   ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }

.w-full { width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ─────────────────────────────────────────
   14. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 0 var(--space-5); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero   { padding: var(--space-16) var(--space-5) var(--space-12); }
  .section { padding: var(--space-12) var(--space-5); }
  .section-lg { padding: var(--space-20) var(--space-5); }

  .legal-hero  { padding: var(--space-12) var(--space-5) var(--space-10); }
  .legal-main  { padding: var(--space-10) var(--space-5) var(--space-16); }

  .footer { padding: var(--space-12) var(--space-5) var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}