.terms-page {
  --terms-cyan: #57d7ff;
  --terms-text: #edf7ff;
  --terms-muted: #8fa7be;
  --terms-line: rgba(151, 203, 236, 0.14);
  position: relative;
  overflow: hidden;
  padding: calc(var(--frostline-fixed-stack-height, 72px) + clamp(42px, 7vw, 94px)) 0 100px;
  color: var(--terms-text);
  background:
    radial-gradient(circle at 12% 5%, rgba(35, 117, 171, 0.16), transparent 31%),
    radial-gradient(circle at 91% 20%, rgba(83, 74, 203, 0.13), transparent 30%),
    #071426;
}

.terms-page::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -120px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(107, 209, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 65px rgba(107, 209, 255, 0.025),
    0 0 0 130px rgba(107, 209, 255, 0.018);
  pointer-events: none;
}

.terms-page > .site-container {
  position: relative;
  z-index: 1;
}

.terms-hero {
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(35px, 6vw, 72px);
  border: 1px solid var(--terms-line);
  border-radius: 28px;
  background:
    linear-gradient(125deg, rgba(11, 30, 54, 0.97), rgba(15, 31, 62, 0.86)),
    radial-gradient(circle at 70% 20%, rgba(82, 222, 255, 0.2), transparent 30%);
  box-shadow: 0 35px 90px rgba(0, 5, 16, 0.3);
}

.terms-hero__copy {
  min-width: 0;
  max-width: 100%;
}

.terms-eyebrow {
  margin: 0 0 15px;
  color: var(--terms-cyan);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.terms-hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.terms-hero__lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: #aac0d5;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.terms-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.terms-button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid rgba(161, 213, 244, 0.2);
  border-radius: 9px;
  color: #deeffa;
  background: rgba(20, 45, 74, 0.68);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.terms-button:hover {
  border-color: rgba(104, 220, 255, 0.58);
  transform: translateY(-2px);
}

.terms-button--primary {
  border-color: transparent;
  color: #061421;
  background: linear-gradient(135deg, #e2f8ff, #71dbfb);
}

.terms-hero__meta {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(143, 205, 238, 0.13);
  border-radius: 13px;
  background: rgba(5, 16, 31, 0.44);
}

.terms-hero__meta span {
  color: #7690a8;
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-hero__meta strong {
  font-size: var(--text-xs);
}

.terms-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 70px;
}

.terms-highlights article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px 24px;
  border: 1px solid var(--terms-line);
  border-radius: 15px;
  background: rgba(12, 29, 51, 0.76);
}

.terms-highlights article > span {
  min-width: 53px;
  color: var(--terms-cyan);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.terms-highlights strong {
  display: block;
  font-size: var(--text-xs);
}

.terms-highlights p {
  margin: 3px 0 0;
  color: #758da5;
  font-size: var(--text-2xs);
  line-height: 1.45;
}

.terms-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(35px, 6vw, 80px);
  align-items: start;
}

.terms-nav {
  position: sticky;
  top: calc(var(--frostline-fixed-stack-height, 72px) + 24px);
}

.terms-nav > p {
  margin: 0 0 15px;
  color: #6f879e;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terms-nav ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: terms-navigation;
}

.terms-nav li {
  counter-increment: terms-navigation;
}

.terms-nav a {
  display: flex;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 7px;
  color: #90a8bd;
  font-size: var(--text-2xs);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.terms-nav a::before {
  content: counter(terms-navigation, decimal-leading-zero);
  color: #466a86;
  font-size: var(--text-2xs);
  font-weight: 700;
}

.terms-nav a:hover {
  color: #e8f7ff;
  background: rgba(68, 168, 215, 0.08);
}

.terms-nav__contact {
  display: grid;
  gap: 5px;
  margin-top: 25px;
  padding: 17px;
  border: 1px solid var(--terms-line);
  border-radius: 11px;
  background: rgba(12, 29, 51, 0.66);
}

.terms-nav__contact span {
  color: #748ba1;
  font-size: var(--text-2xs);
}

.terms-nav__contact a {
  display: inline;
  padding: 0;
  color: var(--terms-cyan);
  font-size: var(--text-2xs);
}

.terms-nav__contact a::before {
  content: none;
}

.terms-document {
  min-width: 0;
}

.terms-notice {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
  padding: 24px 27px;
  border: 1px solid rgba(95, 214, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 80, 112, 0.25), rgba(20, 42, 70, 0.36));
}

.terms-notice strong {
  color: var(--terms-cyan);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-notice p {
  margin: 0;
  color: #b6cada;
  font-size: var(--text-sm);
  line-height: 1.7;
}

.terms-section {
  scroll-margin-top: calc(var(--frostline-fixed-stack-height, 72px) + 18px);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  padding: clamp(35px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--terms-line);
}

.terms-section__number {
  color: var(--terms-cyan);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.11em;
}

.terms-section h2 {
  margin: -8px 0 22px;
  color: #f3f9ff;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.terms-section h3 {
  margin: 28px 0 10px;
  color: #dbefff;
  font-size: var(--text-base);
}

.terms-section p,
.terms-section li {
  color: var(--terms-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.terms-section p {
  margin: 0 0 17px;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-section ol {
  display: grid;
  gap: 9px;
  margin: 14px 0 22px;
  padding-left: 22px;
}

.terms-section a {
  color: #6fddff;
  text-underline-offset: 3px;
}

.terms-company {
  display: grid;
  margin: 27px 0 0;
  border: 1px solid var(--terms-line);
  border-radius: 13px;
  overflow: hidden;
}

.terms-company > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 1.4fr;
  gap: 20px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--terms-line);
}

.terms-company > div:last-child {
  border-bottom: 0;
}

.terms-company dt {
  color: #7189a0;
  font-size: var(--text-2xs);
}

.terms-company dd {
  margin: 0;
  color: #d5e7f4;
  font-size: var(--text-2xs);
}

.terms-inline-note {
  margin-top: 25px;
  padding: 20px 22px;
  border-left: 2px solid var(--terms-cyan);
  border-radius: 0 10px 10px 0;
  background: rgba(29, 66, 94, 0.2);
}

.terms-inline-note strong {
  display: block;
  margin-bottom: 6px;
  color: #dff6ff;
  font-size: var(--text-2xs);
}

.terms-inline-note p {
  font-size: var(--text-xs);
}

.privacy-hero h1 {
  max-width: 850px;
  font-size: clamp(2.9rem, 7.2vw, 6.2rem);
}

.privacy-card-grid,
.privacy-provider-grid,
.privacy-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.privacy-card,
.privacy-provider-grid article,
.privacy-rights-grid article {
  min-width: 0;
  padding: 20px 21px;
  border: 1px solid var(--terms-line);
  border-radius: 12px;
  background: rgba(12, 29, 51, 0.62);
}

.privacy-card h3,
.privacy-provider-grid h3 {
  margin: 0 0 9px;
  color: #e1f3ff;
  font-size: var(--text-sm);
}

.privacy-card p,
.privacy-provider-grid p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.65;
}

.privacy-provider-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-purpose-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--terms-line);
  border-radius: 13px;
  background: var(--terms-line);
}

.privacy-purpose-list > div {
  min-width: 0;
  padding: 20px 21px;
  background: #0a1a2e;
}

.privacy-purpose-list strong,
.privacy-rights-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #def4ff;
  font-size: var(--text-xs);
}

.privacy-purpose-list p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.65;
}

.privacy-retention-list {
  display: grid;
  margin: 25px 0;
  overflow: hidden;
  border: 1px solid var(--terms-line);
  border-radius: 13px;
}

.privacy-retention-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 1.6fr;
  gap: 20px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--terms-line);
}

.privacy-retention-list > div:last-child {
  border-bottom: 0;
}

.privacy-retention-list dt {
  color: #d8edfa;
  font-size: var(--text-2xs);
  font-weight: 700;
}

.privacy-retention-list dd {
  margin: 0;
  color: var(--terms-muted);
  font-size: var(--text-2xs);
  line-height: 1.65;
}

.privacy-rights-grid article {
  display: grid;
  gap: 2px;
}

.privacy-rights-grid strong {
  margin: 0;
}

.privacy-rights-grid span {
  color: var(--terms-muted);
  font-size: var(--text-2xs);
  line-height: 1.55;
}

.terms-section--form {
  border-bottom: 0;
}

.terms-document__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--terms-line);
  border-radius: 16px;
  background: rgba(13, 32, 56, 0.85);
}

.terms-document__footer strong {
  display: block;
  margin-bottom: 5px;
}

.terms-document__footer p {
  margin: 0;
  color: #7890a6;
  font-size: var(--text-2xs);
}

@media (max-width: 960px) {
  .terms-hero {
    min-height: 0;
    display: grid;
  }

  .terms-hero__meta {
    width: fit-content;
  }

  .terms-layout {
    grid-template-columns: 1fr;
  }

  .terms-nav {
    position: static;
    padding: 22px;
    border: 1px solid var(--terms-line);
    border-radius: 14px;
    background: rgba(12, 29, 51, 0.72);
  }

  .terms-nav ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-nav__contact {
    display: none;
  }
}

@media (max-width: 700px) {
  #main-content:has(> .terms-page) {
    padding-top: 0;
  }

  .terms-page {
    padding: calc(var(--frostline-fixed-stack-height, 72px) + 26px) 0 70px;
  }

  .terms-hero {
    min-width: 0;
    padding: 29px 23px;
    border-radius: 19px;
  }

  .terms-hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10.5vw, 3.35rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .terms-hero__lead {
    max-width: 100%;
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
  }

  .terms-highlights {
    grid-template-columns: 1fr;
    margin-bottom: 35px;
  }

  .terms-nav ol {
    grid-template-columns: 1fr;
  }

  .terms-notice {
    grid-template-columns: 1fr;
  }

  .terms-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 38px 0;
  }

  .terms-section h2 {
    margin-top: 0;
  }

  .terms-company > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .terms-document__footer {
    display: grid;
  }

  .privacy-card-grid,
  .privacy-provider-grid,
  .privacy-purpose-list,
  .privacy-rights-grid {
    grid-template-columns: 1fr;
  }

  .privacy-retention-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .terms-hero__actions,
  .terms-nav,
  .terms-highlights,
  .terms-document__footer {
    display: none !important;
  }

  .terms-page,
  .terms-hero {
    color: #111;
    background: #fff;
    box-shadow: none;
  }

  .terms-hero {
    min-height: 0;
    padding: 0 0 30px;
    border: 0;
  }

  .terms-hero h1,
  .terms-section h2,
  .terms-section h3,
  .terms-section p,
  .terms-section li {
    color: #111;
  }

  .terms-layout {
    display: block;
  }
}
