/* ==========================================================================
   Legal pages (Terms, Privacy, User Agreement, Refunds, Commenting, Languages)
   Loads after styles.css and reuses its variables, nav, and footer styles.
   ========================================================================== */

.legal-body {
  background: var(--white);
}

/* --- Hero band ------------------------------------------------------------ */
.legal-hero {
  position: relative;
  margin-top: 88px;
  margin-bottom: 26px;
  padding: 104px 28px 64px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(5, 31, 89, 0.32), rgba(5, 31, 89, 0.05) 55%),
    url("assets/air-hero-blue-gradient.png") center / cover,
    #075bb8;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.legal-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.legal-hero h1 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
}

.legal-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.32);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* --- Content column ------------------------------------------------------- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px 20px 10px;
}

.legal-content .legal-lead {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.6;
}

.legal-content section {
  padding: 30px 0 6px;
  border-bottom: 1px solid var(--line);
}

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

.legal-content h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.legal-content h2 .sec-num {
  flex-shrink: 0;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 1.02rem;
  font-weight: 850;
}

.legal-content p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 8px;
  list-style: none;
}

.legal-content ol {
  counter-reset: legal-ol;
}

.legal-content li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 26px;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.6;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.legal-content ol li {
  counter-increment: legal-ol;
  padding-left: 32px;
}

.legal-content ol li::before {
  content: counter(legal-ol);
  position: absolute;
  top: 0.16em;
  left: 0;
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.legal-content a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(20, 159, 227, 0.4);
  text-underline-offset: 3px;
}

.legal-content a:hover {
  text-decoration-color: var(--blue-dark);
}

/* Emphasized one-line notices, e.g. "If you do not agree, do not use our Services." */
.legal-note {
  margin: 18px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: var(--blue-soft);
  color: #0b3a56;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.legal-note p {
  margin: 0;
  color: inherit;
  font-weight: inherit;
}

/* Distinct disclosure block (e.g. Air Messaging Program) */
.legal-callout {
  margin: 26px 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f7fafc;
}

.legal-callout h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
}

.legal-callout h4 {
  margin: 16px 0 4px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.legal-callout p {
  margin: 0 0 8px;
}

/* Contact block */
.legal-contact {
  margin: 30px 0 8px;
  padding: 30px 32px;
  border-radius: 22px;
  background: var(--black);
  color: var(--white);
}

.legal-contact h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 900;
}

.legal-contact p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.legal-contact a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

.legal-copyright {
  margin: 26px 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* --- Related policies ------------------------------------------------------ */
.legal-related {
  max-width: 860px;
  margin: 34px auto 64px;
  padding: 0 20px;
}

.legal-related h2 {
  margin: 0 0 16px;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.legal-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.legal-related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.legal-related-grid a::after {
  content: "→";
  color: var(--blue);
  font-weight: 900;
}

.legal-related-grid a:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(20, 159, 227, 0.16);
  transform: translateY(-2px);
}

/* --- Languages page -------------------------------------------------------- */
.lang-group {
  padding: 30px 0 10px;
  border-bottom: 1px solid var(--line);
}

.lang-group:last-of-type {
  border-bottom: 0;
}

.lang-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lang-group-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 850;
}

.lang-count {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.lang-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.lang-chip strong {
  font-size: 0.9rem;
  font-weight: 850;
}

.lang-chip span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* --- Footer contact column on legal pages ---------------------------------- */
.footer-contact-col label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
}

.footer-contact-col a {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

/* --- Mobile ----------------------------------------------------------------- */
@media (max-width: 720px) {
  .legal-hero {
    margin-top: 78px;
    padding: 92px 18px 48px;
  }

  .legal-content {
    padding: 26px 6px 6px;
  }

  .legal-content h2 {
    font-size: 1.16rem;
  }

  .legal-contact {
    padding: 24px 22px;
  }

  .legal-related {
    padding: 0 6px;
  }

  .lang-grid {
    grid-template-columns: 1fr 1fr;
  }
}
