/* The trust pages in the taste design: /cumplimiento-isp-colombia, /security, the legal
   text's extras (/privacy, /terms) and /gracias. Scoped by section id or a cf- class. */

/* ---------- /cumplimiento-isp-colombia ---------- */
/* the deadlines table: three columns at 1440, each row a block on a phone */
.cf-table { width: 100%; margin-top: var(--s-5); border-collapse: collapse; font-size: var(--t-body); }
.cf-table th, .cf-table td { text-align: left; vertical-align: top; padding: var(--s-2) var(--s-4) var(--s-2) 0; border-bottom: 1px solid var(--line); }
.cf-table thead th { padding-top: 0; font: 500 var(--t-label)/1.3 var(--font-mono); color: var(--muted); }
.cf-table tbody th { font-weight: 500; }
.cf-table__when { font-family: var(--font-mono); color: var(--action); white-space: nowrap; }
.cf-table__rule { font: 400 var(--t-label)/1.5 var(--font-mono); color: var(--muted); }
.cf-table tbody th { width: 46%; } .cf-table__when { width: 24%; }
.cf-note { max-width: 62ch; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

/* an obligation: its title, what the rule requires, the instrument, the deadline, what Inerxia does */
.cf-obs { margin-top: var(--s-7); }
.cf-ob { display: grid; gap: var(--s-3); align-content: start; }
.cf-ob h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.cf-ob > p { margin: 0; max-width: none; }
.cf-ob > .cf-rule { font: 400 var(--t-label)/1.5 var(--font-mono); color: var(--muted); }
.cf-ob > .cf-deadline { display: flex; align-items: baseline; gap: var(--s-3); }
.cf-deadline .t-label { color: var(--muted); }
.cf-deadline span:last-child { font: 500 var(--t-body)/1.4 var(--font-mono); color: var(--action); }
.cf-ob > .cf-inerxia { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.cf-inerxia b { font-weight: 500; }

/* the common mistakes: a numbered list in two columns */
.cf-mistakes { margin: var(--s-7) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.cf-mistakes li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.cf-mistakes p { margin: 0; }
.cf-num { font: 500 var(--t-label)/1.9 var(--font-mono); color: var(--action); }

/* the sources: one row each, the link on the whole row */
.cf-sources { margin: 0; padding: 0; list-style: none; }
.cf-sources li { border-bottom: 1px solid var(--line); }
.cf-sources a { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; color: inherit; text-decoration: none; }
.cf-sources a:hover span:first-child { color: var(--action); }
.cf-sources li:first-child a { padding-top: 0; }

/* the split frame beside the close's words: one fixed shape, as the home's split frames */
#automatizar .frame { aspect-ratio: 1 / 1; }
@media (max-width: 1279px) { #automatizar .frame { aspect-ratio: 5 / 4; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .cf-area, #plazos { --h: 2; }
  .cf-faq .faq { grid-column: 6 / span 7; } .cf-faq .grid > .span-5 { grid-column: 1 / span 4; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .cf-area, #plazos { --h: 2; }
  #automatizar .frame { aspect-ratio: 16 / 9; }
  .cf-obs > .cf-ob { grid-column: auto / span 12; }
  .cf-mistakes { grid-template-columns: minmax(0, 1fr); }
  #errores { --h: 2; }
}
@media (max-width: 639px) {
  .cf-area, #plazos, #errores, .cf-faq { --hm: 2; }
  #automatizar .frame { aspect-ratio: 16 / 10; }
  .cf-mistakes { grid-template-columns: minmax(0, 1fr); }
  .cf-table thead { display: none; }
  .cf-table, .cf-table tbody, .cf-table tr, .cf-table th, .cf-table td, .cf-table tbody th, .cf-table td.cf-table__when { display: block; width: auto; }
  .cf-table tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .cf-table th, .cf-table td { padding: 0; border: 0; }
  /* a phone: the obligation on its line, then the deadline and the rule run on under it */
  .cf-table td.cf-table__when, .cf-table td.cf-table__rule { display: inline; white-space: normal; font-size: var(--t-label); line-height: 1.5; }
  .cf-table td.cf-table__when::after { content: " · "; color: var(--muted); }
}

/* ---------- /security ---------- */
.sec-domains { margin-top: var(--s-7); row-gap: var(--s-6); }
.sec-domain { display: grid; gap: var(--s-3); align-content: start; }
.sec-domain h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.sec-domain ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.sec-domain li { padding-left: 20px; position: relative; }
.sec-domain li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--action); }
.sec-updated { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.sec-trust li { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.sec-trust li:first-child { padding-top: 0; }
.sec-trust b { font-weight: 500; }
.sec-trust .sec-note { color: var(--muted); }
.sec-trust .sec-status { font: 500 var(--t-label)/1.6 var(--font-mono); color: var(--muted); text-align: right; }
@media (min-width: 1024px) and (max-width: 1279px) { #controles, #confianza { --h: 2; } }
#vulnerabilidades .frame { aspect-ratio: 5 / 4; }
@media (min-width: 640px) and (max-width: 1023px) {
  .sec-domains > .sec-domain { grid-column: auto / span 4; }
  #vulnerabilidades .frame { aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) {
  #controles { --hm: 2; }
  #confianza { --hm: 2; }
  #vulnerabilidades .frame { aspect-ratio: 16 / 10; }
  .sec-domains { row-gap: var(--s-4); }
  .sec-domain { gap: var(--s-2); }
  .sec-domain ul { gap: var(--s-1); }
  .sec-trust li { grid-template-columns: minmax(0, 1fr) auto; }
  .sec-trust .sec-note { grid-column: 1; }
  .sec-trust .sec-status { grid-column: 2; grid-row: 1; }
}

/* ---------- /privacy, /terms: the table of contents and numbered headings ---------- */
.legal-toc { max-width: 62ch; width: 100%; margin-bottom: var(--s-8); padding: var(--s-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-toc .t-label { color: var(--muted); }
.legal-toc ol { margin: var(--s-3) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-6); }
.legal-toc a { display: flex; gap: var(--s-2); color: var(--ink); text-decoration: none; font-size: var(--t-small); line-height: 1.5; }
.legal-toc a:hover { color: var(--action); }
.legal-toc a span, .article__body .legal-n { font-family: var(--font-mono); color: var(--muted); }
.article__body h2 .legal-n { margin-right: var(--s-3); font-size: var(--t-small); color: var(--action); }
.article__body h2 { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
@media (max-width: 639px) { .legal-toc ol { grid-template-columns: minmax(0, 1fr); } }

/* ---------- /gracias ---------- */
#que-sigue .step-num { font: 500 var(--t-label)/1 var(--font-mono); color: var(--muted); }
.gr-steps { margin-top: var(--s-7); }
.gr-step { display: grid; gap: var(--s-3); align-content: start; }
.gr-step h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.gr-step p { margin: 0; }
.gr-links { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); display: grid; gap: var(--s-4); }
.gr-links .t-label { color: var(--muted); }
.gr-links nav { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
@media (min-width: 640px) and (max-width: 1023px) { .gr-steps > .gr-step { grid-column: auto / span 12; } }
@media (max-width: 639px) { #que-sigue { --hm: 2; } }
@media (max-width: 639px) { #fuentes { --hm: 2; } #factura { --hm: 1; } }
/* the shorter obligation sections hold one screen where their content fits it (measured at 1024, 820 and 768) */
@media (min-width: 1024px) and (max-width: 1279px) { #cancelacion, #factura, #bases { --h: 1; } }
@media (min-width: 640px) and (max-width: 1023px) { #cancelacion, #mintic, #reportes, #factura, #bases, #errores { --h: 1; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .sec-domains { margin-top: var(--s-6); row-gap: var(--s-5); }
  .sec-domain { gap: var(--s-2); }
  .sec-domain ul { gap: var(--s-1); }
}
