/* ============================================================
   Legal Pages (Privacy Policy, Terms of Service)
   Extends style.css — shares nav, footer, buttons, typography
   ============================================================ */

.legal {
  padding: 8rem 0 var(--section-padding);
}

.legal-header {
  margin-bottom: 3.5rem;
}

.legal-header .section-tag {
  margin-bottom: 1rem;
  display: block;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* Body content */
.legal-body {
  max-width: 720px;
}

.legal-section {
  margin-bottom: 2.5rem;
}

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

.legal-section h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.legal-section h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

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

.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
}

.legal-section li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-600);
}

.legal-section a {
  color: var(--teal-400);
  transition: color 0.2s;
}

.legal-section a:hover {
  color: var(--teal-500);
  text-decoration: underline;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Disclaimer callout */
.legal-disclaimer {
  background: rgba(245 158 11 / 0.06);
  border: 1px solid rgba(245 158 11 / 0.15);
  border-left: 3px solid var(--amber-500);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.legal-disclaimer p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.legal-disclaimer strong {
  color: var(--amber-400);
}

@media (max-width: 768px) {
  .legal {
    padding: 6.5rem 0 var(--section-padding);
  }
}
