/* CheckFox · páginas públicas legales (términos, privacidad y contacto).
   Reutiliza los tokens y el lenguaje visual de la landing. */

:root {
  --background: hsl(220 23% 95%);
  --paper: #ffffff;
  --ink: hsl(234 14% 28%);
  --text: hsl(234 16% 35%);
  --muted: hsl(233 12% 45%);
  --line: hsl(223 16% 83%);
  --line-soft: hsl(220 22% 92%);
  --accent: hsl(220 91% 54%);
  --accent-text: hsl(221 83% 45%);
  --on-accent: #ffffff;
  --tint: color-mix(in srgb, var(--accent) 7%, var(--paper));
  --success: hsl(160 84% 28%);
  --success-tint: hsl(152 70% 94%);
  --warning: hsl(32 95% 36%);
  --warning-tint: hsl(43 96% 92%);
  --danger: hsl(347 77% 45%);
  --danger-tint: hsl(350 90% 95%);
  --whatsapp: hsl(152 68% 30%);
  --shadow: 0 18px 40px -30px hsl(234 30% 25% / 0.45);
  color-scheme: light;
}

:root.dark {
  --background: hsl(229 19% 23%);
  --paper: hsl(229 20% 17%);
  --ink: hsl(227 70% 87%);
  --text: hsl(227 44% 80%);
  --muted: hsl(228 29% 73%);
  --line: hsl(230 16% 30%);
  --line-soft: hsl(230 16% 27%);
  --accent: hsl(222 74% 74%);
  --accent-text: hsl(222 74% 74%);
  --on-accent: hsl(229 20% 17%);
  --tint: color-mix(in srgb, var(--accent) 12%, var(--paper));
  --success: hsl(150 60% 70%);
  --success-tint: hsl(157 34% 20%);
  --warning: hsl(38 92% 70%);
  --warning-tint: hsl(35 40% 20%);
  --danger: hsl(355 78% 76%);
  --danger-tint: hsl(350 36% 22%);
  --whatsapp: hsl(152 68% 30%);
  --shadow: 0 18px 40px -24px hsl(229 40% 6% / 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
strong { color: var(--ink); font-weight: 650; }
code {
  padding: 0.12em 0.42em;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--background);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.cf-skip-link {
  position: fixed;
  left: 20px;
  top: -120px;
  z-index: 100;
  padding: 12px 20px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
}
.cf-skip-link:focus { top: 12px; }

.cf-container {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.cf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(16px + env(safe-area-inset-top)) 0 0;
  background: var(--background);
  pointer-events: none;
}
.cf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.cf-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -0.9px;
  line-height: 1;
}
.cf-brand img { width: 44px; height: 33px; object-fit: contain; }
.cf-brand-subtitle {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}
.cf-header-nav { display: flex; gap: 4px; }
.cf-header-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
  transition: background-color 160ms ease, color 160ms ease;
}
.cf-header-nav a:hover { background: var(--background); color: var(--ink); }
.cf-header-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--accent-text);
  font-weight: 650;
}
.cf-header-actions { display: flex; align-items: center; gap: 10px; }
.cf-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.cf-icon-button:hover { background: var(--background); color: var(--ink); }
.cf-icon-button:active { transform: scale(0.97); }
.theme-sun { display: none; }
:root.dark .theme-sun { display: block; }
:root.dark .theme-moon { display: none; }
.cf-login-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
  transition: filter 160ms ease;
}
.cf-login-link:hover { filter: brightness(1.12); }
.cf-login-link:active { transform: scale(0.98); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.cf-legal-hero {
  padding: 44px 0 0;
}
.cf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.cf-breadcrumb a:hover { color: var(--accent-text); }
.cf-breadcrumb span[aria-current] { color: var(--text); }
.cf-eyebrow {
  margin-top: 26px;
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.cf-legal-hero h1 {
  max-width: 820px;
  margin-top: 10px;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}
.cf-legal-lead {
  max-width: 660px;
  margin-top: 20px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}
.cf-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.cf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.cf-chip svg { color: var(--accent-text); flex-shrink: 0; }
.cf-chip--status { border-color: color-mix(in srgb, var(--success) 35%, var(--line)); color: var(--success); }

.cf-page-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-top: 30px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow-x: auto;
  scrollbar-width: none;
}
.cf-page-tabs::-webkit-scrollbar { display: none; }
.cf-page-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.cf-page-tabs a:hover { background: var(--background); color: var(--ink); }
.cf-page-tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.cf-page-tabs svg { flex-shrink: 0; }

/* ── Layout ─────────────────────────────────────────────────────────────── */

.cf-legal-layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  padding-block: 36px 80px;
}
.cf-legal-aside {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 14px;
}
.cf-legal-toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}
.cf-legal-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.cf-legal-toc summary::-webkit-details-marker { display: none; }
.cf-legal-toc summary svg { color: var(--muted); transition: transform 160ms ease; }
.cf-legal-toc[open] summary svg { transform: rotate(180deg); }
.cf-legal-toc nav { display: grid; padding: 4px 8px 12px; }
.cf-legal-toc nav a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  transition: background-color 150ms ease, color 150ms ease;
}
.cf-legal-toc nav a:hover { background: var(--background); color: var(--ink); }
.cf-legal-toc nav a[aria-current="location"] {
  background: var(--tint);
  color: var(--accent-text);
  font-weight: 650;
}
.cf-toc-index {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.cf-legal-toc nav a[aria-current="location"] .cf-toc-index { color: var(--accent-text); }

.cf-aside-help {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.cf-aside-help p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.cf-aside-help a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 650;
}
.cf-aside-help a:hover { text-decoration: underline; text-underline-offset: 4px; }

.cf-legal-doc { display: grid; gap: 18px; min-width: 0; }
.cf-legal-section {
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  scroll-margin-top: 112px;
}
.cf-legal-section > h2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.03em;
}
.cf-legal-section > h2::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 1.15em;
  margin-top: 0.16em;
  border-radius: 999px;
  background: var(--accent);
}
.cf-legal-section h3 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cf-legal-section h3:first-of-type { margin-top: 0; }
.cf-legal-section p { margin-bottom: 12px; }
.cf-legal-section p:last-child, .cf-legal-section ul:last-child, .cf-legal-section ol:last-child { margin-bottom: 0; }
.cf-legal-section a:not(.cf-button) {
  color: var(--accent-text);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cf-legal-section a:not(.cf-button):hover { text-decoration-thickness: 2px; }

.cf-legal-doc ul:not(.legal-list), .cf-legal-doc ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.cf-legal-doc ul:not(.legal-list) { list-style: disc; }
.cf-legal-doc ol { list-style: decimal; }
.cf-legal-doc li { margin-bottom: 7px; }
.cf-legal-doc li::marker { color: var(--accent-text); }
.cf-legal-doc ul ul, .cf-legal-doc ol ol, .cf-legal-doc ul ol, .cf-legal-doc ol ul { margin-top: 8px; margin-bottom: 4px; }

.legal-list { margin: 0 0 14px; padding: 0; list-style: none; }
.legal-list > li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 26px;
}
.legal-list > li::before {
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  content: "";
  transform: rotate(45deg);
}
.legal-list--no > li::before {
  left: 1px;
  top: 0;
  width: auto;
  height: auto;
  border: 0;
  color: var(--danger);
  content: "\2715";
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  transform: none;
}
.legal-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 26px;
}
.legal-list--plain > li::before { display: none; }
.legal-list--plain > li { padding-left: 0; }

.cf-callout {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 13px;
  background: var(--tint);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.cf-callout:last-child { margin-bottom: 0; }
.cf-callout svg { margin-top: 3px; color: var(--accent-text); flex-shrink: 0; }
.cf-callout p { margin: 0; }
.cf-callout p + p { margin-top: 8px; }
.cf-callout--success {
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
  background: var(--success-tint);
}
.cf-callout--success svg { color: var(--success); }
.cf-callout--warning {
  border-color: color-mix(in srgb, var(--warning) 32%, var(--line));
  background: var(--warning-tint);
}
.cf-callout--warning svg { color: var(--warning); }
.cf-callout strong { color: var(--ink); }

.cf-summary {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}
.cf-summary h2 { margin-bottom: 16px; font-size: 18px; }
.cf-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cf-summary-item {
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--background);
}
.cf-summary-item svg { margin-bottom: 9px; color: var(--accent-text); }
.cf-summary-item strong { display: block; margin-bottom: 3px; font-size: 13px; }
.cf-summary-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.cf-summary-note { margin-top: 14px; color: var(--muted); font-size: 11px; }

.cf-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
  transition: filter 160ms ease, background-color 160ms ease;
}
.cf-button:hover { filter: brightness(0.95); }
.cf-button:active { transform: scale(0.98); }
.cf-button--primary { background: var(--accent); color: var(--on-accent) !important; }
.cf-button--whatsapp { background: var(--whatsapp); color: #fff !important; }
.cf-button--whatsapp:hover { filter: brightness(0.93); }
.cf-button--outline { border-color: var(--line); background: var(--paper); color: var(--ink) !important; }
.cf-button--outline:hover { background: var(--background); }
.cf-button svg { flex-shrink: 0; }

/* ── Contacto ───────────────────────────────────────────────────────────── */

.cf-contact-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 20px;
  background: var(--tint);
  scroll-margin-top: 112px;
}
.cf-contact-primary h2 { margin-bottom: 8px; font-size: 25px; letter-spacing: -0.03em; }
.cf-contact-primary p { max-width: 560px; color: var(--text); }
.cf-contact-primary .cf-contact-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.cf-contact-primary .cf-contact-note svg { color: var(--accent-text); flex-shrink: 0; }
.cf-contact-primary-actions { display: grid; justify-items: start; gap: 10px; }
.cf-contact-primary-actions .cf-button { min-height: 56px; padding-inline: 24px; font-size: 15px; }
.cf-contact-primary-actions small { color: var(--muted); font-size: 11px; }

.cf-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cf-contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: border-color 180ms ease, transform 180ms ease;
  scroll-margin-top: 112px;
}
.cf-contact-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cf-contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent-text);
}
.cf-contact-card h2, .cf-contact-card h3 { margin-bottom: 6px; font-size: 16px; }
.cf-contact-card p { flex: 1; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.cf-contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 650;
}
.cf-contact-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

.cf-creator {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.cf-creator-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent-text);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.cf-creator h2 { margin-bottom: 4px; font-size: 22px; }
.cf-creator-role { color: var(--muted); font-size: 13px; }
.cf-quote {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 13px 13px 0;
  background: var(--background);
  color: var(--text);
  font-size: 14px;
  font-style: italic;
  line-height: 1.8;
}
.cf-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.cf-value {
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--background);
}
.cf-value h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; font-size: 12px; }
.cf-value h3 svg { color: var(--accent-text); }
.cf-value p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.cf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cf-stat {
  padding: 16px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--background);
  text-align: center;
}
.cf-stat strong {
  display: block;
  color: var(--accent-text);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cf-stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.cf-faq { display: grid; }
.cf-faq details { border-top: 1px solid var(--line-soft); }
.cf-faq details:first-child { border-top: 0; }
.cf-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.cf-faq summary::-webkit-details-marker { display: none; }
.cf-faq summary svg { flex-shrink: 0; color: var(--muted); transition: transform 180ms ease; }
.cf-faq details[open] summary svg { transform: rotate(180deg); }
.cf-faq details > p { padding: 0 28px 18px 2px; margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.75; }

.cf-community {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 20px;
  background: var(--tint);
  text-align: center;
}
.cf-community h2 { font-size: 23px; }
.cf-community p { max-width: 560px; margin: 8px auto 18px; color: var(--text); font-size: 13.5px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.cf-footer {
  padding-block: 45px calc(25px + env(safe-area-inset-bottom));
  background: var(--background);
  border-top: 1px solid var(--line);
}
.cf-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  align-items: start;
  gap: 35px;
}
.cf-footer-top > p { color: var(--text); font-size: 12px; line-height: 1.8; }
.cf-footer nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px 20px; }
.cf-footer nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 12px;
}
.cf-footer nav a:hover { color: var(--accent-text); }
.cf-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.cf-footer-bottom > p:last-child { max-width: 440px; text-align: right; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .cf-container { width: calc(100% - 48px); }
  .cf-header-inner { padding-inline: 16px; gap: 12px; }
  .cf-header-nav a { padding-inline: 10px; font-size: 11px; }
  .cf-legal-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 900px) {
  .cf-header-nav { display: none; }
  .cf-legal-layout { grid-template-columns: minmax(0, 1fr); }
  .cf-legal-aside { position: static; order: -1; }
  .cf-aside-help { display: none; }
  .cf-contact-primary { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .cf-container { width: calc(100% - 36px); }
  .cf-header { padding-top: calc(10px + env(safe-area-inset-top)); }
  .cf-header-inner {
    width: calc(100% - 24px);
    height: 62px;
    padding-inline: 12px;
    border-radius: 18px;
    gap: 7px;
  }
  .cf-brand { gap: 7px; font-size: 20px; }
  .cf-brand img { width: 35px; height: 27px; }
  .cf-brand-subtitle { display: none; }
  .cf-header-actions { gap: 0; }
  .cf-login-link { padding-inline: 13px; font-size: 10px; border-radius: 10px; }
  .cf-login-link svg { display: none; }
  .cf-legal-hero { padding-top: 30px; }
  .cf-breadcrumb { font-size: 11px; }
  .cf-eyebrow { margin-top: 22px; }
  .cf-legal-hero h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.1; }
  .cf-legal-lead { margin-top: 16px; font-size: 14.5px; line-height: 1.75; }
  .cf-legal-meta { margin-top: 18px; }
  .cf-chip { font-size: 10px; }
  .cf-page-tabs { width: 100%; margin-top: 24px; border-radius: 13px; }
  .cf-page-tabs a { flex: 1 0 auto; justify-content: center; padding-inline: 14px; font-size: 12px; }
  .cf-page-tabs a svg { display: none; }
  .cf-legal-layout { padding-block: 26px 60px; gap: 16px; }
  .cf-legal-toc summary { min-height: 50px; }
  .cf-legal-doc { gap: 14px; }
  .cf-legal-section { border-radius: 17px; }
  .cf-legal-section > h2 { font-size: 20px; gap: 10px; }
  .cf-legal-section h3 { margin-top: 20px; }
  .legal-list--grid, .cf-summary-grid, .cf-values { grid-template-columns: minmax(0, 1fr); }
  .cf-summary { border-radius: 17px; }
  .cf-contact-primary { border-radius: 17px; gap: 20px; }
  .cf-contact-primary h2 { font-size: 22px; }
  .cf-contact-primary-actions { width: 100%; }
  .cf-contact-primary-actions .cf-button { width: 100%; }
  .cf-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-contact-card { padding: 20px; }
  .cf-creator { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .cf-creator-avatar { width: 64px; height: 64px; font-size: 21px; }
  .cf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-faq summary { font-size: 13.5px; }
  .cf-faq details > p { padding-right: 10px; font-size: 13px; }
  .cf-community { border-radius: 17px; }
  .cf-footer { padding-top: 32px; }
  .cf-footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cf-footer-top > p { font-size: 11px; }
  .cf-footer nav { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 5px 12px; }
  .cf-footer nav a { font-size: 11px; }
  .cf-footer-bottom { flex-direction: column; gap: 12px; font-size: 10px; }
  .cf-footer-bottom > p:last-child { max-width: none; text-align: left; }
}

@media (max-width: 359px) {
  .cf-brand { font-size: 18px; }
  .cf-brand img { width: 30px; }
  .cf-header-inner { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .cf-header, .cf-legal-aside, .cf-page-tabs, .cf-footer, .cf-skip-link { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .cf-container { width: 100%; }
  .cf-legal-layout { display: block; padding: 0; }
  .cf-legal-section { break-inside: avoid; border: 1px solid #ddd; box-shadow: none; margin-bottom: 12px; }
}
