/* ==========================================================================
   TERMS AND CONDITIONS SECTION
   ========================================================================== */
.terms-page {
  padding: 88px 0 110px;
  border-top: 1px solid rgba(214, 170, 46, 0.14);
  background:
    radial-gradient(circle at 50% 0%,
      rgba(202, 151, 28, 0.08),
      transparent 32%),
    #050501;
}

.terms-page__container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header Area */
.terms-page__header {
  max-width: 820px;
  margin: 0 auto 58px;
  text-align: center;
}

.terms-page__eyebrow {
  margin: 0 0 12px;
  color: #d6aa37;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.terms-page__title {
  margin: 0;
  color: #f2ead8;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.terms-page__description {
  max-width: 640px;
  margin: 18px auto 0;
  color: rgba(228, 214, 179, 0.62);
  font-size: 14px;
  line-height: 1.75;
}

.terms-page__meta {
  display: flex;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.terms-page__meta span {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(213, 167, 42, 0.2);
  border-radius: 999px;
  color: rgba(228, 210, 168, 0.66);
  background: rgba(213, 163, 34, 0.05);
  font-size: 11px;
  font-weight: 700;
}

.terms-page__meta i {
  color: #d4aa3a;
}

/* Grid Layout */
.terms-page__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* Sidebar Index Menu */
.terms-sidebar {
  position: sticky;
  top: 110px;
}

.terms-sidebar__nav {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(213, 168, 43, 0.19);
  border-radius: 14px;
  background:
    linear-gradient(145deg,
      rgba(25, 21, 6, 0.96),
      rgba(13, 11, 3, 0.99));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.terms-sidebar__nav a {
  display: block;
  padding: 12px 13px;
  border-left: 2px solid transparent;
  border-radius: 7px;
  color: rgba(225, 211, 175, 0.58);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.terms-sidebar__nav a:hover {
  color: #efcc5c;
  background: rgba(215, 166, 38, 0.07);
  transform: translateX(3px);
}

.terms-sidebar__nav a.is-active {
  color: #f0cc58;
  border-left-color: #d7aa34;
  background: rgba(213, 163, 36, 0.1);
}

/* Content Area & Sections */
.terms-content {
  display: grid;
  gap: 22px;
}

.terms-section {
  padding: 30px;
  scroll-margin-top: 110px;
  border: 1px solid rgba(213, 167, 41, 0.18);
  border-radius: 15px;
  background:
    linear-gradient(145deg,
      rgba(24, 20, 6, 0.96),
      rgba(12, 10, 2, 0.99));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(201, 149, 22, 0.025);
}

.terms-section__heading {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 16px;
}

.terms-section__number {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(223, 180, 55, 0.35);
  border-radius: 50%;
  color: #181202;
  background:
    linear-gradient(135deg,
      #d4a633,
      #f0ce5e);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(211, 158, 28, 0.17);
}

.terms-section__eyebrow {
  margin: 0 0 4px;
  color: rgba(213, 170, 55, 0.65);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.terms-section__title {
  margin: 0;
  color: #e8c75d;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.25;
}

/* Typography styles in sections */
.terms-section__body {
  color: rgba(223, 210, 177, 0.68);
  font-size: 14px;
  line-height: 1.85;
}

.terms-section__body p {
  margin: 0 0 18px;
  max-width: 75ch;
  /* max 75 characters per line */
}

.terms-section__body p:last-child {
  margin-bottom: 0;
}

.terms-section__body h3 {
  margin: 28px 0 12px;
  color: #dfbd55;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.terms-section__body h4 {
  margin: 22px 0 10px;
  color: #d9bb65;
  font-size: 14px;
  font-weight: 900;
}

.terms-section__body strong {
  color: #f0d477;
  font-weight: 800;
}

.terms-section__body a {
  text-decoration-color: rgba(229, 196, 92, 0.5);
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.terms-section__body a:hover {
  color: #ffdc67;
}

/* Lists styling */
.terms-section__body ul,
.terms-section__body ol {
  margin: 16px 0 22px;
  padding-left: 24px;
}

.terms-section__body li {
  margin-bottom: 10px;
  padding-left: 5px;
  line-height: 1.75;
}

.terms-section__body li::marker {
  color: #d5a833;
  font-weight: 900;
}

/* Small Cards list item numbers */
.terms-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.terms-list__item {
  display: grid;
  padding: 16px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid rgba(212, 164, 37, 0.14);
  border-radius: 10px;
  background: rgba(211, 162, 36, 0.045);
}

.terms-list__number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #171202;
  background: #d8ae3d;
  font-size: 11px;
  font-weight: 900;
}

.terms-list__item strong {
  display: block;
  margin-bottom: 5px;
}

.terms-list__item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

/* Legal Warning alerts */
.terms-alert {
  display: grid;
  margin: 24px 0;
  padding: 18px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(234, 154, 28, 0.25);
  border-left: 3px solid #e1a126;
  border-radius: 10px;
  background: rgba(225, 145, 20, 0.065);
}

.terms-alert__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #e7aa31;
  background: rgba(226, 159, 27, 0.12);
}

.terms-alert__content h3 {
  margin: 0 0 7px;
  color: #ebbb48;
  font-size: 14px;
}

.terms-alert__content p {
  margin: 0;
  font-size: 13px;
}

/* Contact helper box */
.terms-contact-box {
  display: flex;
  margin-top: 26px;
  padding: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(217, 173, 45, 0.26);
  border-radius: 13px;
  background:
    linear-gradient(135deg,
      rgba(53, 41, 8, 0.63),
      rgba(19, 15, 3, 0.88));
}

.terms-contact-box__label {
  margin: 0 0 6px;
  color: #d4a62e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.terms-contact-box h3 {
  margin: 0 0 7px;
  color: #f0d276;
  font-size: 21px;
}

.terms-contact-box p {
  margin: 0;
  color: rgba(225, 211, 174, 0.6);
  font-size: 13px;
}

.terms-contact-box__button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 19px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  color: #181202;
  background:
    linear-gradient(135deg,
      #d5a733,
      #f1cf5d);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

.terms-contact-box__button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(214, 161, 31, 0.23);
}

/* ==========================================================================
   TABLET RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 900px) {
  .terms-page {
    padding: 70px 0 86px;
  }

  .terms-page__container {
    width: calc(100% - 30px);
  }

  .terms-page__layout {
    grid-template-columns: 1fr;
  }

  .terms-sidebar {
    position: static;
  }

  .terms-sidebar__nav {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .terms-sidebar__nav::-webkit-scrollbar {
    display: none;
  }

  .terms-sidebar__nav a {
    min-width: max-content;
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .terms-sidebar__nav a:hover {
    transform: none;
  }

  .terms-sidebar__nav a.is-active {
    border-left-color: transparent;
    border-bottom-color: #d7aa34;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 600px) {
  .terms-page {
    padding: 52px 0 66px;
  }

  .terms-page__container {
    width: calc(100% - 20px);
  }

  .terms-page__header {
    margin-bottom: 36px;
  }

  .terms-page__title {
    font-size: 31px;
  }

  .terms-page__meta {
    align-items: stretch;
    flex-direction: column;
  }

  .terms-page__meta span {
    justify-content: center;
  }

  .terms-section {
    padding: 20px 17px;
  }

  .terms-section__heading {
    align-items: flex-start;
  }

  .terms-section__number {
    width: 40px;
    height: 40px;
  }

  .terms-section__title {
    font-size: 20px;
  }

  .terms-section__body {
    font-size: 13px;
    line-height: 1.75;
  }

  .terms-list__item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .terms-alert {
    grid-template-columns: 1fr;
  }

  .terms-contact-box {
    align-items: stretch;
    flex-direction: column;
  }

  .terms-contact-box__button {
    width: 100%;
  }
}