/* Shared styling for standalone legal pages.
 *
 * Extracted from the inline <style> block that public/sub-procesadores.html and
 * its siblings each carried a copy of. The EU legal pages (it-IT, ca-ES) link
 * this instead of duplicating 4 KB of CSS six more times. The Spanish pages
 * still carry their inline copy — moving them is a separate, purely cosmetic
 * change and not worth coupling to a legal-content release.
 */
:root {
      --bg: #f8f6f2;
      --bg-alt: #f3efe9;
      --ink: #24211d;
      --muted: #6a635b;
      --line: #dfd8cf;
      --accent: #243F37;
      --rust: #243F37;
      --serif: "Lora", serif;
      --sans: "Inter", "Segoe UI", sans-serif;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { overflow-x: hidden; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--sans);
      color: var(--ink);
      background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 240px);
      line-height: 1.6;
    }
    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }

    .wrap {
      width: min(960px, 92vw);
      margin: 0 auto;
      padding: 32px 0 64px;
    }

    header.site {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 28px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 40px;
    }
    .brand {
      display: flex;
      flex-direction: column;
      line-height: 1;
    }
    .brand .name {
      font-family: var(--serif);
      font-weight: 800;
      font-size: 1.4rem;
    }
    .brand .town {
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      color: var(--muted);
      margin-top: 4px;
      text-transform: uppercase;
    }
    .nav-mini a {
      font-size: 0.92rem;
      color: var(--muted);
      margin-left: 16px;
    }

    h1 {
      font-family: var(--serif);
      font-weight: 800;
      font-size: clamp(2rem, 5vw, 2.8rem);
      line-height: 1.1;
      letter-spacing: -0.5px;
      margin: 0 0 8px;
    }
    h2 {
      font-family: var(--serif);
      font-weight: 700;
      font-size: 1.45rem;
      letter-spacing: -0.3px;
      margin-top: 28px;
      margin-bottom: 10px;
      scroll-margin-top: 16px;
    }
    h3 {
      font-weight: 700;
      font-size: 1.05rem;
      margin-top: 18px;
      margin-bottom: 6px;
      color: var(--ink);
    }
    p, li { color: var(--muted); }
    ul, ol { padding-left: 1.2rem; }
    li { margin-bottom: 4px; }
    .meta { margin-bottom: 8px; font-size: 0.95rem; }
    .updated-note { margin-bottom: 16px; font-size: 0.98rem; }
    .card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 22px 26px;
      margin-top: 8px;
    }
    .card p + p { margin-top: 10px; }
    .notice {
      background: #fff8f0;
      border: 1px solid #e8c9a8;
      border-radius: 10px;
      padding: 14px 18px;
      margin: 16px 0 8px;
      font-size: 0.95rem;
      color: var(--ink);
    }
    table.legal {
      width: 100%;
      border-collapse: collapse;
      margin-top: 12px;
      font-size: 0.88rem;
    }
    table.legal th, table.legal td {
      border: 1px solid var(--line);
      padding: 8px 10px;
      text-align: left;
      vertical-align: top;
      color: var(--muted);
    }
    table.legal th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
    .badge {
      display: inline-block;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 2px 8px;
      border-radius: 4px;
      background: #E5EDE9;
      color: #243F37;
    }
    .badge.planned { background: #D9C5B3; color: #5A3A26; }
    .badge.pending { background: #eee; color: #555; }
    .badge.dpa { background: #eee; color: #555; }

    footer.site {
      border-top: 1px solid var(--line);
      padding-top: 24px;
      margin-top: 8px;
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      justify-content: space-between;
      align-items: center;
      color: var(--muted);
      font-size: 0.92rem;
    }
    footer.site nav a { margin-right: 14px; }
    footer.site .meta { font-size: 0.85rem; }

    @media (max-width: 480px) {
      .wrap { padding: 24px 0 48px; }
      header.site { flex-direction: column; align-items: flex-start; gap: 12px; }
      .nav-mini a { margin-left: 0; margin-right: 12px; }
      table.legal, table.legal thead, table.legal tbody, table.legal tr, table.legal th, table.legal td { display: block; }
      table.legal thead { display: none; }
      table.legal td { border: none; border-bottom: 1px solid var(--line); }
      table.legal tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 4px; }
    }

/* Per-vendor detail list rendered by scripts/generate-subprocessor-tables.mjs. */
.legal-detail { margin: 16px 0; }
.legal-detail dt {
  font-weight: 600;
  margin-top: 14px;
  color: var(--ink);
}
.legal-detail dd {
  margin: 4px 0 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Transfer-basis emphasis in generated tables. */
table.legal td small { color: var(--muted); font-size: 0.82rem; }
