/* Optimized CSS with proper light mode text colors */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Epilogue:wght@700;800;900&display=swap");

:root {
  --primary: #22c55e;
  --secondary: #16a34a;
  --accent: #4ade80;
  --dark: #0a0a0a;
  --light: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  --glow: 0 0 20px rgba(34, 197, 94, 0.3);
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-text: #1e293b;
  --light-text-secondary: #64748b;
  --light-border: #e2e8f0;
  --light-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Manrope", sans-serif;
  transition: all 0.3s ease;
}

/* Dark mode (default) */
body.dark {
  background: var(--dark);
  color: var(--light);
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark p,
body.dark span,
body.dark div {
  color: var(--light);
}

/* Light mode with proper text colors */
body.light {
  background: var(--light-bg);
  color: var(--light-text);
}

body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6,
body.light p,
body.light span,
body.light div {
  color: var(--light-text);
}

body.light .text-white {
  color: var(--light-text) !important;
}

body.light .text-white\/70 {
  color: var(--light-text-secondary) !important;
}

body.light .text-white\/80 {
  color: var(--light-text) !important;
}

body.light .text-white\/60 {
  color: var(--light-text-secondary) !important;
}

/* Cookie Banner - Optimized */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.light .cookie-banner {
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid var(--light-border);
  color: var(--light-text);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.cookie-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.light .cookie-text p {
  color: var(--light-text-secondary);
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
}

.cookie-btn.accept {
  background: var(--gradient);
  color: white;
}

.cookie-btn.essential {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.light .cookie-btn.essential {
  background: var(--light-surface);
  color: var(--light-text);
  border: 1px solid var(--light-border);
}

.cookie-btn.settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.light .cookie-btn.settings {
  color: var(--light-text-secondary);
  border: 1px solid var(--light-border);
}

/* Navigation - Optimized */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 0.5rem 0.75rem;
  max-width: calc(100vw - 2rem);
  margin: 0 auto;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
    max-width: 1200px;
  }
}

.light .nav-container {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--light-border);
  box-shadow: var(--light-shadow);
}

/* Fix navigation colors for theme switching */

.light nav {
  background: rgba(248, 250, 252, 0.95) !important;
  border: 1px solid var(--light-border) !important;
}

.light .nav-link {
  color: var(--light-text) !important;
}

.light .brand-text span:first-child {
  color: var(--light-text) !important;
}

.light .brand-subtitle {
  color: var(--light-text-secondary) !important;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 1;
}

@media (min-width: 768px) {
  .nav-brand {
    gap: 0.75rem;
  }
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) {
  .nav-brand a {
    gap: 0.75rem;
  }
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--glow);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text span:first-child {
  font-size: 0.9rem;
  white-space: nowrap;
  color: white;
}

.light .brand-text span:first-child {
  color: var(--light-text);
}

@media (min-width: 768px) {
  .brand-text span:first-child {
    font-size: 1.125rem;
  }
}

.brand-subtitle {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .brand-subtitle {
    font-size: 0.7rem;
  }
}

.light .brand-subtitle {
  color: var(--light-text-secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-menu {
    gap: 1.5rem;
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 0.9rem;
  }
}

.light .nav-link {
  color: var(--light-text);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.theme-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--primary);
  transition: all 0.3s ease;
  font-size: 0.8rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.9rem;
  }
}

.light .theme-btn {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  color: var(--primary);
}

.theme-btn:hover {
  background: rgba(34, 197, 94, 0.1);
  transform: scale(1.05);
}

/* Hero Section - Optimized */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 1rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 25s infinite ease-in-out;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2), transparent);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.2), transparent);
  top: 60%;
  right: 10%;
  animation-delay: -10s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.2), transparent);
  bottom: 20%;
  left: 50%;
  animation-delay: -5s;
}

.light .orb-1 {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1), transparent);
}

.light .orb-2 {
  background: radial-gradient(circle, rgba(22, 163, 74, 0.1), transparent);
}

.light .orb-3 {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.1), transparent);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-15px, 15px) scale(0.95);
  }
  75% {
    transform: translate(15px, -10px) scale(1.02);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
  padding: 2rem 0;
}

.hero-title {
  font-family: "Epilogue", sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: white;
}

.light .hero-title {
  color: var(--light-text);
}

.title-line {
  display: block;
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
}

.title-line:nth-child(1) {
  animation-delay: 0.2s;
}
.title-line:nth-child(2) {
  animation-delay: 0.4s;
}
.title-line:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  animation: fadeIn 1s ease-out 0.8s forwards;
  opacity: 0;
}

.light .hero-subtitle {
  color: var(--light-text-secondary);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 1s forwards;
  opacity: 0;
}

.cta-primary {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.light .cta-secondary {
  background: var(--light-surface);
  color: var(--light-text);
  border: 1px solid var(--light-border);
  box-shadow: var(--light-shadow);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.light .cta-secondary:hover {
  background: var(--light-surface);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Services Section - Optimized */
.services-section {
  padding: 4rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.light .section-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.section-title {
  font-family: "Epilogue", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.light .section-title {
  color: var(--light-text);
}

/* Bento Grid - Optimized */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  grid-auto-rows: 180px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 200px;
  }
}

.bento-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.light .bento-item {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  box-shadow: var(--light-shadow);
}

.bento-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(34, 197, 94, 0.1);
}

.light .bento-item:hover {
  background: var(--light-surface);
  box-shadow: 0 15px 30px rgba(34, 197, 94, 0.1);
}

@media (min-width: 768px) {
  .bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-item.medium {
    grid-row: span 2;
  }
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1rem;
  box-shadow: var(--glow);
}

.bento-content h3 {
  font-family: "Epilogue", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.light .bento-content h3 {
  color: var(--light-text);
}

.bento-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.light .bento-content p {
  color: var(--light-text-secondary);
}

.service-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-stats span {
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Stats Section - Optimized */
.stats-section {
  padding: 4rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light .stats-section {
  background: rgba(248, 250, 252, 0.5);
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-family: "Epilogue", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.light .stat-label {
  color: var(--light-text-secondary);
}

.partner-section {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.light .partner-section {
  border-top: 1px solid var(--light-border);
}

.partner-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.light .partner-text {
  color: var(--light-text-secondary);
}

.partner-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.partner-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Contact Section - Optimized */
.contact-section {
  padding: 4rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-title {
  font-family: "Epilogue", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: white;
}

.light .contact-title {
  color: var(--light-text);
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.light .contact-item {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  box-shadow: var(--light-shadow);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.light .contact-item:hover {
  background: var(--light-surface);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--glow);
}

.contact-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-size: 0.9rem;
}

.contact-text p {
  color: rgba(255, 255, 255, 0.8);
}

.light .contact-text p {
  color: var(--light-text);
}

.phone-number {
  font-family: "Epilogue", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-visual {
  display: flex;
  justify-content: center;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.25rem;
  backdrop-filter: blur(15px);
  max-width: 350px;
  width: 100%;
}

.light .contact-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  box-shadow: var(--light-shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light .card-header {
  border-bottom: 1px solid var(--light-border);
}

.card-dots {
  display: flex;
  gap: 0.4rem;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.card-dots span:nth-child(2) {
  background: var(--secondary);
}
.card-dots span:nth-child(3) {
  background: var(--accent);
}

.card-title {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.card-content img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.card-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: white;
}

.light .card-info h4 {
  color: var(--light-text);
}

.card-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.light .card-info p {
  color: var(--light-text-secondary);
}

/* Footer - Optimized */
.footer {
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.light .footer {
  border-top: 1px solid var(--light-border);
  background: rgba(248, 250, 252, 0.5);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand span {
  color: white;
}

.light .footer-brand span {
  color: var(--light-text);
}

.footer-brand .brand-icon {
  width: 35px;
  height: 35px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.light .footer-link {
  color: var(--light-text-secondary);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-content p {
  color: rgba(255, 255, 255, 0.6);
}

.light .footer-content p {
  color: var(--light-text-secondary);
}

/* Legal Pages - Optimized */
.legal-page {
  min-height: 100vh;
  padding: 8rem 1rem 4rem;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-title {
  font-family: "Epilogue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.light .legal-subtitle {
  color: var(--light-text-secondary);
}

.legal-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.light .legal-content {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  box-shadow: var(--light-shadow);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: "Epilogue", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.legal-section h3 {
  font-family: "Epilogue", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  color: white;
}

.light .legal-section h3 {
  color: var(--light-text);
}

.legal-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.light .legal-section p {
  color: var(--light-text);
}

.legal-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.light .legal-section li {
  color: var(--light-text);
}

.contact-info {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.light .contact-info {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.contact-info p {
  color: white;
}

.light .contact-info p {
  color: var(--light-text);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .nav-container,
  .legal-container,
  .legal-content {
    max-width: calc(100vw - 2rem);
    overflow-x: hidden;
  }

  .nav-container {
    max-width: calc(100vw - 1rem);
    margin: 0 auto;
  }

  .legal-container {
    max-width: calc(100vw - 2rem);
    padding: 0 1rem;
  }

  .legal-content {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .contact-cta {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .nav-container {
    padding: 0.5rem 0.75rem;
  }
}

/* Performance optimizations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.light .cookie-modal-content {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  color: var(--light-text);
}
