/* ============================================
   RASMLE LLC -- Design System & Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-primary: #0B1121;
  --color-primary-light: #1B2A4A;
  --color-primary-lighter: #243455;
  --color-accent: #3B82F6;
  --color-accent-hover: #2563EB;
  --color-accent-secondary: #8B5CF6;
  --color-accent-gradient: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --color-accent-glow: rgba(59, 130, 246, 0.15);
  --color-warm: #F59E0B;
  --color-warm-hover: #D97706;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F1F5F9;
  --color-bg-card: #FFFFFF;
  --color-bg-dark: #0B1121;
  --color-bg-section: #F8FAFC;
  --color-text: #1E293B;
  --color-text-body: #475569;
  --color-text-muted: #64748B;
  --color-text-light: #F1F5F9;
  --color-text-heading: #0F172A;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --color-success: #10B981;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --max-width-wide: 1400px;
  --header-height: 72px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
::selection { background: var(--color-accent); color: white; }

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

.heading-accent {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-light);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--transition-slow);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(11, 17, 33, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--color-accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px;
  font-size: 0.85rem;
  background: var(--color-accent-gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, black, transparent);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  top: -200px;
  right: -200px;
  background: var(--color-accent);
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero-glow-2 {
  bottom: -300px;
  left: -200px;
  background: var(--color-accent-secondary);
  animation: glow-drift 15s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -40px) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

/* --- Section Shared Styles --- */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

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

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

.section-header.left-aligned {
  text-align: left;
  margin: 0 0 48px;
}

/* --- About Section --- */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-inner {
  position: relative;
  background: var(--color-accent-gradient);
  border-radius: var(--radius-lg);
  padding: 3px;
}

.about-visual-content {
  background: var(--color-bg);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 48px 40px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-quote {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-heading);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.about-attribution {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about-attribution span {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 4px;
}

.about-text h3 {
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-body);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.about-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* --- Services Section --- */
.services {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-accent-glow);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- Process Section --- */
.process {
  background: var(--color-bg);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary), var(--color-accent));
  opacity: 0.2;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: all var(--transition-slow);
  position: relative;
  z-index: 2;
  border: 2px solid var(--color-border);
}

.process-step:hover .step-number {
  background: var(--color-accent-gradient);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Why Us Section --- */
.why-us {
  background: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.why-us .section-header h2 {
  color: white;
}

.why-us .section-header p {
  color: rgba(255, 255, 255, 0.5);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.why-us-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition-slow);
  text-align: center;
}

.why-us-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-4px);
}

.why-us-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.why-us-card h4 {
  color: white;
  margin-bottom: 12px;
}

.why-us-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-bg);
  padding: 80px 0;
}

.cta-box {
  background: var(--color-accent-gradient);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-box h2 {
  color: white;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-btn {
  background: white;
  color: var(--color-accent);
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* --- Contact Section --- */
.contact {
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.contact-item-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
}

.contact-item-value a:hover {
  color: var(--color-accent);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px 28px;
  background: var(--color-accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  padding: 80px 0 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: white;
}

.footer-address p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-address a:hover {
  color: white;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

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

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Legal Pages (Privacy & Terms)
   ============================================ */

.legal-page {
  background: var(--color-bg-alt);
  min-height: 100vh;
  padding-top: var(--header-height);
}

.legal-header {
  background: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

.legal-header-inner {
  padding: 80px 0 60px;
  position: relative;
  z-index: 2;
}

.legal-header h1 {
  color: white;
  margin-bottom: 8px;
}

.legal-header p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.legal-back:hover {
  color: white;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-content article {
  background: white;
  padding: 56px 64px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border-light);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--color-text-heading);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--color-text-body);
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--color-text-body);
  line-height: 1.7;
}

.legal-content ul li {
  list-style-type: disc;
}

.legal-content ol li {
  list-style-type: decimal;
}

.legal-content strong {
  color: var(--color-text-heading);
  font-weight: 600;
}

.legal-content .last-updated {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(11, 17, 33, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-110%);
    transition: transform var(--transition-slow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps::before {
    display: none;
  }

  .step-number {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
  }

  .why-us-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-box {
    padding: 48px 28px;
  }

  .legal-content article {
    padding: 32px 24px;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  section {
    padding: 60px 0;
  }

  .hero-content {
    padding: 100px 0 60px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* --- Services Section (Industry Links) --- */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.industry-tag {
  padding: 6px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.industry-tag:hover {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
