/* ===============================
   LEGAL PAGES — BASE LAYOUT
   =============================== */

.sp-legal-main {
  padding-top: 90px; /* под фиксированный хедер */
}

.sp-legal-page {
  border-radius: 32px;
  padding: 26px 26px 24px;
  max-width: 880px;
  margin-inline: auto;
  background:
    radial-gradient(circle at top left, #ffe6d3 0, transparent 60%),
    var(--sp-surface);
  border: 1px solid var(--sp-border-soft);
  box-shadow: var(--sp-shadow-soft);
}

/* ===============================
   TYPOGRAPHY
   =============================== */

.sp-legal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-text-muted);
  margin-bottom: 10px;
}

.sp-legal-title {
  font-family: "SolePointDisplay", system-ui, sans-serif;
  font-size: clamp(24px, 2.4vw + 18px, 30px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--sp-text-main);
}

.sp-legal-intro {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 10px;
}

.sp-legal-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--sp-text-main);
}

.sp-legal-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(138, 93, 56, 0.3);
}

.sp-legal-section p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 8px;
}

.sp-legal-section ul {
  margin: 0 0 8px 18px;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}

.sp-legal-link {
  color: var(--sp-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease-out,
    border-color 0.2s ease-out;
}

.sp-legal-link:hover {
  color: var(--sp-accent-strong);
  border-color: var(--sp-accent-strong);
}

/* ===============================
   TABLE OF CONTENTS
   =============================== */

.sp-legal-toc {
  margin: 16px 0 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 106, 60, 0.08) 0,
      rgba(255, 106, 60, 0.08) 22px,
      transparent 22px,
      transparent 44px
    ),
    #fffdf9;
  border: 1px dashed rgba(138, 93, 56, 0.4);
}

.sp-legal-toc ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.sp-legal-toc a {
  color: var(--sp-text-main);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease-out,
    border-color 0.2s ease-out;
}

.sp-legal-toc a:hover {
  color: var(--sp-accent-strong);
  border-color: var(--sp-accent-strong);
}

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

@media (max-width: 768px) {
  .sp-legal-page {
    margin-inline: 16px;
    padding-inline: 18px;
  }
}

@media (max-width: 480px) {
  .sp-legal-page {
    margin-inline: 10px;
    padding-inline: 14px;
  }
}
