.terms-page {
  padding: clamp(34px, 6vw, 76px) 24px clamp(44px, 7vw, 92px);
  background:
    radial-gradient(circle at 15% 15%, rgba(14, 180, 228, .22), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(88, 99, 255, .35), transparent 36%),
    var(--orbit-blue);
}

.terms-hero {
  width: min(900px, 100%);
  margin: 0 auto;
}

.terms-panel {
  padding: clamp(30px, 5vw, 44px);
  border: 1px solid #9ecff0;
  border-radius: 22px;
  background: var(--orbit-pale);
  box-shadow: 0 24px 60px rgba(2, 17, 108, .3);
  color: #1a2e4d;
  text-align: center;
}

.terms-panel h1 {
  margin: 0 0 4px;
  color: var(--orbit-blue);
  font-family: "Archivo", sans-serif;
  font-size: clamp(38px, 6vw, 48px);
  line-height: 1;
  letter-spacing: -.035em;
}

.terms-panel > p {
  max-width: 760px;
  margin: 16px auto 0;
  color: #2b456a;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.terms-accordions {
  width: min(760px, 100%);
  margin: 28px auto 0;
  display: grid;
  gap: 13px;
}

.terms-accordion {
  overflow: hidden;
  border: 1.5px solid #a9d2ee;
  border-radius: 16px;
  background: #fff;
  color: #0a2e63;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.terms-accordion[open] {
  border-color: var(--orbit-blue);
  box-shadow: 0 10px 24px rgba(14, 97, 162, .15);
}

.terms-accordion summary {
  min-height: 82px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  list-style: none;
}

.terms-accordion summary::-webkit-details-marker { display: none; }
.terms-accordion summary:hover { background: #f5fbff; }
.terms-accordion summary:focus-visible {
  outline: 3px solid var(--orbit-cyan);
  outline-offset: -3px;
}

.terms-accordion__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e9f6ff;
  color: var(--orbit-blue);
  font-size: 21px;
}

.terms-accordion summary strong,
.terms-accordion summary small { display: block; }
.terms-accordion summary strong {
  font-family: "Archivo", sans-serif;
  font-size: clamp(17px, 2vw, 21px);
}
.terms-accordion summary small {
  margin-top: 4px;
  color: #567091;
  font-size: 14px;
}
.terms-accordion__arrow {
  justify-self: end;
  transition: transform .18s ease;
}
.terms-accordion[open] .terms-accordion__arrow { transform: rotate(180deg); }

.terms-document {
  border-top: 1px solid #d9ebf7;
  color: #1b315e;
}

.terms-section {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: clamp(28px, 5vw, 48px);
  scroll-margin-top: 106px;
}
.terms-section + .terms-section { border-top: 1px solid #d9ebf7; }
.terms-section:nth-child(even) { background: #f5fbff; }

.terms-section__number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #d8f2ff;
  color: #001ee6;
  font: 800 15px/1 "Archivo", sans-serif;
}

.terms-section h2 {
  margin: 4px 0 17px;
  color: #001ee6;
  font: 700 clamp(23px, 3vw, 31px)/1.13 "Archivo", sans-serif;
  letter-spacing: -.025em;
}

.terms-section p,
.terms-sublist li,
.terms-privacy-list li {
  color: #253b68;
  font-size: 17px;
  line-height: 1.72;
}
.terms-section p { margin: 0; }
.terms-section p + p { margin-top: 13px; }

.terms-sublist {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding-left: 24px;
}
.terms-sublist li { padding-left: 6px; }

.terms-section--privacy {
  background: #f5fbff !important;
}
.terms-section--privacy .terms-section__number {
  background: var(--orbit-blue);
  color: #fff;
}

.terms-privacy-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}
.terms-privacy-list li {
  position: relative;
  padding: 18px 20px 18px 52px;
  border: 1px solid #c8e3f4;
  border-radius: 13px;
  background: #fff;
}
.terms-check {
  position: absolute;
  top: 20px;
  left: 19px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orbit-cyan);
  color: #04248c;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 767px) {
  .terms-page { padding: 22px 14px 48px; }
  .terms-panel { padding: 28px 16px; border-radius: 16px; }
  .terms-panel h1 { letter-spacing: -.03em; }
  .terms-accordions { margin-top: 24px; }
  .terms-accordion summary {
    min-height: 76px;
    padding: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 11px;
  }
  .terms-accordion__icon { width: 42px; height: 42px; font-size: 19px; }
  .terms-accordion summary small { font-size: 12px; }
  .terms-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 25px 19px 30px;
  }
  .terms-section__number {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
  .terms-section h2 { margin-top: 0; }
  .terms-section p,
  .terms-sublist li,
  .terms-privacy-list li { font-size: 16px; line-height: 1.68; }
  .terms-privacy-list li { padding: 16px 15px 16px 46px; }
  .terms-check { top: 18px; left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .terms-accordion,
  .terms-accordion__arrow { transition: none; }
}
