/* Magallanes — Política de privacidad
   Paleta y tipografía replicadas de src/styles/tokens.css (light theme). */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --background: #f3f6fa;
  --surface: #ffffff;
  --surface-subtle: #eaf0f6;
  --text-primary: #15283e;
  --text-secondary: #52657a;
  --text-muted: #5d6d80;
  --border: #dce4ed;
  --primary: #a8411a;
  --primary-hover: #913613;
  --on-primary: #ffffff;
  --accent-soft: #fcece2;
  --info: #2f668d;
  --info-soft: #e9f2fa;
  --success: #207351;
  --success-soft: #e7f3ec;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-md: 0 8px 28px #18334f08;
  --shadow-lg: 0 24px 64px #18334f12;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--background);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
}

.brand img {
  height: 1.75rem;
  width: auto;
  display: block;
}

.header-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: color 140ms cubic-bezier(0.2, 0, 0, 1),
    border-color 140ms cubic-bezier(0.2, 0, 0, 1);
}

.header-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ---------- Contenido ---------- */

.page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  margin-bottom: 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0;
}

h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.625rem;
  padding-top: 0.5rem;
}

h2::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
  margin-right: 0.625rem;
  vertical-align: 0.1em;
}

p {
  margin: 0 0 0.875rem;
  color: var(--text-secondary);
}

ul {
  margin: 0 0 0.875rem;
  padding-left: 1.375rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.375rem;
}

li::marker {
  color: var(--primary);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

code {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface-subtle);
  padding: 0.1em 0.35em;
  border-radius: 0.375rem;
  color: var(--text-primary);
  word-break: break-all;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

/* ---------- Bloques ---------- */

.notice {
  background: var(--info-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--info);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.125rem;
  margin: 1.25rem 0;
}

.notice p {
  margin: 0;
  color: var(--text-primary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.625rem;
  margin: 1.5rem 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* ---------- Tabla de datos ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 34rem;
}

th {
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

td strong {
  display: block;
  font-size: 0.8125rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 2rem;
}

.site-footer-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--primary);
}

/* ---------- Mobile ---------- */

@media (max-width: 40rem) {
  .page {
    padding: 1.75rem 1rem 3rem;
  }

  .card {
    padding: 1.125rem 1.25rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-link {
    transition: none;
  }
}
