/* =========================
   TERMS PAGE — PROFESSIONAL
========================= */

.terms-page {
  max-width: 960px;
  padding: 38px 0 95px;
}

/* =========================
   HERO
========================= */

.terms-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 34px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 216, 79, 0.16), transparent 26%),
    radial-gradient(circle at 92% 10%, rgba(55, 198, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #1b245d 0%, #11183d 58%, #0c102a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.terms-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.045) 45% 47%, transparent 47% 100%);
  pointer-events: none;
}

.terms-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 216, 79, 0.12);
  border: 1px solid rgba(255, 216, 79, 0.35);
  color: #ffd84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.terms-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.terms-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 780px;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 600;
  color: #b8c3f5;
}

.terms-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.terms-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  color: #c7d0f3;
  font-size: 13px;
  font-weight: 700;
}

/* =========================
   NOTICE
========================= */

.terms-notice {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 216, 79, 0.11), rgba(255, 216, 79, 0.045)),
    linear-gradient(180deg, #1b245d 0%, #12183d 100%);
  border: 1px solid rgba(255, 216, 79, 0.24);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.terms-notice strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.terms-notice p {
  margin: 0;
  color: #c7d0f3;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}

/* =========================
   SECTIONS
========================= */

.terms-section {
  margin-top: 46px;
}

.terms-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.terms-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 216, 79, 0.12);
  border: 1px solid rgba(255, 216, 79, 0.28);
  color: #ffd84f;
  font-size: 14px;
  font-weight: 900;
}

.terms-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.terms-heading p {
  margin: 0;
  max-width: 780px;
  color: #aeb9e8;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

/* =========================
   CARDS
========================= */

.terms-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, #1c245c 0%, #12183d 100%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.terms-card::before {
  content: "";
  position: absolute;
  top: -58px;
  right: -58px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 79, 0.10), transparent 70%);
  pointer-events: none;
}

.terms-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #ffd84f, #37c6ff);
  opacity: 0.42;
}

.terms-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 216, 79, 0.12);
  border: 1px solid rgba(255, 216, 79, 0.28);
  color: #ffd84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.terms-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c7d0f3;
  font-size: 15px;
  line-height: 1.72;
  font-weight: 600;
}

/* =========================
   GRID
========================= */

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.terms-grid .terms-card {
  min-height: 245px;
}

/* =========================
   ROW LIST
========================= */

.terms-list {
  display: grid;
  gap: 14px;
}

.terms-row {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 21px;
  border-radius: 21px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, #1a2258 0%, #11173b 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.terms-row::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #ffd84f, #37c6ff);
  opacity: 0.28;
}

.terms-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 216, 79, 0.16), rgba(255, 216, 79, 0.06));
  border: 1px solid rgba(255, 216, 79, 0.24);
}

.terms-icon.danger {
  background:
    linear-gradient(180deg, rgba(255, 103, 65, 0.15), rgba(255, 103, 65, 0.055));
  border-color: rgba(255, 103, 65, 0.22);
}

.terms-icon svg {
  width: 23px;
  height: 23px;
  fill: #ffd84f;
}

.terms-icon.danger svg {
  fill: #ff8a65;
}

.terms-row h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.terms-row p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c7d0f3;
  font-size: 14px;
  line-height: 1.68;
  font-weight: 600;
}

.terms-final-card {
  max-width: 520px;
}

/* =========================
   CLEAN STATES
========================= */

.terms-page a {
  color: #ffd84f;
}

.terms-page a:hover {
  color: #ffffff;
}

.terms-card:hover,
.terms-row:hover,
.terms-notice:hover,
.terms-hero:hover {
  transform: none !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .terms-page {
    max-width: 100%;
    padding: 28px 0 85px;
  }

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

  .terms-grid .terms-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .terms-page {
    padding: 20px 0 78px;
  }

  .terms-hero {
    padding: 25px 20px;
    border-radius: 22px;
  }

  .terms-hero h1 {
    font-size: 32px;
  }

  .terms-hero p {
    font-size: 14px;
  }

  .terms-meta {
    gap: 8px;
  }

  .terms-meta span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .terms-notice {
    padding: 18px;
    border-radius: 18px;
  }

  .terms-section {
    margin-top: 38px;
  }

  .terms-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .terms-heading > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .terms-heading h2 {
    font-size: 24px;
  }

  .terms-heading p {
    font-size: 14px;
  }

  .terms-card {
    padding: 20px;
    border-radius: 20px;
  }

  .terms-card h3 {
    font-size: 19px;
  }

  .terms-card p {
    font-size: 14px;
  }

  .terms-row {
    padding: 18px;
    gap: 13px;
    border-radius: 19px;
  }

  .terms-icon {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  .terms-icon svg {
    width: 21px;
    height: 21px;
  }

  .terms-row h3 {
    font-size: 16px;
  }

  .terms-row p {
    font-size: 14px;
  }
}