/* Despidos Chile — estilos compartidos para páginas legales
   (Política de Privacidad, Términos y condiciones)
   Replica el lenguaje visual del Landing: tipografías Instrument Serif + Manrope + JetBrains Mono,
   paleta Deep Sea / Ember / Cream. Estático y editable. */

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #F6F0E3;
  color: #0B1D33;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Skip link */
.skip-link {
  position: absolute; left: 8px; top: -100px; background: #0B1D33; color: #F6F0E3;
  padding: 12px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; z-index: 1000;
  transition: top .15s ease; text-decoration: none; border: 2px solid #E8642A;
}
.skip-link:focus { top: 8px; outline: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #E8642A; outline-offset: 2px; border-radius: 4px;
}

/* ===================== HEADER ===================== */
.dc-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,240,227,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(11,29,51,0.12);
  box-shadow: 0 8px 24px -16px rgba(11,29,51,0.25);
}
.dc-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.dc-brand { display: flex; align-items: center; gap: 16px; }
.dc-brand__logo {
  width: 58px; height: 58px; background: #0B1D33; border-radius: 12px; padding: 5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(11,29,51,0.45), 0 2px 0 rgba(255,255,255,0.05) inset;
  position: relative; flex-shrink: 0;
}
.dc-brand__logo__inner {
  width: 100%; height: 100%; background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 3px;
}
.dc-brand__logo__inner img { width: 100%; height: 100%; object-fit: contain; }
.dc-brand__logo::after {
  content: ''; position: absolute; bottom: -3px; right: -3px;
  width: 12px; height: 12px; background: #E8642A; border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(246,240,227,0.95);
}
.dc-brand__name {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-size: 27px; letter-spacing: -0.015em; color: #0B1D33; line-height: 1;
}
.dc-brand__name em {
  color: #E8642A; font-style: italic;
}
.dc-brand__tagline {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px; letter-spacing: 0.2em; color: #26405F; margin-top: 5px;
}
.dc-nav { display: flex; gap: 28px; font-size: 14px; color: #26405F; font-weight: 500; align-items: center; }
.dc-nav a { padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color .15s ease; }
.dc-nav a:hover { border-bottom-color: #E8642A; }
.dc-header__cta {
  background: #E8642A; color: #fff; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 10px 24px -6px rgba(162,61,26,0.45), 0 4px 10px rgba(92,31,13,0.2);
  letter-spacing: 0.01em;
}
@media (max-width: 980px) {
  .dc-nav, .dc-header__cta { display: none; }
}

/* ===================== HERO / TITLE ===================== */
.legal-hero {
  background: linear-gradient(180deg, #F6F0E3 0%, #F0E8D5 100%);
  padding: 72px 32px 56px;
  border-bottom: 1px solid rgba(11,29,51,0.08);
  position: relative; overflow: hidden;
}
.legal-hero__inner { max-width: 920px; margin: 0 auto; position: relative; }
.legal-hero__crumbs {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #5A7290;
  display: flex; gap: 10px; align-items: center;
}
.legal-hero__crumbs a:hover { color: #0B1D33; }
.legal-hero__crumbs span { opacity: 0.5; }
.legal-hero__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #A87C30;
  margin-top: 22px;
}
.legal-hero h1 {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-weight: 400; font-size: clamp(44px, 5.5vw, 72px); line-height: 1.0;
  letter-spacing: -0.022em; color: #0B1D33; margin: 14px 0 18px;
}
.legal-hero h1 em { font-style: italic; color: #E8642A; }
.legal-hero__sub {
  font-size: 18px; color: #26405F; max-width: 720px; margin: 0; line-height: 1.55;
}
.legal-hero__meta {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(11,29,51,0.12);
  display: flex; gap: 36px; flex-wrap: wrap; font-size: 13px; color: #26405F;
}
.legal-hero__meta strong { color: #0B1D33; font-weight: 600; }

/* ===================== BODY ===================== */
.legal-body {
  max-width: 920px; margin: 0 auto; padding: 72px 32px 96px;
  display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start;
}
@media (max-width: 880px) {
  .legal-body { grid-template-columns: 1fr; gap: 32px; }
}
.legal-toc {
  position: sticky; top: 96px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; line-height: 1.5;
}
.legal-toc__title {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #A87C30; margin-bottom: 14px;
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: tocnum; display: flex; flex-direction: column; gap: 10px; }
.legal-toc li { counter-increment: tocnum; }
.legal-toc a {
  color: #26405F; display: grid; grid-template-columns: 24px 1fr; gap: 8px;
  padding: 4px 0; border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px;
  transition: all .15s ease;
}
.legal-toc a::before {
  content: counter(tocnum, decimal-leading-zero);
  color: #A87C30; font-weight: 500;
}
.legal-toc a:hover { color: #0B1D33; border-left-color: #E8642A; }
@media (max-width: 880px) {
  .legal-toc { position: static; padding: 20px 24px; background: #fff; border: 1px solid #E7DCC3; border-radius: 14px; }
}

.legal-content section { margin-bottom: 56px; scroll-margin-top: 96px; }
.legal-content section:last-child { margin-bottom: 0; }
.legal-content h2 {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1;
  letter-spacing: -0.015em; color: #0B1D33; margin: 0 0 6px;
}
.legal-content h2::before {
  content: attr(data-num);
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.2em; color: #A87C30; margin-bottom: 10px;
  font-weight: 500;
}
.legal-content h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600; font-size: 16px; color: #0B1D33;
  margin: 28px 0 10px; letter-spacing: -0.005em;
}
.legal-content p { color: #26405F; font-size: 15.5px; line-height: 1.65; margin: 12px 0; max-width: 64ch; }
.legal-content p strong { color: #0B1D33; font-weight: 600; }
.legal-content a.inline { color: #0B1D33; border-bottom: 1px solid #E8642A; }
.legal-content a.inline:hover { background: rgba(232,100,42,0.08); }
.legal-content ul { margin: 14px 0; padding-left: 0; list-style: none; }
.legal-content ul li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: 15.5px; color: #26405F; line-height: 1.6; max-width: 64ch;
}
.legal-content ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 8px; height: 1.5px; background: #E8642A;
}
.legal-content ul li strong { color: #0B1D33; font-weight: 600; }
.legal-content ol.legal-list { padding-left: 22px; }
.legal-content ol.legal-list li { font-size: 15.5px; color: #26405F; line-height: 1.6; margin-bottom: 8px; padding-left: 6px; }

/* Definition table for third parties */
.legal-table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 14px; background: #fff;
  border: 1px solid #E7DCC3; border-radius: 14px; overflow: hidden;
}
.legal-table th, .legal-table td {
  padding: 14px 18px; text-align: left; vertical-align: top;
  border-bottom: 1px solid #E7DCC3;
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #A87C30; font-weight: 500; background: #F6F0E3;
}
.legal-table td { color: #26405F; }
.legal-table td strong { color: #0B1D33; font-weight: 600; }

/* Highlight card */
.legal-card {
  background: #fff; border: 1px solid #E7DCC3; border-radius: 14px;
  padding: 24px 26px; margin: 22px 0;
  box-shadow: 0 1px 2px rgba(36,23,16,0.06);
}
.legal-card__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #A87C30; margin-bottom: 12px;
}
.legal-card__row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 8px 0; font-size: 14.5px; }
.legal-card__row:not(:last-child) { border-bottom: 1px dashed #E7DCC3; }
.legal-card__row dt { color: #5A7290; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.legal-card__row dd { margin: 0; color: #0B1D33; }
.legal-card__row dd a { border-bottom: 1px solid #E8642A; }

.legal-callout {
  margin: 22px 0; padding: 20px 22px; border-radius: 12px;
  background: rgba(232,100,42,0.06); border-left: 3px solid #E8642A;
  font-size: 14.5px; color: #26405F; line-height: 1.6;
}
.legal-callout strong { color: #0B1D33; }

/* ===================== FOOTER (replicates landing) ===================== */
.dc-footer {
  background: #06121F; color: rgba(246,240,227,0.65);
  padding: 56px 32px 32px; font-size: 13px;
}
.dc-footer__grid {
  max-width: 1280px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 880px) {
  .dc-footer__grid { grid-template-columns: 1fr 1fr; }
}
.dc-footer__brand { display: flex; align-items: center; gap: 12px; }
.dc-footer__logo {
  width: 52px; height: 52px; background: #F6F0E3; border-radius: 10px; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(246,240,227,0.15), 0 6px 18px -6px rgba(0,0,0,0.4);
  position: relative; flex-shrink: 0;
}
.dc-footer__logo__inner {
  width: 100%; height: 100%; background: #fff; border-radius: 7px; padding: 3px;
  display: flex; align-items: center; justify-content: center;
}
.dc-footer__logo__inner img { width: 100%; height: 100%; object-fit: contain; }
.dc-footer__logo::after {
  content: ''; position: absolute; bottom: -3px; right: -3px;
  width: 11px; height: 11px; background: #E8642A; border-radius: 999px;
  box-shadow: 0 0 0 2px #0B1D33;
}
.dc-footer__brandname {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-size: 22px; color: #F6F0E3;
}
.dc-footer__brandname em { color: #E8642A; font-style: italic; }
.dc-footer__about { margin-top: 18px; max-width: 320px; line-height: 1.55; }
.dc-footer__coltitle {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #C99A4A; margin-bottom: 16px;
}
.dc-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dc-footer ul a { color: inherit; }
.dc-footer ul a:hover { color: #F6F0E3; }
.dc-footer__bottom {
  max-width: 1280px; margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(246,240,227,0.12);
}
.dc-footer__legal-block {
  font-size: 11.5px; color: rgba(246,240,227,0.55); line-height: 1.55;
  margin-bottom: 18px; max-width: 760px;
}
.dc-footer__legal-block strong { color: #C99A4A; }
.dc-footer__copyright {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px;
}
.dc-footer__copyright .links { display: flex; gap: 22px; }
.dc-footer__copyright .links a:hover { color: #F6F0E3; }
