/*
  Estilos compartidos de las páginas legales de NCO (Privacidad y Soporte).
  Diseño adaptado del borrador de Ángel para Políticas de Privacidad de
  Cardinal: fondo gris claro, tarjeta blanca, acento azul, tipografía del
  sistema, modo oscuro automático.
*/
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1a1d21;
  --text-soft: #565c66;
  --border: #e3e6ea;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
  --radius: 14px;
  --maxw: 820px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --text: #eef1f5;
    --text-soft: #a4acb8;
    --border: #262c34;
    --accent: #5b8dff;
    --accent-soft: #1b2637;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 80px; }

header.page-head { text-align: center; margin-bottom: 8px; }
header.page-head h1 { font-size: 1.9rem; margin: 0 0 6px; letter-spacing: -0.02em; }
header.page-head p { color: var(--text-soft); margin: 0 auto; font-size: 1rem; max-width: 56ch; }
header.page-head .updated { font-size: .85rem; margin-top: 10px; }

.tabs {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 16px 0; margin: 20px 0 28px;
  background: linear-gradient(var(--bg) 70%, rgba(0,0,0,0));
}
.tab {
  appearance: none; border: 1px solid var(--border); cursor: pointer;
  background: var(--surface); color: var(--text-soft);
  padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  transition: all .15s ease; font-family: inherit;
}
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 34px; margin-bottom: 24px;
}
@media (max-width: 560px) { .card { padding: 24px 20px; } }

.app-panel { display: none; }
.app-panel.active { display: block; }

.app-title { font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -0.02em; }
.section-title { font-size: 1.35rem; margin: 0 0 14px; letter-spacing: -0.02em; }
.updated { color: var(--text-soft); font-size: .9rem; margin: 0 0 18px; }
.lead { font-size: 1.02rem; margin: 0 0 8px; }

h3.section { font-size: 1.12rem; margin: 26px 0 6px; }
h3.section:first-of-type { margin-top: 18px; }
.card p { margin: 6px 0; color: var(--text); }
.card dt.section { font-size: 1.12rem; margin: 26px 0 6px; font-weight: 600; }
.card dd { margin: 6px 0 0; color: var(--text-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

.pending {
  display: inline-block; font-weight: 700; font-size: .92em;
  color: #a15c00; background: #fff2df; border: 1px solid #f0d9ab;
  padding: 1px 9px; border-radius: 7px;
}
@media (prefers-color-scheme: dark) {
  .pending { color: #ffc978; background: #3a2c12; border-color: #5a441c; }
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; border: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: .92rem;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

footer.page-foot { text-align: center; color: var(--text-soft); font-size: .85rem; margin-top: 40px; }
