/* ==========================================================================
   iMaker Synq - Official Website Design System & Stylesheet
   Modern, Ultra-Premium CSS with Dark/Light Theme Support
   ========================================================================== */

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

/* --- CSS Variables & Theme Tokens --- */
:root {
  /* Brand Palettes */
  --brand-primary: #10b981;
  --brand-primary-rgb: 16, 185, 129;
  --brand-primary-hover: #059669;
  --brand-secondary: #06b6d4;
  --brand-secondary-rgb: 6, 182, 212;
  --brand-accent: #6366f1;
  --brand-accent-rgb: 99, 102, 241;
  --brand-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(99, 102, 241, 0.1) 100%);

  /* Light Theme (Default fallback) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.82);
  --border-color: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-highlight: rgba(16, 185, 129, 0.35);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  --badge-bg: rgba(16, 185, 129, 0.1);
  --badge-text: #059669;
  --badge-border: rgba(16, 185, 129, 0.2);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.18s ease;
  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1240px;
}

/* Dark Theme Variables (Active by default or when data-theme="dark") */
[data-theme="dark"] {
  --bg-page: #080c14;
  --bg-surface: #0e1524;
  --bg-surface-elevated: #151f33;
  --bg-surface-alt: #121a2d;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-glass: rgba(14, 21, 36, 0.85);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-highlight: rgba(16, 185, 129, 0.45);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #080c14;

  --badge-bg: rgba(16, 185, 129, 0.15);
  --badge-text: #34d399;
  --badge-border: rgba(16, 185, 129, 0.3);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.3);
}

/* Base Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glow Orbs */
.bg-ambient-lights {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.blob-1 {
  top: -10%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(6, 182, 212, 0.1) 70%);
}

.blob-2 {
  top: 35%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(16, 185, 129, 0.1) 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.blob-3 {
  bottom: 5%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(16, 185, 129, 0.05) 70%);
  animation-duration: 26s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.35rem, 4.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-hover);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 85px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Gradient & Highlight Text */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.highlight-badge svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-highlight);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo img,
.brand-logo-img {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  object-fit: contain;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  display: block;
}

.brand-logo span {
  white-space: nowrap;
  display: inline-block;
}

.brand-logo:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.brand-logo-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  background: var(--brand-gradient);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background-color: rgba(16, 185, 129, 0.08);
}

.nav-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: rgba(16, 185, 129, 0.06);
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 145px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--brand-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Interactive Mockup (WhatsApp + Synq Live Engine)
   ========================================================================== */
.hero-mockup-wrapper {
  position: relative;
  perspective: 1000px;
}

.mockup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-slow);
}

.mockup-header {
  background: var(--bg-surface-elevated);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

[data-theme="dark"] .mockup-dot { background: #334155; }
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #10b981; }

.mockup-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-status {
  width: 8px;
  height: 8px;
  background-color: var(--brand-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--brand-primary);
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mockup-body {
  padding: 20px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Chat bubble simulation */
.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  animation: fadeIn 0.4s ease forwards;
}

.chat-bubble.customer {
  align-self: flex-start;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-bubble.synq-bot {
  align-self: flex-end;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.chat-bubble .meta-time {
  display: block;
  font-size: 0.7rem;
  opacity: 0.75;
  text-align: right;
  margin-top: 4px;
}

.synq-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Floating interactive card indicator */
.floating-metric-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.metric-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.metric-text h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.metric-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Stats / Metrics Bar
   ========================================================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-lg);
}

.stat-box {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(16, 185, 129, 0.15);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient-subtle);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  margin-bottom: 22px;
}

.feature-icon-box svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
}

.feature-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Compliance & Legal Highlight Callout Banner
   ========================================================================== */
.compliance-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.compliance-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.compliance-info p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.compliance-links-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compliance-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.compliance-link-card:hover {
  border-color: var(--brand-primary);
  transform: translateX(4px);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.compliance-link-card svg {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
}

/* ==========================================================================
   Legal & Policy Page Styles (TOC, Breadcrumb, Sections, Search)
   ========================================================================== */
.legal-header {
  padding-top: 140px;
  padding-bottom: 45px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-primary);
}

.breadcrumb-separator {
  opacity: 0.5;
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-primary);
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  padding: 55px 0 95px 0;
  align-items: start;
}

/* Sticky Sidebar Table of Contents */
.legal-sidebar {
  position: sticky;
  top: 105px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.sidebar-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.search-legal-box {
  position: relative;
  margin-bottom: 18px;
}

.search-legal-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-legal-box input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-legal-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-link {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.toc-link:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-alt);
}

.toc-link.active {
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  background-color: rgba(16, 185, 129, 0.08);
  font-weight: 600;
}

/* Legal Content Body */
.legal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-section-block {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.legal-section-block h2 {
  font-size: 1.55rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-num {
  font-size: 0.95rem;
  color: var(--brand-primary);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.legal-section-block h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px 0;
  color: var(--text-main);
}

.legal-section-block p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-section-block ul,
.legal-section-block ol {
  margin: 16px 0 20px 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-section-block li {
  margin-bottom: 8px;
}

.legal-callout-box {
  background: var(--bg-surface-alt);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.legal-callout-box.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.legal-callout-box.info {
  border-left-color: var(--brand-secondary);
  background: rgba(6, 182, 212, 0.08);
}

.legal-callout-box h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.legal-callout-box p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ==========================================================================
   Data Deletion Specific Styles & Interactive Tool
   ========================================================================== */
.meta-callback-notice {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.meta-notice-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--brand-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meta-notice-icon svg {
  width: 24px;
  height: 24px;
}

.step-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.step-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: transform var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Deletion Interactive Form */
.deletion-form-container {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin: 36px 0;
  box-shadow: var(--shadow-lg);
}

.form-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-label .req {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand-primary);
  width: 18px;
  height: 18px;
}

/* Receipt Modal & Result */
.deletion-receipt-box {
  display: none;
  background: var(--bg-surface);
  border: 2px dashed var(--brand-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 24px;
  animation: fadeIn 0.4s ease;
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.receipt-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-icon svg {
  width: 26px;
  height: 26px;
}

.tracking-code-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.copy-btn:hover {
  color: var(--brand-primary);
}

/* Deletion Status Tracker Tool */
.status-tracker-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin: 32px 0;
}

.status-lookup-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.status-lookup-row input {
  flex-grow: 1;
}

.tracker-result {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
}

.faq-item {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--brand-primary);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 22px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 75px 0 35px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 16px 0 22px 0;
  max-width: 320px;
}

.footer-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-col h5 {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-primary);
  padding-left: 2px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-dim);
}

.footer-bottom-links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-trust-row {
    justify-content: center;
  }
  .compliance-banner {
    grid-template-columns: 1fr;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
    max-height: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 1080px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-xl);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 99;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 24px;
  }

  .status-lookup-row {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-metric-card {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-sidebar,
  .bg-ambient-lights,
  .theme-toggle-btn,
  .toast-container {
    display: none !important;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .legal-content {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
