/* ==========================================================================
   ALA Terms & Conditions Page
   Design system: ALA G1 White Editorial
   Scoped to .ala-terms — does not affect other pages
   ========================================================================== */

/* ---- Layout shell ---- */
.ala-terms {
  background: #fff;
  color: #000;
  padding: 0;
  margin: 0;
}

.ala-terms__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 100px;
  box-sizing: border-box;
}

/* ---- Page header ---- */
.ala-terms__label {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767676;
  margin: 0 0 16px;
  line-height: 1;
}

.ala-terms__title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #000;
  margin: 0 0 18px;
}

.ala-terms__intro {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #767676;
  margin: 0;
  max-width: 560px;
}

/* ---- Dividers ---- */
.ala-terms__divider {
  border: none;
  border-top: 1px solid #F2F2F2;
  margin: 52px 0;
}

/* ---- Numbered sections ---- */
.ala-terms__section {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 24px;
  align-items: start;
}

.ala-terms__num {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #767676;
  line-height: 1.5;
  padding-top: 4px;
}

.ala-terms__content {
  min-width: 0;
}

/* ---- Section heading ---- */
.ala-terms__heading {
  font-family: 'Archivo', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #000;
  margin: 0 0 16px;
}

/* Reset any parent theme heading overrides */
.ala-terms .ala-terms__heading {
  text-transform: none;
  border: none;
  padding: 0;
}

/* ---- Body text ---- */
.ala-terms__body {
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
  color: #000000;
  margin: 0 0 14px;
}

.ala-terms__body:last-child {
  margin-bottom: 0;
}

/* ---- Lists ---- */
.ala-terms__list {
  margin: 10px 0 14px 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.ala-terms__list li {
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  line-height: 1.62;
  color: #000000;
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
}

.ala-terms__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #767676;
}

.ala-terms__list--ordered {
  list-style: none;
  counter-reset: terms-steps;
}

.ala-terms__list--ordered li {
  counter-increment: terms-steps;
  padding-left: 24px;
}

.ala-terms__list--ordered li::before {
  content: counter(terms-steps);
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #767676;
  background: none;
  border-radius: 0;
  top: 4px;
  width: auto;
  height: auto;
  left: 0;
  line-height: 1;
}

.ala-terms__list strong {
  font-weight: 600;
  color: #000;
}

/* ---- Charge table ---- */
.ala-terms__charges {
  margin: 14px 0;
  border-top: 1px solid #F2F2F2;
  border-bottom: 1px solid #F2F2F2;
}

.ala-terms__charge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F2F2F2;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #000;
}

.ala-terms__charge-row:last-child {
  border-bottom: none;
}

.ala-terms__charge-label {
  color: #767676;
  font-size: 14px;
}

.ala-terms__charge-amount {
  font-weight: 600;
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
}

/* ---- Warning / important note ---- */
.ala-terms__warn {
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.62;
  color: #950606;
  border-left: 2px solid #950606;
  padding-left: 14px;
  margin: 14px 0;
}

/* ---- Policy cross-link ---- */
.ala-terms__policy-link {
  display: block;
  margin-top: 18px;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.ala-terms__policy-link:hover,
.ala-terms__policy-link:focus {
  opacity: 0.6;
  outline-offset: 3px;
}

/* ---- VIP section ---- */
.ala-terms__vip {
  background: #F2F2F2;
  border: 1px solid #F2F2F2;
  padding: 0;
}

.ala-terms__vip-inner {
  padding: 36px 36px 32px;
}

.ala-terms__vip-badge {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #767676;
  margin: 0 0 14px;
  line-height: 1;
}

.ala-terms__vip .ala-terms__heading {
  margin-bottom: 18px;
}

.ala-terms__notice {
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.62;
  color: #000000;
  border-left: 2px solid #000;
  padding-left: 14px;
  margin: 0 0 22px;
}

.ala-terms__vip-link {
  display: inline-block;
  margin-top: 22px;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.ala-terms__vip-link:hover,
.ala-terms__vip-link:focus {
  opacity: 0.6;
  outline-offset: 3px;
}

/* ---- Last updated ---- */
.ala-terms__updated {
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #767676;
  margin-top: 8px;
}

/* ---- Help section ---- */
.ala-terms__help .ala-terms__heading {
  margin-bottom: 14px;
}

.ala-terms__address {
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  line-height: 1.62;
  color: #767676;
  margin: 0 0 20px;
}

.ala-terms__contacts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  border: 1px solid #F2F2F2;
}

.ala-terms__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #F2F2F2;
  transition: background 0.12s ease;
  line-height: 1;
}

.ala-terms__contact:last-child {
  border-bottom: none;
}

.ala-terms__contact:hover,
.ala-terms__contact:focus {
  background: #F2F2F2;
  outline-offset: 2px;
}

.ala-terms__contact svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ---- Desktop tweaks ---- */
@media (min-width: 640px) {
  .ala-terms__inner {
    padding: 88px 40px 120px;
  }

  .ala-terms__vip-inner {
    padding: 44px 44px 40px;
  }

  .ala-terms__contacts {
    flex-direction: row;
    border: 1px solid #F2F2F2;
  }

  .ala-terms__contact {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid #F2F2F2;
    justify-content: center;
    padding: 18px 24px;
  }

  .ala-terms__contact:last-child {
    border-right: none;
  }
}

/* ---- Mobile compaction ---- */
@media (max-width: 480px) {
  .ala-terms__inner {
    padding: 48px 20px 72px;
  }

  .ala-terms__divider {
    margin: 40px 0;
  }

  .ala-terms__section {
    grid-template-columns: 32px 1fr;
    gap: 0 16px;
  }

  .ala-terms__vip-inner {
    padding: 28px 20px 24px;
  }

  .ala-terms__contact {
    padding: 16px 16px;
  }
}
