/* ═══════════════════════════════════════════════════════════════════════
   PETDALIA LEGAL PAGES — Layout de lectura cómoda
   Reutiliza tokens y nav de styles.css; añade tipografía editorial.
   ═══════════════════════════════════════════════════════════════════════ */

.legal-page {
  background: var(--bg);
  min-height: 100vh;
}

.legal-page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 96px;
}

.legal-page .legal-eyebrow {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.legal-page h1 {
  font-family: 'Figtree', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-page .legal-intro {
  font-family: 'Noto Sans', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.legal-page .legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.legal-page .legal-draft-banner {
  background: rgba(200, 162, 92, 0.12);
  border: 1px solid rgba(200, 162, 92, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 40px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.legal-page .legal-draft-banner::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-amber);
  background-image: linear-gradient(135deg, var(--accent-amber), #B8923D);
  display: inline-block;
  margin-top: 2px;
  box-shadow: 0 0 0 4px rgba(200, 162, 92, 0.2);
}

.legal-page h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin: 36px 0 12px;
}

.legal-page h2:first-of-type {
  margin-top: 8px;
}

.legal-page p {
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-page p strong {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-page a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.legal-page a:hover {
  color: var(--primary);
}

.legal-page .legal-contact-card {
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-page .legal-contact-card h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-page .legal-contact-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 200ms ease;
}

.legal-page .legal-back:hover {
  background: var(--primary-pale);
  border-color: var(--primary-lighter);
  color: var(--primary-dark);
  transform: translateX(-2px);
}

.legal-page .legal-back svg {
  width: 16px;
  height: 16px;
}

/* ── 404 specific ── */
.error-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--bg);
}

.error-404__mascot {
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.error-404__code {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.error-404__title {
  font-family: 'Figtree', sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}

.error-404__desc {
  font-family: 'Noto Sans', sans-serif;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.55;
}

/* ── Contact specific ── */
.contact-grid {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
}

.contact-row__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.contact-row__icon svg {
  width: 22px;
  height: 22px;
}

.contact-row__body h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.contact-row__body a,
.contact-row__body p {
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.contact-row__body a {
  text-decoration: none;
}

.contact-row__body a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
