/* Terms & Conditions page-specific styles. Keep minimal; rely on base.css for core layout/typography. */

.terms-header {
  padding: clamp(24px, 4vw, 56px) 0;
}

.terms-container {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: 16px;
}

.terms-header .lead {
  margin-top: 8px;
  opacity: 0.9;
}

.terms-header .meta {
  margin-top: 8px;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Table of contents */
.terms-toc {
  position: relative;
  margin-bottom: 8px;
}

.terms-toc ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 16px;
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0;
}

@media (min-width: 720px) {
  .terms-toc ul {
    grid-template-columns: 1fr 1fr;
  }
}

.terms-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  outline: none;
  border: 1px solid var(--surface-3, rgba(255,255,255,0.12));
  background: var(--surface-2, rgba(255,255,255,0.04));
}

.terms-toc a:hover,
.terms-toc a:focus {
  border-color: var(--accent, #7aa2ff);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent, #7aa2ff) 30%, transparent);
}

.terms-toc a[aria-current="true"] {
  border-color: var(--accent, #7aa2ff);
}

/* Sections */
.legal-section {
  padding: clamp(18px, 3vw, 28px) 0;
  border-top: 1px solid var(--surface-3, rgba(255,255,255,0.12));
}

.legal-section h2 {
  scroll-margin-top: 96px; /* header offset for anchor jumps */
  margin-bottom: 8px;
}

.legal-section h3 {
  margin-top: 16px;
  margin-bottom: 6px;
}

.legal-section p + ul,
.legal-section p + ol {
  margin-top: 6px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.contact-list li + li {
  margin-top: 4px;
}
