/* =========================================================
   CQM · Políticas corporativas (página independiente)
   Usa los tokens y @font-face de main.css.
   ========================================================= */
:root {
  --pol-hd: 64px;
  /* tokens de sections-base.css (esta página solo carga main.css) */
  --paper: #f1f4f6; --ink: #0b1a2c; --ink-2: #44525f;
}
html { scroll-padding-top: calc(var(--pol-hd) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.pol {
  background: var(--paper); color: var(--ink);
}
.pol main :focus-visible { outline-color: var(--ink); }

.pol-skip {
  position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 14px; border-radius: 2px;
  background: var(--hivis); color: #1a0d00; text-decoration: none; font-weight: 600;
}
.pol-skip:focus { top: 10px; }

/* Cabecera */
.pol-hd {
  position: sticky; top: 0; z-index: 20; height: var(--pol-hd);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--night); color: var(--zinc-50);
}
.pol-logo { display: block; line-height: 0; }
.pol-logo img { height: 40px; width: auto; }
.pol-back {
  font-family: var(--font-display); font-size: .95rem; font-weight: 560; color: var(--zinc-50); text-decoration: none;
  padding: 10px 0; background: linear-gradient(var(--zinc-400), var(--zinc-400)) left calc(100% - 8px) / 100% 1px no-repeat;
}
.pol-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hivis);
  transform: scaleX(0); transform-origin: 0 50%;
}
@media (hover: hover) and (pointer: fine) {
  .pol-back:hover { background-image: linear-gradient(var(--hivis), var(--hivis)); }
  .pol-toc a:hover { color: var(--ink); }
  .pol-body a:hover { text-decoration-color: var(--hivis); }
}

/* Contenedor y título */
.pol-wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.pol-intro { padding: clamp(40px, 8vh, 88px) 0 clamp(28px, 5vh, 52px); }
.pol-intro h1 {
  margin: 0 0 .35em; font-family: var(--font-display); font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4.2rem);
  font-weight: 640; font-stretch: 106%; line-height: 1; letter-spacing: -.028em; text-wrap: balance;
}
.pol-intro p { margin: 0; max-width: 62ch; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.6; color: var(--ink-2); }

/* Índice + columna de lectura */
.pol-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(64px, 12vh, 140px); }
.pol-toc { position: sticky; top: calc(var(--pol-hd) + 28px); }
.pol-toc ul { margin: 0; padding: 0; list-style: none; }
.pol-toc a {
  display: block; padding: 7px 0 7px 14px; border-left: 2px solid rgba(11, 26, 44, .12);
  font-size: .92rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color .2s ease, border-color .2s ease;
}
.pol-toc a[aria-current] { color: var(--ink); border-left-color: var(--hivis); font-weight: 560; }
.pol-toc-m { display: none; }

.pol-body { max-width: 68ch; }
.pol-art { padding-top: clamp(28px, 4vh, 40px); border-top: 1px solid rgba(11, 26, 44, .14); }
.pol-art + .pol-art { margin-top: clamp(48px, 8vh, 80px); }
.pol-art h2 {
  margin: 0 0 .8em; font-family: var(--font-display); font-size: clamp(1.45rem, 1.15rem + 1vw, 2.1rem);
  font-weight: 620; font-stretch: 104%; line-height: 1.12; letter-spacing: -.018em; text-wrap: balance;
}
.pol-art h3 { margin: 1.9em 0 .55em; font-family: var(--font-display); font-size: 1.12rem; font-weight: 620; line-height: 1.3; }
.pol-art h4 { margin: 1.5em 0 .4em; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.pol-art p, .pol-art li { font-size: 1.02rem; line-height: 1.7; }
.pol-art p { margin: 0 0 1em; }
.pol-art .pol-lead { font-size: 1.1rem; color: var(--ink); }
.pol-art ol, .pol-art ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.pol-art li { margin: .5em 0; padding-left: .2em; }
.pol-art ul > li::marker { color: var(--hivis); }
.pol-art ol > li::marker { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); }
.pol-art strong { font-weight: 640; }
.pol-more { display: block; margin-top: .3em; color: var(--ink-2); }
.pol-art .pol-labels { list-style: none; padding-left: 0; }
.pol-labels li { padding-left: 14px; border-left: 2px solid rgba(255, 125, 0, .55); }

/* Móvil: índice compacto desplegable, fijo bajo la cabecera */
@media (max-width: 980px) {
  .pol-grid { grid-template-columns: minmax(0, 1fr); }
  .pol-toc { top: var(--pol-hd); z-index: 10; margin: 0 calc(-1 * var(--gutter)) 28px; padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid rgba(11, 26, 44, .12); }
  .pol-toc-d { display: none; }
  .pol-toc-m { display: block; }
  .pol-toc-m summary {
    display: flex; align-items: center; justify-content: space-between; height: 50px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-size: .98rem; font-weight: 600;
  }
  .pol-toc-m summary::-webkit-details-marker { display: none; }
  .pol-toc-m summary::after {
    content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease-out);
  }
  .pol-toc-m[open] summary::after { transform: translateY(2px) rotate(225deg); }
  .pol-toc-m ul { max-height: 60vh; overflow-y: auto; padding-bottom: 12px; }
  html { scroll-padding-top: calc(var(--pol-hd) + 72px); }
}

/* Pie (mismo que el sitio) */
.ft { background: var(--night); border-top: 1px solid var(--hair); padding: 26px 0 calc(22px + env(safe-area-inset-bottom, 0px)); color: var(--zinc-300); }
.ft-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 48px; }
.ft-logo { display: block; line-height: 0; }
.ft-logo img { height: 52px; width: auto; }
.ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.ft-nav a { color: var(--zinc-300); text-decoration: none; font-size: .95rem; line-height: 2; transition: color .2s ease; }
.ft-legal { text-align: right; font-size: .85rem; line-height: 1.55; color: var(--zinc-400); }
.ft-legal p { margin: 0; }
.ft-slogan { color: var(--zinc-200); }
.ft-legal .ft-pol { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; margin-top: 8px; }
.ft-pol a { color: var(--zinc-300); text-decoration: underline; text-decoration-color: rgba(241, 244, 246, .3); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .ft-nav a:hover, .ft-pol a:hover { color: #fff; } }
@media (max-width: 860px) {
  .ft-grid { grid-template-columns: auto 1fr; justify-items: start; gap: 18px 24px; }
  .ft-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 2px 22px; }
  .ft-legal { grid-column: 2; grid-row: 1; justify-self: end; }
  .ft-logo img { height: 46px; }
}
