@import url("./base.css");
@import url("./layout.css");
@import url("./components.css");
@import url("./sections.css");
@import url("./pages.css");
@import url("./responsive.css");
@import url("./case-studies.css");
@import url("./form.css");
@import url("./brand-refresh.css");
@import url("./v4-overrides.css");
@import url("./v5-overrides.css");
@import url("./v10-overrides.css");
@import url("./v11-hero.css");
@import url("./v12-fixes.css");
@import url("./v13-fixes.css");
@import url("./v15-polish.css");
@import url("./chatbot.css");


/* ========================================= LEGAL PAGES LINKS ========================================== */

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.legal-content a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.legal-content p {
  margin-bottom: 1.2rem;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin-top: 14px;
  margin-bottom: 28px;
  background: linear-gradient(
    90deg,
    rgba(138,223,172,0) 0%,
    rgba(138,223,172,0.9) 50%,
    rgba(138,223,172,0) 100%
  );
}


/* ========================================== CUSTOM SCROLLBAR ========================================== */

/* Chrome, Edge, Safari */
.timeline-preview-box::-webkit-scrollbar,
.timeline-modal-content::-webkit-scrollbar {
  width: 10px;
}

.timeline-preview-box::-webkit-scrollbar-track,
.timeline-modal-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.timeline-preview-box::-webkit-scrollbar-thumb,
.timeline-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(138,223,172,0.45),
    rgba(138,223,172,0.9)
  );

  border-radius: 999px;

  border: 2px solid rgba(17,24,39,0.9);
}

.timeline-preview-box::-webkit-scrollbar-thumb:hover,
.timeline-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(138,223,172,0.7),
    rgba(138,223,172,1)
  );
}

/* Firefox */
.timeline-preview-box,
.timeline-modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(138,223,172,0.8) rgba(255,255,255,0.05);
}

/* V50 — Mobile layout refinements, no desktop changes. */
@media (max-width: 700px) {
  /* Keep the logo left, compact controls stacked before the burger button. */
  .site-header .header-content { min-height: 84px; gap: 8px; }
  .site-header .header-actions { display:flex; align-items:center; gap:9px; margin-left:auto; }
  .site-header .header-actions .language-toggle.compact-switch,
  .site-header .header-actions .theme-toggle.compact-switch {
    width: 66px; height: 29px; padding: 2px;
    min-height:0; flex-shrink:0;
  }
  .site-header .header-actions .language-toggle.compact-switch .compact-option,
  .site-header .header-actions .theme-toggle.compact-switch .compact-option {
    width: 29px; height: 23px; font-size: 10px;
  }
  /* CSS grid lets both switches share a tidy column without changing JS or markup. */
  .site-header .header-actions { display:grid; grid-template-columns:66px 40px; grid-template-rows:30px 30px; column-gap:11px; row-gap:4px; }
  .site-header .header-actions > .language-toggle { grid-area:1 / 1; }
  .site-header .header-actions > .theme-toggle { grid-area:2 / 1; }
  .site-header .header-actions > .menu-toggle {
    grid-column:2; grid-row:1 / span 2;
    align-self:center; justify-self:center;
    margin:0; flex-shrink:0;
  }
  .site-header .logo { min-width:0; }
  .site-header .logo img { max-width:min(132px, 34vw); height:auto; max-height:52px; }
  /* Chat launcher is icon-only on narrow screens; dialog remains unchanged. */
  .tech-assistant .tech-chat-launch {
    width:54px; height:54px; padding:0; display:flex;
    justify-content:center; align-items:center; border-radius:50%;
    min-width:54px; min-height:54px;
  }
  .tech-assistant .tech-chat-launch .tech-chat-launch-label { display:none!important; }
  .tech-assistant .tech-chat-launch svg { width:23px; height:23px; }
  .tech-assistant .tech-chat-launch[aria-expanded="true"] { display:none; }
}
@media (max-width:390px) {
  .site-header .header-actions { grid-template-columns:62px 36px; column-gap:7px; }
  .site-header .header-actions .language-toggle.compact-switch,
  .site-header .header-actions .theme-toggle.compact-switch { width:62px; }
  .site-header .header-actions .language-toggle.compact-switch .compact-option,
  .site-header .header-actions .theme-toggle.compact-switch .compact-option { width:27px; }
  .site-header .logo img { max-width:min(108px,30vw); }
}
