:root {
      --bg: #ffffff;
      --surface: #fff5ec;
      --surface-2: #faf7f2;
      --ink: #0e1430;
      --ink-soft: #4b5575;
      --muted: #5d667e;
      --line: #ece6db;
      --brand: #1d4ed8;
      --brand-dark: #1e40af;
      --accent: #ff6a1a;
      --radius: 12px;
      --container: 900px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      color: var(--ink-soft);
      background: var(--bg);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    header {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .nav {
      max-width: var(--container);
      margin: 0 auto;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo img {
      height: 40px;
      width: auto;
    }

    .back-btn {
      font-weight: 700;
      color: var(--brand);
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border: 1.5px solid var(--brand);
      border-radius: 99px;
      transition: all 0.2s;
    }

    .back-btn:hover {
      background: var(--brand);
      color: #fff;
    }

    .legal-hero {
      background: linear-gradient(180deg, var(--surface) 0%, #ffffff 100%);
      padding: 60px 20px 40px;
      text-align: center;
      border-bottom: 1px solid var(--line);
    }

    .legal-hero h1 {
      font-family: 'Poppins', sans-serif;
      font-size: clamp(28px, 4vw, 40px);
      color: var(--ink);
      font-weight: 800;
      margin-bottom: 12px;
    }

    .legal-hero p {
      font-size: 15px;
      color: var(--ink-soft);
      font-weight: 500;
    }

    .content-container {
      max-width: var(--container);
      margin: 40px auto 80px;
      padding: 0 20px;
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 40px;
    }

    .legal-sidebar {
      position: sticky;
      top: 100px;
      height: fit-content;
      max-height: calc(100vh - 140px);
      overflow-y: auto;
      padding-right: 10px;
      border-right: 1px solid var(--line);
    }

    .legal-sidebar::-webkit-scrollbar {
      width: 4px;
    }

    .legal-sidebar::-webkit-scrollbar-thumb {
      background: var(--line);
      border-radius: 4px;
    }

    .sidebar-link {
      display: block;
      padding: 8px 0;
      font-size: 13px;
      color: var(--ink-soft);
      font-weight: 600;
      text-decoration: none;
      transition: color 0.2s;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sidebar-link:hover {
      color: var(--accent);
    }

    .legal-body {
      font-size: 15px;
      color: var(--ink-soft);
    }

    .legal-section {
      margin-bottom: 40px;
      scroll-margin-top: 100px;
    }

    .legal-section h2 {
      font-family: 'Poppins', sans-serif;
      font-size: 20px;
      color: var(--ink);
      font-weight: 700;
      margin-bottom: 16px;
      border-bottom: 2px solid var(--surface);
      padding-bottom: 6px;
    }

    .legal-section p {
      margin-bottom: 14px;
      text-align: justify;
    }

    .legal-section ul {
      margin-left: 20px;
      margin-bottom: 16px;
      display: grid;
      gap: 8px;
    }

    .highlight-box {
      background: var(--surface-2);
      border-left: 4px solid var(--accent);
      padding: 16px;
      border-radius: 0 var(--radius) var(--radius) 0;
      margin: 20px 0;
      font-size: 14px;
      font-weight: 500;
    }

    footer {
      background: var(--surface-2);
      border-top: 1px solid var(--line);
      padding: 40px 20px;
      text-align: center;
      font-size: 13px;
      color: var(--muted);
    }

    @media (max-width: 768px) {
      .content-container {
        grid-template-columns: 1fr;
      }

      .legal-sidebar {
        display: none;
      }
    }

#cookieConsentBanner {
      position: fixed;
      bottom: 24px;
      right: 24px;
      max-width: 400px;
      background: rgba(14, 20, 48, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1.5px solid rgba(236, 230, 219, 0.15);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
      z-index: 10000;
      color: #ffffff;
      font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes slideUpCookie {
      from { transform: translateY(100px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    @keyframes slideDownCookie {
      from { transform: translateY(0); opacity: 1; }
      to { transform: translateY(100px); opacity: 0; }
    }
    @media (max-width: 480px) {
      #cookieConsentBanner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
        padding: 20px;
      }
    }
    .cookie-container h3 {
      font-size: 17px;
      font-weight: 800;
      margin-bottom: 8px;
      color: #ffffff;
      font-family: 'Poppins', sans-serif;
    }
    .cookie-container p {
      font-size: 13px;
      color: #b4bccc;
      line-height: 1.5;
      margin-bottom: 16px;
    }
    .cookie-container p a {
      color: #ff6a1a;
      text-decoration: underline;
      font-weight: 600;
    }
    .cookie-container p a:hover {
      color: #ff8a3d;
    }
    .cookie-buttons {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }
    .cookie-btn {
      padding: 10px 16px;
      border-radius: 99px;
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      border: 0;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
      white-space: nowrap;
    }
    .cookie-customize {
      background: transparent;
      color: #b4bccc;
      border: 1px solid rgba(180, 188, 204, 0.3);
    }
    .cookie-customize:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #ffffff;
    }
    .cookie-reject {
      background: transparent;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .cookie-reject:hover {
      background: rgba(255, 255, 255, 0.1);
    }
    .cookie-accept {
      background: #ff6a1a;
      color: #ffffff;
    }
    .cookie-accept:hover {
      background: #e55a10;
    }
    .cookie-options {
      margin-bottom: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 12px;
    }
    .cookie-option-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 8px;
      text-align: left;
    }
    .cookie-option-item input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: #ff6a1a;
      margin-top: 2px;
      flex-shrink: 0;
    }
    .cookie-option-text h4 {
      font-size: 12.5px;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 2px;
    }
    .cookie-option-text p {
      font-size: 11px;
      color: #b4bccc;
      margin-bottom: 0;
      line-height: 1.3;
    }

/* ============ MERGED DROPDOWN & FOOTER LAYOUT STYLES ============ */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  padding: 24px;
  min-width: 600px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: block;
}

.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: 24px;
}

.dropdown-col {
  text-align: left;
}

.dropdown-col h4 {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 6px;
}

.dropdown-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft) !important;
  padding: 6px 0;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.dropdown-col a:hover {
  color: var(--brand) !important;
  transform: translateX(3px);
}

/* Responsive adjustments for dropdown on mobile */
@media (max-width: 960px) {
  .dropdown-container {
    display: block;
    width: 100%;
    text-align: center;
  }
  .dropdown-trigger {
    justify-content: center;
    width: 100%;
    padding: 10px 0;
  }
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 10px 0 0 10px !important;
    min-width: 100% !important;
    background: transparent !important;
  }
  .dropdown-menu-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .dropdown-col h4 {
    border-bottom: 1px solid rgba(14,20,48,0.08) !important;
    color: var(--brand) !important;
    text-align: center;
  }
  .dropdown-col a {
    text-align: center;
    padding: 8px 0 !important;
    font-size: 14.5px !important;
  }
  .dropdown-col a:hover {
    transform: none !important;
  }
}





/* ============ Footer Dark SEO Megagrid ============ */
.footer-seo-megagrid {
  background: #0f172a;
  color: #f8fafc;
  padding: 60px 0;
  border-top: 1px solid #1e293b;
  text-align: left;
}
.seo-grid-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
}
.seo-grid-col {
  text-align: left;
}
.seo-grid-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #334155;
  padding-bottom: 6px;
}
.seo-grid-col a {
  display: block !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  padding: 4px 0 !important;
  font-weight: 500;
  transition: color 0.15s;
  white-space: normal;
  line-height: 1.4;
}
.seo-grid-col a:hover {
  color: #f97316 !important;
}

/* ============ Main Footer 5-Column Grid ============ */
footer {
  background: #fffcf8;
  color: var(--ink-soft);
  padding: 50px 0 24px;
  border-top: 1px solid var(--line);
}
footer .foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
}
footer h4 {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
footer a {
  display: block !important;
  padding: 5px 0 !important;
  font-size: 14px !important;
  color: var(--ink-soft) !important;
}
footer a:hover {
  color: var(--brand) !important;
}

@media (max-width: 1024px) {
  .seo-grid-container {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  footer .foot-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .seo-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  footer .foot-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  .seo-grid-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .seo-grid-col {
    text-align: center !important;
  }
  .seo-grid-col a {
    text-align: center !important;
  }
  footer .foot-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  footer .foot-grid div {
    text-align: center !important;
  }
  footer .foot-grid a {
    text-align: center !important;
  }
}
