.terms-page .terms-hero {
  padding-bottom: 1.5rem;
}

.terms-hero h1 {
  max-width: 18ch;
  margin: 0.35rem 0 0.75rem;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.terms-hero__lead {
  max-width: 45rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.terms-updated {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.terms-main {
  padding-top: 1.5rem;
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 48rem);
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.terms-nav {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid #000000;
  border-radius: 16px;
  background: var(--bg-card);
}

.terms-nav p {
  margin: 0 0 0.4rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-nav a {
  padding: 0.35rem 0.4rem;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.terms-nav a:hover,
.terms-nav a:focus-visible {
  color: var(--text-primary);
  background: var(--bg-card);
}

.terms-content {
  display: grid;
  gap: 1rem;
}

.terms-section,
.terms-contact {
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border: 1px solid #000000;
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 12px 28px #000000;
  scroll-margin-top: 6.5rem;
}

.terms-section h2,
.terms-contact h2 {
  margin: 0 0 0.7rem;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.terms-section p,
.terms-contact p,
.terms-section li {
  color: var(--text-soft);
  line-height: 1.65;
}

.terms-section p,
.terms-contact p {
  margin: 0;
}

.terms-section p + p {
  margin-top: 0.8rem;
}

.terms-section ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.terms-section--important {
  border-color: #000000;
  background: var(--bg-card-gradient);
}

.terms-product-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terms-contact {
  border-color: #000000;
  background: var(--bg-card-gradient);
}

.terms-contact .button {
  margin-top: 1rem;
}

@media (max-width: 800px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .terms-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-nav p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .terms-nav,
  .terms-product-list {
    grid-template-columns: 1fr;
  }
}
