/* 
========================================================================
   CASECOVERY TRIAGE - SYSTEM DESIGN & RESPONSIVE LANDING PAGE STYLESHEET (V5)
   Fixes: Mobile & Tablet sidebar layout bug (converting 70/30 split to 100% full-width view)
   Additions: 17-Country Dynamic Legislation Dropdown Selector
   Palette: Navy, slate, pure white, France blue (#0057FF), emerald green (#00A86B)
========================================================================
*/

:root {
  --color-bg-canvas: #070c18;
  --color-surface-card: #0d172e;
  --color-surface-dark: #0b1120;
  --color-border: rgba(56, 189, 248, 0.2);
  --color-border-dark: #1E293B;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-accent-blue: #38bdf8;
  --color-accent-blue-hover: #0284c7;
  --color-success-green: #10b981;
  --color-warning-orange: #f59e0b;
  --color-gold-highlight: rgba(245, 158, 11, 0.12);
  --color-gold-border: #F59E0B;
  --color-chat-sender: #1e3a29;
  --color-chat-receiver: #0f1d38;
  --color-chat-text: #f1f5f9;
  --font-family-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-hero: 3.25rem;
  --font-size-title: 2.15rem;
  --font-size-subtitle: 1.25rem;
  --font-size-body: 1rem;
  --font-size-chat: 0.95rem;
  --font-size-metadata: 0.8rem;
}

.legislation-section {
  padding: 4rem 0;
  background-color: transparent;
  border-top: none;
  border-bottom: none;
}

.legislation-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 16, 31, 0.97) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.legislation-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(129, 140, 248, 0.8), transparent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.legislation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.country-select-wrapper {
  position: relative;
  max-width: 580px;
  margin: 0.75rem auto 1.75rem auto;
}

.country-select-dropdown {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  background-color: #0b1329;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.country-select-dropdown:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
}

.country-select-dropdown:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 0 25px rgba(56, 189, 248, 0.3);
}

.country-select-dropdown option {
  background-color: #0b1329;
  color: #f8fafc;
  padding: 10px;
  font-weight: 600;
}

.country-select-wrapper::after {
  content: '▼';
  font-size: 0.85rem;
  color: #38bdf8;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.country-law-card {
  background: rgba(13, 22, 44, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 2rem;
  display: block;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.country-law-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.country-law-card p {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.law-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.law-tag {
  background-color: rgba(0, 87, 255, 0.06);
  color: var(--color-accent-blue);
  border: 1px solid rgba(0, 87, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .container, .hero-container, .main-content, .hero-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1.25rem !important;
  }

  .main-header, .site-header {
    padding: 0.75rem 1rem !important;
    width: 100% !important;
  }

  .header-container, .nav-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .brand-isotipo, .brand-logo img {
    height: 48px !important;
    width: auto !important;
  }

  .brand-text, .brand-title {
    font-size: 1.25rem !important;
  }

  .nav-links, .navbar-menu {
    display: none !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: #09101f !important;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3) !important;
    flex-direction: column !important;
    padding: 1.25rem !important;
    gap: 0.75rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
    z-index: 99999 !important;
    max-height: calc(100vh - 65px) !important;
    overflow-y: auto !important;
  }

  .nav-links.mobile-open, .nav-links.active, .navbar-menu.active {
    display: flex !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .hero-container, .hero-wrapper {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .hero-media-col {
    order: 1 !important;
    width: 100% !important;
  }

  .hero-text-col {
    order: 2 !important;
    width: 100% !important;
  }

  .hero-badge-pill {
    display: none !important;
  }

  .cta-group {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: 420px !important;
    margin: 0 auto 1.5rem auto !important;
  }

  .btn {
    width: 100% !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    max-width: 450px !important;
    margin: 0 auto !important;
  }

  .workspace-simulator {
    margin: 1.5rem 0 !important;
    width: 100% !important;
  }

  .ssot-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .filter-btn {
    width: 100% !important;
    text-align: center !important;
  }

  .workspace-item {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .container, .hero-container, .main-content, .hero-wrapper {
    padding: 0 0.85rem !important;
  }

  .legislation-box {
    padding: 1.25rem !important;
    border-radius: 14px !important;
  }

  .country-select-dropdown {
    font-size: 0.95rem !important;
    padding: 0.85rem 1rem !important;
  }

  .country-law-card {
    padding: 1.25rem !important;
  }

  .hero-title .brand-style {
    white-space: normal !important;
    display: inline !important;
  }

  .hero-title {
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

