/* ==================================================================
   Woofit — páginas interiores (legales, soporte, prensa, contacto…).
   Van con home.css (tokens, nav, botones y pie) y esto encima: la
   cabecera sin menú, con ES/EN y «Volver», y el texto largo.
   ================================================================== */

/* Cabecera: sin enlaces de sección, el selector de idioma también en móvil. */
.nav-simple .nav-end > .lang { display: inline-flex; }

.page { padding: 136px 0 88px; }
@media (max-width: 640px) { .page { padding: 112px 0 64px; } }

/* Texto largo. El Markdown de /legal llega con párrafos que envuelven
   títulos y listas sueltas (legal.js no cambia su forma), así que el
   espaciado va por hermanos y no por párrafo. */
.prose { max-width: 720px; margin: 0 auto; color: var(--ink-2); }
.prose > * + * { margin-top: 14px; }
.prose h1 {
  font-family: var(--display); font-size: clamp(34px, 5vw, 52px); line-height: 1.05;
  letter-spacing: -0.032em; font-weight: 700; color: var(--ink); text-wrap: balance; margin-bottom: 18px;
}
.prose h2 {
  font-family: var(--display); font-size: 24px; line-height: 1.2; letter-spacing: -0.02em;
  font-weight: 700; color: var(--ink); margin-top: 44px !important; margin-bottom: 10px; text-wrap: balance;
}
.prose h3 { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); margin-top: 28px !important; margin-bottom: 6px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; }
.prose p:empty { display: none; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.prose li { list-style: disc; }
/* Las líneas «- …» del Markdown salen como <li> sin <ul>. */
.prose > li, .prose p > li, .prose article > li { margin-left: 22px; margin-top: 6px; }
.prose li::marker { color: var(--clay); }
.prose a { color: var(--sage); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--sage-deep); }
.prose a.btn { color: var(--bg); text-decoration: none; }
/* El de borde es claro: con el texto crema de arriba no se leía (20-11). */
.prose a.btn-outline { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }
.prose .lead { font-size: 19px; color: var(--muted); }
.prose .fine { font-size: 14px; color: var(--muted); }
.prose .legal-loading { color: var(--muted); font-style: italic; }
.md-table-row {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; line-height: 1.5;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 12px; margin-top: 6px; overflow-x: auto; color: var(--ink);
}
/* Bloques plegables de los legales («::: Título … :::» → <details>). */
.prose details {
  margin-top: 14px; padding: 2px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.prose details[open] { padding-bottom: 16px; }
.prose summary {
  display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer;
  list-style: none; font-size: 17px; font-weight: 600; color: var(--sage);
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::before {
  content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.2s ease;
}
.prose details[open] > summary::before { transform: rotate(45deg); }
.prose summary:hover { color: var(--sage-deep); }
.prose summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 6px; }
.prose details > li { margin-left: 22px; margin-top: 6px; }
.prose details > p { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .prose summary::before { transition: none; } }
.prose .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }

/* Contacto: un canal por tarjeta. */
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px !important; }
.channel { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.channel h2 { margin: 0 0 6px !important; font-size: 19px; }
.channel p { font-size: 15.5px; color: var(--muted); }
.channel a { display: inline-block; margin-top: 10px; font-size: 15.5px; }
@media (max-width: 560px) { .channels { grid-template-columns: 1fr; } }
.channel-wide { grid-column: 1 / -1; }

/* Denunciar: el formulario de la Ley de Servicios Digitales. Los campos a
   16px para que Safari en iPhone no haga zoom al tocarlos. */
.report-note {
  padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 15.5px !important; line-height: 1.55 !important;
}
.report-form { display: flex; flex-direction: column; gap: 20px; margin-top: 28px !important; }
.report-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.report-form label { font-size: 16px; font-weight: 600; color: var(--ink); }
.report-form .hint { font-size: 14px !important; line-height: 1.5 !important; color: var(--muted); margin: 0; }
.report-form input[type="text"],
.report-form input[type="email"],
.report-form select,
.report-form textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.report-form select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.report-form textarea { resize: vertical; min-height: 96px; }
.report-form input:focus-visible, .report-form select:focus-visible, .report-form textarea:focus-visible {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(74, 93, 78, .18); border-radius: var(--r-sm);
}
.report-form [aria-invalid="true"] { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(217, 125, 84, .16); }
.report-form .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (max-width: 560px) { .report-form .field-row { grid-template-columns: 1fr; } }
.report-form label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.report-form .check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sage); }
.report-form .check input[aria-invalid="true"] { outline: 2px solid var(--clay); outline-offset: 2px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.report-status:empty { display: none; }
.report-status { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px;
  border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.report-status p { font-size: 15.5px !important; margin: 0; }
.report-status[data-kind="ok"] { border-color: rgba(74, 93, 78, .35); color: var(--sage-deep); }
.report-status[data-kind="error"] { border-color: rgba(217, 125, 84, .45); }
.report-status a.btn { color: var(--ink); text-decoration: none; margin: 0; }
