/* ===================================
   IMMOBILIENKOMPASS CSS
   Nature Organic Design Style
   =================================== */

/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #3A3A3A;
  background-color: #F9F7F4;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style-position: inside;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================
   NATURE ORGANIC COLOR PALETTE
   =================================== */

:root {
  /* Earth Tones */
  --earth-brown: #6B5344;
  --warm-sand: #D4C5B0;
  --clay-terracotta: #C88B5C;
  --stone-gray: #8A8D7F;
  
  /* Green Accents */
  --forest-green: #3D5941;
  --sage-green: #8FAA92;
  --moss-green: #5C7A60;
  --leaf-green: #A8C5A4;
  
  /* Natural Neutrals */
  --cream-white: #F9F7F4;
  --warm-white: #FFF9F0;
  --soft-beige: #E8E3D8;
  --dark-earth: #3A3A3A;
  
  /* Accent Colors */
  --sunset-orange: #E89B6D;
  --golden-ochre: #D4A574;
  
  /* Semantic Colors */
  --primary-color: #3D5941;
  --secondary-color: #8FAA92;
  --accent-color: #C88B5C;
  --text-color: #3A3A3A;
  --bg-color: #F9F7F4;
  --card-bg: #FFF9F0;
}

/* ===================================
   TYPOGRAPHY - ORGANIC STYLE
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: var(--forest-green);
  margin-bottom: 16px;
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: 42px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 36px;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 22px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

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

strong {
  font-weight: 600;
  color: var(--forest-green);
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===================================
   HEADER - ORGANIC NAVIGATION
   =================================== */

header {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--moss-green) 100%);
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(61, 89, 65, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--warm-white);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--warm-white);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--sunset-orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover::after {
  width: 80%;
}

/* ===================================
   MOBILE MENU - HAMBURGER
   =================================== */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--forest-green);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(61, 89, 65, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--moss-green);
  transform: scale(1.05);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--forest-green) 0%, var(--moss-green) 100%);
  padding: 80px 30px 30px;
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  margin-bottom: 8px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: var(--sunset-orange);
  transform: translateX(5px);
}

/* ===================================
   BUTTONS - ORGANIC STYLE
   =================================== */

.cta-button,
.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-primary {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--moss-green) 100%);
  color: white;
  border-color: var(--forest-green);
}

.cta-primary:hover {
  background: linear-gradient(135deg, var(--moss-green) 0%, var(--sage-green) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 89, 65, 0.3);
}

.cta-secondary {
  background-color: transparent;
  color: var(--forest-green);
  border-color: var(--forest-green);
}

.cta-secondary:hover {
  background-color: var(--forest-green);
  color: white;
  transform: translateY(-2px);
}

.cta-button {
  background: linear-gradient(135deg, var(--clay-terracotta) 0%, var(--sunset-orange) 100%);
  color: white;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--golden-ochre) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 139, 92, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

/* ===================================
   HERO SECTION - ORGANIC DESIGN
   =================================== */

.hero {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--moss-green) 50%, var(--sage-green) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 30px 30px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  color: white;
  font-size: 48px;
  margin-bottom: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 32px;
  color: var(--warm-white);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-indicators span {
  font-size: 15px;
  color: var(--warm-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-indicators span::before {
  content: '✓';
  color: var(--sunset-orange);
  font-weight: bold;
  font-size: 18px;
}

/* ===================================
   PAGE HERO - ORGANIC STYLE
   =================================== */

.page-hero {
  background: linear-gradient(135deg, var(--sage-green) 0%, var(--leaf-green) 100%);
  padding: 60px 20px 40px;
  color: var(--dark-earth);
  border-radius: 0 0 30px 30px;
}

.page-hero h1 {
  color: var(--forest-green);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--earth-brown);
  max-width: 700px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--earth-brown);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--forest-green);
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: var(--moss-green);
}

/* ===================================
   CARDS - ORGANIC DESIGN
   =================================== */

.card-container,
.steps-grid,
.services-grid,
.features-grid,
.testimonials-grid,
.options-grid,
.resources-grid,
.guides-grid,
.tools-grid,
.cities-grid,
.types-grid,
.groups-grid,
.models-grid,
.programs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 32px;
}

.card,
.step-card,
.service-card,
.feature-card,
.testimonial-card,
.option-card,
.resource-card,
.guide-card,
.tool-card,
.city,
.type,
.group,
.model-card,
.program {
  background-color: var(--card-bg);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(61, 89, 65, 0.1);
  transition: all 0.3s ease;
  flex: 1 1 calc(33.333% - 24px);
  min-width: 280px;
  position: relative;
  border: 2px solid var(--soft-beige);
}

.card:hover,
.service-card:hover,
.feature-card:hover,
.option-card:hover,
.resource-card:hover,
.guide-card:hover,
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(61, 89, 65, 0.2);
  border-color: var(--sage-green);
}

.service-card.featured {
  border: 3px solid var(--sunset-orange);
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream-white) 100%);
  position: relative;
}

.service-card.featured::before {
  content: 'BELIEBT';
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--sunset-orange);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card h3,
.service-card h3,
.feature-card h3 {
  color: var(--forest-green);
  margin-bottom: 12px;
  font-size: 22px;
}

.price {
  font-size: 32px;
  font-weight: 700;
  color: var(--clay-terracotta);
  margin: 16px 0;
}

.savings {
  color: var(--moss-green);
  font-size: 14px;
  font-weight: 600;
  background-color: var(--leaf-green);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

/* ===================================
   TESTIMONIALS - ORGANIC STYLE
   =================================== */

.testimonials {
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--soft-beige) 100%);
  padding: 60px 20px;
  border-radius: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 32px;
  border-radius: 20px;
  border-left: 4px solid var(--sage-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  flex: 1 1 calc(50% - 24px);
  min-width: 300px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 16px;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--forest-green);
  font-style: normal;
  font-size: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-beige);
}

/* ===================================
   SECTIONS - FLEXBOX LAYOUTS
   =================================== */

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.text-image-section > * {
  flex: 1 1 45%;
  min-width: 280px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
}

/* ===================================
   TIMELINE - ORGANIC DESIGN
   =================================== */

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  padding: 32px;
  background-color: var(--warm-white);
  border-radius: 20px;
  flex-wrap: wrap;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--sage-green) 0%, var(--leaf-green) 100%);
  z-index: 0;
}

.phase {
  background-color: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  flex: 1 1 calc(25% - 20px);
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(61, 89, 65, 0.1);
  border: 2px solid var(--sage-green);
  position: relative;
  z-index: 1;
}

.phase h3 {
  color: var(--forest-green);
  font-size: 18px;
  margin-bottom: 8px;
}

.phase p {
  color: var(--earth-brown);
  font-size: 14px;
  margin: 0;
}

/* ===================================
   DETAILED STEPS - ORGANIC LAYOUT
   =================================== */

.step-detail {
  background-color: var(--warm-white);
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 32px;
  border-left: 5px solid var(--sage-green);
  box-shadow: 0 4px 15px rgba(61, 89, 65, 0.08);
}

.step-detail h2 {
  color: var(--forest-green);
  margin-bottom: 16px;
  font-size: 32px;
}

.step-detail h3 {
  color: var(--moss-green);
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 22px;
}

.step-detail ul {
  margin: 16px 0;
  padding-left: 24px;
}

.step-detail li {
  margin-bottom: 12px;
  color: var(--text-color);
  line-height: 1.7;
}

.step-detail li::marker {
  color: var(--sage-green);
}

/* ===================================
   FAQ SECTION - ORGANIC STYLE
   =================================== */

.faq-section {
  background-color: var(--warm-white);
  padding: 60px 20px;
  border-radius: 30px;
}

.faq-item {
  background-color: white;
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 20px;
  border-left: 4px solid var(--leaf-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-left-color: var(--forest-green);
  box-shadow: 0 4px 15px rgba(61, 89, 65, 0.15);
}

.faq-item h3,
.faq-item h4 {
  color: var(--forest-green);
  margin-bottom: 12px;
  font-size: 20px;
}

.faq-item p {
  color: var(--text-color);
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   FORMS - ORGANIC DESIGN
   =================================== */

input,
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--soft-beige);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: white;
  color: var(--text-color);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sage-green);
  box-shadow: 0 0 0 3px rgba(143, 170, 146, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===================================
   TABLES - ORGANIC STYLE
   =================================== */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

th {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--moss-green) 100%);
  color: white;
  padding: 16px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--soft-beige);
  color: var(--text-color);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: var(--cream-white);
}

/* ===================================
   FOOTER - ORGANIC DESIGN
   =================================== */

footer {
  background: linear-gradient(135deg, var(--earth-brown) 0%, var(--stone-gray) 100%);
  color: var(--warm-white);
  padding: 60px 20px 20px;
  margin-top: 80px;
  border-radius: 30px 30px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1 1 calc(25% - 40px);
  min-width: 200px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--warm-white);
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-section p,
.footer-section a {
  color: var(--soft-beige);
  font-size: 14px;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--sunset-orange);
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--soft-beige);
  font-size: 14px;
}

/* ===================================
   COOKIE CONSENT BANNER
   =================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--earth-brown) 0%, var(--stone-gray) 100%);
  color: white;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-radius: 20px 20px 0 0;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1 1 60%;
  min-width: 280px;
}

.cookie-text p {
  margin: 0;
  color: var(--warm-white);
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 12px 24px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.accept-all {
  background-color: var(--sage-green);
  color: white;
}

.accept-all:hover {
  background-color: var(--forest-green);
  transform: translateY(-2px);
}

.reject-all {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.reject-all:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-settings {
  background-color: transparent;
  color: var(--sunset-orange);
  text-decoration: underline;
}

.cookie-settings:hover {
  color: var(--golden-ochre);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  background-color: var(--cream-white);
  border-radius: 12px;
  border-left: 4px solid var(--sage-green);
}

.cookie-category h3 {
  color: var(--forest-green);
  margin-bottom: 8px;
  font-size: 18px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background-color: var(--stone-gray);
  border-radius: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-switch.active {
  background-color: var(--sage-green);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

/* ===================================
   ERROR PAGES - ORGANIC STYLE
   =================================== */

.error-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--warm-sand) 0%, var(--soft-beige) 100%);
  border-radius: 30px;
}

.error-code {
  font-size: 120px;
  font-weight: 900;
  color: var(--clay-terracotta);
  line-height: 1;
  margin-bottom: 24px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.error-hero h1 {
  color: var(--forest-green);
  margin-bottom: 16px;
}

.error-hero p {
  font-size: 18px;
  color: var(--earth-brown);
}

/* ===================================
   THANK YOU PAGE - ORGANIC STYLE
   =================================== */

.thank-you-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--leaf-green) 0%, var(--sage-green) 100%);
  border-radius: 30px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--moss-green) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(61, 89, 65, 0.3);
}

/* ===================================
   LEGAL PAGES - ORGANIC STYLE
   =================================== */

.legal-hero {
  background: linear-gradient(135deg, var(--warm-sand) 0%, var(--soft-beige) 100%);
  padding: 60px 20px;
  border-radius: 30px;
  margin-bottom: 40px;
}

.legal-content {
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--forest-green);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 2px solid var(--soft-beige);
}

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

.legal-content h3 {
  color: var(--moss-green);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  margin: 16px 0;
  padding-left: 32px;
}

.legal-content li {
  margin-bottom: 12px;
  color: var(--text-color);
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

@media (max-width: 768px) {
  /* Hide desktop navigation */
  .main-nav {
    display: none;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  /* Layout adjustments */
  section {
    padding: 32px 16px;
    margin-bottom: 40px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Cards stack on mobile */
  .card,
  .step-card,
  .service-card,
  .feature-card,
  .testimonial-card,
  .option-card,
  .resource-card,
  .guide-card,
  .tool-card,
  .city,
  .type,
  .group,
  .model-card,
  .program {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  /* Text-image sections stack */
  .text-image-section {
    flex-direction: column;
  }
  
  .text-image-section > * {
    flex: 1 1 100%;
  }
  
  /* CTA buttons stack */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-button,
  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
  }
  
  /* Footer sections stack */
  .footer-section {
    flex: 1 1 100%;
  }
  
  /* Timeline adjustments */
  .timeline {
    flex-direction: column;
  }
  
  .timeline::before {
    display: none;
  }
  
  .phase {
    flex: 1 1 100%;
    width: 100%;
  }
  
  /* Cookie consent adjustments */
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-text {
    flex: 1 1 100%;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-buttons button {
    width: 100%;
  }
  
  /* Step detail adjustments */
  .step-detail {
    padding: 24px;
  }
  
  /* Error code size */
  .error-code {
    font-size: 80px;
  }
  
  /* Table responsiveness */
  table {
    font-size: 14px;
  }
  
  th, td {
    padding: 12px 8px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet adjustments */
  .card,
  .step-card,
  .service-card,
  .feature-card {
    flex: 1 1 calc(50% - 24px);
  }
  
  .testimonial-card {
    flex: 1 1 calc(50% - 24px);
  }
  
  .footer-section {
    flex: 1 1 calc(50% - 40px);
  }
}

/* ===================================
   ANIMATIONS & TRANSITIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in {
  animation: slideInRight 0.6s ease-out;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .mobile-menu-toggle,
  .mobile-menu,
  .cookie-consent,
  .cookie-modal,
  header,
  footer {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
  }
}