/* Páginas legales estáticas (fuera de la SPA).
   La CSP del sitio es `style-src 'self'`: nada de <style> ni de style="",
   por eso todo el estilo vive en este archivo y no dentro del HTML. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin.woff2") format("woff2");
}

:root {
  --bg: #fafafa;
  --fg: #1d242b;
  --muted: #5a6a77;
  --primary: #0055b3;
  --border: rgba(29, 36, 43, 0.12);
  --card: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.topbar-inner,
.wrap,
.footer-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.topbar-inner img { height: 1.5rem; width: auto; display: block; }

.langs { display: flex; gap: 1rem; font-size: 0.8125rem; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--fg); }
.langs a[aria-current="page"] { color: var(--primary); font-weight: 600; }

.wrap { padding-top: 3rem; padding-bottom: 4rem; }

h1 {
  font-family: "Libre Franklin", Georgia, serif;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.subtitle { color: var(--muted); margin: 0 0 0.25rem; }

.updated { color: var(--muted); font-size: 0.8125rem; margin: 0 0 2.5rem; }

h2 {
  font-family: "Libre Franklin", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.375rem;
}

p { margin: 0 0 1rem; }

ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

a { color: var(--primary); }

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0.375rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

@media print {
  .topbar, .site-footer { display: none; }
  body { background: #fff; }
}
