/* ============================================================
   FrameWorks Detection — Design System
   Premium enterprise dark theme
   ============================================================ */

:root {
  --bg: #060608;
  --bg-elev: #0b0b0f;
  --surface: #101015;
  --surface-2: #16161d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #a3a3ad;
  --muted-2: #71717c;
  --accent: #4d9fff;
  --accent-dim: rgba(77, 159, 255, 0.12);
  --ok: #34d399;
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #060608; }

a { color: inherit; text-decoration: none; }

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

img, svg { display: block; max-width: 100%; }

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 112px 0; }
.section--surface { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: 80px 0; }

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 56px 0; }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.h-display {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.h-section {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  max-width: 640px;
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
}

.section-head { margin-bottom: 64px; }
.section-head .lead { margin-top: 20px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--text); color: #08080a; }
.btn--primary:hover { background: #ffffff; transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.03); transform: translateY(-1px); }

.btn--sm { padding: 10px 20px; font-size: 14px; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(6, 6, 8, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  justify-self: start;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--text);
  color: #08080a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav-center {
  display: flex;
  gap: 36px;
  justify-self: center;
}
.nav-center a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  padding: 6px 0;
  position: relative;
}
.nav-center a:hover { color: var(--text); }
.nav-center a.active { color: var(--text); }
.nav-center a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .icon-close { display: none; }
.menu-btn.open .icon-open { display: none; }
.menu-btn.open .icon-close { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(6, 6, 8, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); }
.mobile-menu .btn { margin-top: 20px; width: 100%; }

@media (max-width: 880px) {
  .nav-center { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 72% 38%, rgba(77, 159, 255, 0.07), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent);
  mask-image: linear-gradient(to bottom, black 65%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.hero-copy .h-display { margin-bottom: 28px; }
.hero-copy .lead { margin-bottom: 40px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta div { min-width: 120px; }
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 6px 0 0;
}
.hero-meta dd {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: 0; }
}

/* ---------- Hero detection visual ---------- */

.detect-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  overflow: hidden;
}

.detect-visual .frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
.detect-visual .frame-head .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
}
.detect-visual .frame-head .status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.detect-stage { position: relative; }
.detect-stage svg { width: 100%; height: auto; }

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(77, 159, 255, 0.7), transparent);
  animation: scan 4.5s var(--ease) infinite;
  will-change: transform;
}
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(335px); opacity: 0; }
}

.bbox { opacity: 0; animation: bbox-in 4.5s var(--ease) infinite; }
.bbox--1 { animation-delay: 0.9s; }
.bbox--2 { animation-delay: 1.9s; }
.bbox--3 { animation-delay: 3s; }
@keyframes bbox-in {
  0%, 18% { opacity: 0; }
  26%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

.detect-visual .frame-foot {
  display: flex;
  gap: 24px;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
.detect-visual .frame-foot strong { color: var(--muted); font-weight: 500; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 920px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
a.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 20px; height: 20px; }

.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); color: var(--accent); }
a.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Stats ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 920px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }

.stat .stat-value {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .stat-label {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.6;
}

/* ---------- Process timeline ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 23px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}

.process-step { position: relative; padding-top: 64px; transition: transform 0.3s var(--ease); }
.process-step:hover { transform: translateY(-3px); }

.process-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process-step:hover .process-num {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-dim);
}

.process-step h3 { font-size: 19px; margin-bottom: 12px; }
.process-step p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

@media (max-width: 920px) {
  .process { grid-template-columns: 1fr; gap: 48px; }
  .process::before {
    top: 8%;
    bottom: 8%;
    left: 23px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  }
  .process-step { padding-top: 0; padding-left: 72px; }
}

/* ---------- Checklist / badges ---------- */

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--muted);
}
.check-list li::before {
  content: '✓';
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge--accent { color: var(--accent); border-color: rgba(77, 159, 255, 0.35); background: var(--accent-dim); }

/* ---------- Code panel ---------- */

.code-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}
.code-panel-head .tag {
  color: var(--ok);
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.code-panel pre {
  margin: 0;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  overflow-x: auto;
}
.code-panel .k { color: var(--accent); }
.code-panel .s { color: var(--text); }

/* ---------- Split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- CTA section ---------- */

.cta-panel {
  position: relative;
  text-align: center;
  padding: 96px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(77, 159, 255, 0.08), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-elev));
  overflow: hidden;
}
.cta-panel h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.025em; margin-bottom: 18px; }
.cta-panel p { color: var(--muted); max-width: 480px; margin: 0 auto 36px; }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding: calc(var(--header-h) + 96px) 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero .h-display { font-size: clamp(34px, 4.4vw, 54px); max-width: 760px; margin-bottom: 24px; }
.page-hero .lead { max-width: 620px; }

/* ---------- Forms ---------- */

.form-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 640px) { .form-panel { padding: 28px 22px; } }

.field { margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3a3ad' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field textarea { resize: vertical; min-height: 110px; }

.consent-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.consent-box p { font-size: 12.5px; color: var(--muted-2); line-height: 1.65; margin: 0 0 14px; }
.consent-box a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent-box label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.consent-box input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }

.form-success {
  text-align: center;
  padding: 64px 32px;
}
.form-success .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success .success-icon svg { width: 26px; height: 26px; }
.form-success h2 { font-size: 26px; margin-bottom: 14px; }
.form-success p { color: var(--muted); max-width: 420px; margin: 0 auto 28px; }

.hidden { display: none !important; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted-2);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 36px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { color: var(--muted-2); transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--muted); }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(11, 11, 15, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-inner p { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 640px; }
.cookie-actions { display: flex; align-items: center; gap: 18px; }
.cookie-actions .link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 0;
}
.cookie-actions .link-btn:hover { color: var(--text); }

/* ---------- Legal pages ---------- */

.legal-wrap { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + 80px) 24px 96px; }
.legal-head { padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.legal-head h1 { font-size: clamp(32px, 4vw, 44px); margin: 16px 0 14px; }
.legal-head .meta { font-size: 13.5px; color: var(--muted-2); }
.legal-head .meta strong { color: var(--muted); font-weight: 500; }

.legal-body h2 { font-size: 21px; margin: 48px 0 16px; }
.legal-body h3 { font-size: 16px; margin: 28px 0 10px; color: var(--text); }
.legal-body p { color: var(--muted); line-height: 1.75; margin: 0 0 16px; font-size: 15px; }
.legal-body ul { color: var(--muted); line-height: 1.75; margin: 0 0 16px; padding-left: 22px; font-size: 15px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--text); font-weight: 600; }

.legal-note {
  font-size: 12.5px !important;
  color: var(--muted-2) !important;
  margin-top: 56px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.notice-panel {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.notice-panel p { margin: 0; }
.notice-panel .notice-title { color: var(--ok); font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.notice-panel .notice-text { font-size: 14px; }

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scanline, .bbox, .detect-visual .frame-head .status::before { animation: none !important; }
  .bbox { opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
