/* True Travel — compact legal-page header (2026)
   Shared by /cancellation.html, /terms.html, /privacy.html.
   Option A: clean light background with subtle brand tint + bottom border.
   Keeps header compact: ~150-220px desktop, smaller on tablet/mobile. */

.legal-header {
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--brand-border, #d2e5f2);
  padding: 45px 24px 40px;
}

.legal-header__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.legal-header__content {
  max-width: 700px;
}

/* Breadcrumb — subtle, compact, semantic ol */
.legal-breadcrumb {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--color-gray, #4a6580);
}

.legal-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.legal-breadcrumb li + li::before {
  content: "/";
  color: #9db4c8;
  font-size: 13px;
}

.legal-breadcrumb a {
  color: var(--color-gray, #4a6580);
  text-decoration: none;
  border-radius: 4px;
}

.legal-breadcrumb a:hover {
  color: var(--brand-primary, #0077c8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-breadcrumb a:focus-visible,
.legal-header a:focus-visible {
  outline: 3px solid rgba(0, 119, 200, 0.3);
  outline-offset: 3px;
}

.legal-breadcrumb [aria-current="page"] {
  color: var(--color-dark-80, #1e3a57);
  font-weight: 600;
}

/* Title — main visual element */
.legal-header__title {
  margin: 0 0 8px;
  color: var(--brand-text, #0e2a45);
  font-family: var(--font-heading, var(--font-display, "Baloo 2", system-ui, sans-serif));
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Subtitle */
.legal-header__subtitle {
  margin: 0;
  max-width: 62ch;
  color: var(--color-gray, #4a6580);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Legal body copy — shared so the 3 pages stay consistent */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
}

.legal-page h2 {
  margin-top: 2.4em;
}

.legal-page h2:first-of-type {
  margin-top: 1.2em;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.75;
}

.legal-page ul {
  padding-left: 1.4em;
  margin: 1em 0;
}

.last-updated {
  color: var(--color-gray-light, #6c8aa5);
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 0.5em;
}

/* Tight, natural transition into the legal content */
main.legal-main {
  padding-top: 36px;
  padding-bottom: 64px;
}

/* Legacy class: neutralise the old giant dark hero if any page still references it.
   The old `.hero` base sets min-height:100vh — that must never apply to legal pages. */
.legal-hero {
  min-height: 0;
}

/* Tablet */
@media (max-width: 900px) {
  .legal-header {
    padding: 36px 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .legal-header {
    padding: 28px 16px;
  }

  .legal-header__title {
    font-size: clamp(26px, 7vw, 32px);
  }

  .legal-header__subtitle {
    font-size: 15px;
  }

  .legal-breadcrumb {
    font-size: 13px;
  }

  main.legal-main {
    padding-top: 28px;
    padding-bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-header *,
  .legal-header *::before,
  .legal-header *::after {
    transition-duration: 0.01ms !important;
  }
}
