/* Legal pages (Términos y Condiciones). Moved verbatim from the inline <style> of
   templates/legal_terms.html to keep the template under the 350-line limit; the
   privacy and cookies pages still carry their own inline copy. */
:root {
  --legal-bg: #f8f9fa;
  --legal-card: #ffffff;
  --legal-text: #1a1a2e;
  --legal-muted: #6c757d;
  --legal-accent: #0d9488;
  --legal-accent-soft: #e6fffa;
  --legal-border: rgba(0, 0, 0, 0.06);
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  margin: 0; padding: 0;
  background: var(--legal-bg);
  color: var(--legal-text);
  min-height: 100vh;
}
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.legal-nav { margin-bottom: 2rem; font-size: 14px; }
.legal-nav a { color: var(--legal-accent); font-weight: 600; text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }
.legal-header { text-align: center; margin-bottom: 2rem; }
.legal-header h1 { margin: 0 0 0.5rem; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.legal-header .legal-updated { font-size: 0.85rem; color: var(--legal-muted); }
.legal-toc {
  background: var(--legal-card);
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-toc h2 { margin: 0 0 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--legal-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; }
.legal-toc li { margin-bottom: 0.35rem; font-size: 0.9rem; line-height: 1.4; }
.legal-toc a { color: var(--legal-accent); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-section {
  background: var(--legal-card);
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.legal-section h2 { margin: 0 0 0.75rem; font-size: 1.1rem; font-weight: 600; color: var(--legal-text); }
.legal-section h3 { margin: 1rem 0 0.5rem; font-size: 0.95rem; font-weight: 600; }
.legal-section p, .legal-section li { font-size: 0.9rem; line-height: 1.6; color: #374151; }
.legal-section ul, .legal-section ol { padding-left: 1.25rem; }
.legal-section ul li { margin-bottom: 0.35rem; }
/* Plain-language summary box at the top of the terms (uses the existing soft accent). */
.legal-section.legal-summary { background: var(--legal-accent-soft); border-color: rgba(13, 148, 136, 0.25); }
.legal-section.legal-summary .legal-summary-note { font-size: 0.8rem; color: var(--legal-muted); margin-bottom: 0; }
.legal-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--legal-border);
  font-size: 0.85rem;
  color: var(--legal-muted);
}
.legal-footer a { color: var(--legal-accent); text-decoration: none; margin: 0 0.5rem; }
.legal-footer a:hover { text-decoration: underline; }
@media print {
  body { background: #fff; }
  .legal-wrap { max-width: 100%; padding: 1rem; }
  .legal-nav, .legal-footer { display: none; }
  .legal-section { border: none; box-shadow: none; padding: 0; margin-bottom: 1.5rem; }
  .legal-section.legal-summary { background: none; }
  .legal-toc { border: 1px solid #ccc; }
}
