/* ==========================================================================
   AIRVAC — Legal pages stylesheet (privacy.html / terms-of-service.html)
   Glacier-dark legal theme. Loaded ONLY by the legal pages.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  color: #E6EEF4;
  background-color: #0E1418;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page a {
  color: #4A8BB7;
  text-decoration: none;
}

.legal-page a:hover {
  color: #D8E6F0;
  text-decoration: underline;
}

/* Scope isolation: section backgrounds never leak from the content area */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ==========================================================================
   Legal navigation — class selectors only, never a bare nav element selector
   ========================================================================== */

.legal-nav {
  background-color: #0E1418;
  border-bottom: 2px solid #4A8BB7;
  position: sticky;
  top: 0;
  z-index: 50;
}

.legal-nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.legal-nav__brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #D8E6F0;
}

.legal-nav__brand:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.legal-nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-nav__link {
  color: #E6EEF4;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.legal-nav__link:hover {
  color: #FFFFFF;
  border-bottom-color: #4A8BB7;
  text-decoration: none;
}

/* ==========================================================================
   Legal header (header element with solid background)
   ========================================================================== */

.legal-header {
  background-color: #0E1418;
  border-bottom: 2px solid #162028;
  padding: 56px 0 48px;
}

.legal-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header__eyebrow {
  display: inline-block;
  background-color: #4A8BB7;
  color: #0E1418;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.legal-header__title {
  font-size: 44px;
  font-weight: 800;
  color: #E6EEF4;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.legal-header__meta {
  margin-top: 16px;
  font-size: 15px;
  color: #D8E6F0;
}

.legal-header__meta strong {
  color: #FFFFFF;
}

/* ==========================================================================
   Legal content
   ========================================================================== */

.legal-content {
  flex: 1;
  background-color: #0E1418;
  padding: 56px 0 64px;
}

.legal-content .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-toc {
  background-color: #162028;
  border: 1px solid #4A8BB7;
  border-radius: 6px;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.legal-toc__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D8E6F0;
  margin-bottom: 16px;
}

.legal-toc__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.legal-toc__item a {
  font-size: 15px;
  color: #4A8BB7;
  font-weight: 600;
}

.legal-toc__item a:hover {
  color: #D8E6F0;
}

.legal-section {
  padding: 30px 0;
  border-bottom: 1px solid #4A8BB7;
  scroll-margin-top: 84px;
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 26px;
  font-weight: 800;
  color: #E6EEF4;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.legal-section p {
  font-size: 16px;
  color: #BECDD8;
  margin-bottom: 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 14px 22px;
  color: #BECDD8;
  font-size: 16px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-note {
  background-color: #162028;
  border-left: 4px solid #4A8BB7;
  padding: 18px 22px;
  border-radius: 0 4px 4px 0;
  margin: 18px 0;
}

.legal-note p {
  color: #D8E6F0;
  margin: 0;
}

/* ==========================================================================
   Legal footer
   ========================================================================== */

.legal-footer {
  background-color: #0E1418;
  border-top: 2px solid #4A8BB7;
}

.legal-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-footer__wordmark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #D8E6F0;
}

.legal-footer__links {
  display: flex;
  gap: 18px;
}

.legal-footer__link {
  font-size: 14px;
  color: #4A8BB7;
  font-weight: 600;
}

.legal-footer__link:hover {
  color: #D8E6F0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 760px) {
  .legal-header__title {
    font-size: 32px;
  }

  .legal-toc__list {
    grid-template-columns: 1fr;
  }

  .legal-nav__links {
    display: none;
  }

  .legal-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
