/* =============================================================
   NEOSTRATEGIA — Legal page styles
   Extends styles.css
   ============================================================= */

.legal-page {
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
  background: var(--bg);
}

.legal-container {
  max-width: 820px;
}

.legal-header {
  margin-bottom: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.legal-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 32px;
  transition: color 0.2s, transform 0.2s;
}
.legal-back:hover {
  color: var(--magenta);
  transform: translateX(-2px);
}

.legal-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 16px;
}

.legal-updated {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.legal-section {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.legal-section h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--teal);
  margin: 0 0 20px;
  line-height: 1.3;
}

.legal-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section a {
  color: var(--magenta);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.legal-section a:hover {
  color: var(--teal);
}

/* Definition list — key/value pairs for editor & hosting info */
.legal-dl {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 12px 32px;
  margin: 0;
}
.legal-dl dt {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 2px;
}
.legal-dl dd {
  font-size: 16px;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
}

/* Responsive: stack key/value pairs on narrow screens */
@media (max-width: 640px) {
  .legal-dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .legal-dl dd {
    margin-bottom: 14px;
  }
  .legal-dl dd:last-child {
    margin-bottom: 0;
  }
}
