/*
 * APT Insights 소개/벤치마크 랜딩 (www.apt-insights.com) — 빌드 없는 정적 스타일.
 * apps/web 의 /benchmark 페이지(Tailwind dark slate/indigo)를 플레인 CSS 로 이식.
 */

:root {
  --bg: #020617;            /* slate-950 */
  --panel: rgba(15, 23, 42, 0.6);   /* slate-900/60 */
  --panel-solid: #0f172a;   /* slate-900 */
  --inset: rgba(2, 6, 23, 0.4);     /* slate-950/40 */
  --border: #1e293b;        /* slate-800 */
  --text: #f1f5f9;          /* slate-100 */
  --text-2: #cbd5e1;        /* slate-300 */
  --text-3: #94a3b8;        /* slate-400 */
  --text-4: #64748b;        /* slate-500 */
  --indigo: #818cf8;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --emerald: #34d399;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --violet-300: #c4b5fd;
  --rose-300: #fda4af;
  --amber-300: #fcd34d;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 72rem;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans KR", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

strong { color: #fff; font-weight: 700; }
a { color: inherit; }

/* ── 배경 토폴로지 ── */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  left: 50%;
  top: 0;
  height: 64rem;
  width: 128rem;
  transform: translateX(-50%);
  stroke: rgba(51, 65, 85, 0.3);
  -webkit-mask-image: radial-gradient(64rem 64rem at top, white, transparent);
  mask-image: radial-gradient(64rem 64rem at top, white, transparent);
}
.bg-blob {
  position: absolute;
  left: calc(50% - 4rem);
  top: 2.5rem;
  aspect-ratio: 1108 / 632;
  width: 69.25rem;
  background: linear-gradient(to right, #6366f1, #7c3aed);
  opacity: 0.2;
  filter: blur(64px);
  clip-path: polygon(73.6% 51.7%, 91.7% 11.8%, 100% 46.4%, 97.4% 82.2%, 92.5% 84.9%,
    75.7% 64%, 55.3% 47.5%, 46.5% 49.4%, 45% 62.9%, 50.3% 87.2%, 21.3% 64.1%, 0.1% 100%,
    5.4% 51.1%, 21.4% 63.9%, 58.9% 0.2%, 73.6% 51.7%);
}

/* ── 레이아웃 ── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 80px;
}
.stack > * + * { margin-top: 40px; }
@media (min-width: 640px) {
  .container { padding: 0 24px 80px; }
  .stack > * + * { margin-top: 56px; }
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 24px 16px 56px;
}
@media (min-width: 640px) { .hero { padding: 40px 24px 80px; } }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-200);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.badge .dot { color: rgba(165, 180, 252, 0.6); }
.hero h1 {
  margin: 0 auto;
  max-width: 56rem;
  font-size: clamp(30px, 7vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.grad-text {
  background: linear-gradient(135deg, #fff, #c7d2fe 60%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .sub { display: block; color: var(--text); }
.hero .lede {
  margin: 20px auto 0;
  max-width: 42rem;
  font-size: clamp(14px, 2.4vw, 18px);
  color: var(--text-2);
  line-height: 1.65;
}

/* Hero stat callouts */
.stat-grid {
  margin: 32px auto 0;
  max-width: 42rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
}
.stat.emerald { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); }
.stat .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(165, 180, 252, 0.7); }
.stat.emerald .lbl { color: rgba(110, 231, 183, 0.7); }
.stat .val { margin-top: 2px; font-family: var(--mono); font-size: 24px; font-weight: 900; color: var(--indigo-200); }
.stat.emerald .val { color: var(--emerald-200); }
.stat .sub { font-size: 10px; color: rgba(165, 180, 252, 0.5); }
.stat.emerald .sub { color: rgba(110, 231, 183, 0.5); }

/* ── 섹션 카드 ── */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}
@media (min-width: 640px) { .card { border-radius: var(--radius-lg); padding: 32px; } }
@media (min-width: 768px) { .card { padding: 40px; } }

.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sec-icon {
  display: inline-flex;
  height: 40px; width: 40px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3);
  color: var(--indigo-300);
  flex-shrink: 0;
}
.sec-icon.emerald { background: rgba(16,185,129,0.1); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.3); color: var(--emerald-300); }
.sec-icon.violet { background: rgba(139,92,246,0.1); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.3); color: var(--violet-300); }
.sec-icon svg { width: 20px; height: 20px; }
.sec-head h2 { margin: 0; font-size: clamp(18px, 3vw, 24px); font-weight: 700; color: #fff; }

.lede-2 { margin: 0 0 24px; font-size: clamp(14px, 2.2vw, 16px); color: var(--text-2); line-height: 1.65; }

/* ── 표 (desktop) ── */
.tbl-wrap { display: none; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
@media (min-width: 768px) { .tbl-wrap { display: block; } }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
thead { background: rgba(15,23,42,0.8); }
th { padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); font-weight: 600; }
th.r, td.r { text-align: right; }
tbody { background: var(--inset); }
tbody tr { border-top: 1px solid rgba(30,41,59,0.8); }
td { padding: 12px 16px; color: var(--text-2); vertical-align: top; }
td .t1 { color: var(--text); font-weight: 500; }
td .t2 { font-size: 12px; color: var(--text-4); }
td.mono { font-family: var(--mono); color: #e2e8f0; }
td.danger { font-family: var(--mono); font-weight: 700; color: var(--rose-300); }
tr.highlight { background: linear-gradient(to right, rgba(99,102,241,0.15), rgba(139,92,246,0.1), transparent); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3); }
tr.highlight td { padding: 16px; }
tr.highlight .lead { font-weight: 900; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
tr.highlight .lead svg { width: 16px; height: 16px; color: var(--indigo-300); }
tr.highlight .big { font-family: var(--mono); font-size: 16px; font-weight: 900; color: var(--indigo-300); }
.avm-ours-col { background: rgba(99,102,241,0.1); color: var(--indigo-200); font-weight: 700; }
td.avm-ours { background: rgba(99,102,241,0.05); color: #fff; font-weight: 600; }
.pill { display: inline-block; margin-top: 6px; border-radius: 6px; padding: 2px 8px; font-size: 11px; }
.pill.muted { background: var(--border); color: var(--text-3); }
.pill.indigo { background: rgba(99,102,241,0.15); color: var(--indigo-200); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3); font-weight: 500; }

/* ── 카드 리스트 (mobile) ── */
.card-list { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .card-list { display: none; } }
.mini {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2,6,23,0.6);
  padding: 16px;
}
.mini .name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.mini .meta { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.mini .meta .sm { font-size: 10px; color: var(--text-4); }
.mini .duo { display: flex; gap: 16px; font-size: 12px; }
.mini .duo > div { flex: 1; }
.mini .duo .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-4); }
.mini .duo .v { font-family: var(--mono); font-size: 14px; font-weight: 600; color: #e2e8f0; }
.mini.hl { border-color: rgba(99,102,241,0.4); background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.1), rgba(15,23,42,0.4)); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3); }
.mini.hl .name { display: flex; align-items: center; gap: 6px; font-weight: 900; }
.mini.hl .name svg { width: 16px; height: 16px; color: var(--indigo-300); }
.mini.hl .v, .mini.hl .duo .k { color: var(--indigo-200); }

/* AVM mobile */
.avm-mini { overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: rgba(2,6,23,0.6); }
.avm-mini .head { background: rgba(15,23,42,0.8); padding: 8px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.avm-mini .row { padding: 12px 16px; }
.avm-mini .row + .row { border-top: 1px solid var(--border); }
.avm-mini .row.ours { background: rgba(99,102,241,0.05); }
.avm-mini .k { margin-bottom: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-4); }
.avm-mini .row.ours .k { color: var(--indigo-300); }
.avm-mini .v { font-size: 14px; color: var(--text-3); }
.avm-mini .row.ours .v { color: #fff; font-weight: 600; }

/* ── info / note 박스 ── */
.note {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2,6,23,0.6);
  padding: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}
@media (min-width: 640px) { .note { font-size: 14px; } }
.note svg { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; color: var(--text-4); }
.note .body > * { margin: 0; }
.note .body > * + * { margin-top: 8px; }
.note .muted { color: var(--text-3); }

.note.emerald { display: block; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
.note .title-em { margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--emerald-300); }

/* 실거주 주타깃 강조 박스 */
.prime {
  margin-bottom: 12px;
  border-radius: 10px;
  border: 2px solid rgba(52,211,153,0.5);
  background: rgba(16,185,129,0.15);
  box-shadow: inset 0 0 0 1px rgba(52,211,153,0.3);
  padding: 12px;
}
.prime .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prime .ttl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--emerald-200); }
.prime .sub { font-size: 10px; color: rgba(167,243,208,0.7); margin-top: 2px; }
.prime .kpis { display: flex; gap: 12px; }
.prime .kpi { text-align: center; }
.prime .kpi .k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(167,243,208,0.6); }
.prime .kpi .v { font-family: var(--mono); font-size: 20px; font-weight: 900; color: var(--emerald-200); }
.prime .foot { margin-top: 8px; font-size: 10px; color: rgba(167,243,208,0.8); }

/* forward OOS 3-grid */
.oos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.oos { border-radius: 10px; border: 1px solid rgba(16,185,129,0.2); background: rgba(2,6,23,0.5); padding: 10px; text-align: center; }
.oos .h { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-4); }
.oos .r2 { margin-top: 4px; font-family: var(--mono); font-size: 16px; font-weight: 900; color: var(--emerald-300); }
.oos .mp { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* 게이지 바 차트 */
.gauge-card { margin-top: 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(2,6,23,0.6); padding: 16px; }
@media (min-width: 640px) { .gauge-card { padding: 20px; } }
.gauge-card .ttl { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #fff; }
.metric { margin-bottom: 16px; }
.metric:last-child { margin-bottom: 0; }
.metric .lbl { margin-bottom: 6px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bar-row .name { width: 96px; flex-shrink: 0; font-size: 11px; color: var(--text-3); }
.bar-row .name.em { font-weight: 600; color: var(--emerald-300); }
.track { height: 16px; flex: 1; overflow: hidden; border-radius: 4px; background: var(--border); }
.fill { height: 100%; border-radius: 4px; }
.fill.gray { background: #64748b; }
.fill.em { background: #34d399; }
.bar-row .num { width: 56px; flex-shrink: 0; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.bar-row .num.em { font-weight: 700; color: var(--emerald-300); }
.gauge-card .cap { margin: 4px 0 0; font-size: 10px; line-height: 1.6; color: var(--text-4); }

/* ── 3대 엔진 / 이론 카드 그리드 ── */
.center-head { text-align: center; margin-bottom: 32px; }
@media (min-width: 640px) { .center-head { margin-bottom: 40px; } }
.center-head h2 { margin: 0; font-size: clamp(24px, 4vw, 30px); font-weight: 900; color: #fff; }
.center-head p { margin: 12px auto 0; max-width: 42rem; font-size: clamp(14px, 2.2vw, 16px); color: var(--text-3); line-height: 1.65; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #334155; background: var(--panel); border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 12px; }
.pill-tag svg { width: 14px; height: 14px; }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.engine {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  transition: transform 0.2s, border-color 0.2s;
}
@media (min-width: 640px) { .engine { padding: 28px; } }
.engine:hover { transform: translateY(-4px); }
.engine .icn { display: inline-flex; height: 48px; width: 48px; align-items: center; justify-content: center; border-radius: 16px; margin-bottom: 20px; }
.engine .icn svg { width: 24px; height: 24px; }
.engine h3 { margin: 0 0 8px; font-size: clamp(16px, 2.4vw, 18px); font-weight: 700; color: #fff; }
.engine p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.icn.indigo { background: rgba(99,102,241,0.1); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3); color: var(--indigo-300); }
.icn.emerald { background: rgba(16,185,129,0.1); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.3); color: var(--emerald-300); }
.icn.rose { background: rgba(244,63,94,0.1); box-shadow: inset 0 0 0 1px rgba(244,63,94,0.3); color: var(--rose-300); }

/* 이론 카드 */
.theory { border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); padding: 24px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); backdrop-filter: blur(16px); }
.theory .icn { height: 44px; width: 44px; margin-bottom: 20px; }
.theory h3 { margin: 0 0 8px; font-size: clamp(16px, 2.4vw, 18px); font-weight: 700; color: #fff; }
.theory .desc { margin: 0 0 20px; font-size: 14px; line-height: 1.65; color: var(--text-3); }
.refs { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.refs li + li { margin-top: 12px; }
.refs .au { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #e2e8f0; }
.refs .nt { margin: 0; font-size: 12px; line-height: 1.65; color: var(--text-3); }
.icn.fuchsia { background: rgba(217,70,239,0.1); box-shadow: inset 0 0 0 1px rgba(217,70,239,0.3); color: #f0abfc; }
.icn.violet { background: rgba(139,92,246,0.1); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.3); color: var(--violet-300); }
.disclaimer { margin: 24px auto 0; max-width: 42rem; text-align: center; font-size: 11px; line-height: 1.65; color: var(--text-4); }

/* ── 클로징 배너 + CTA ── */
.closing {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
@media (min-width: 640px) { .closing { border-radius: var(--radius-lg); padding: 40px; } }
.closing .blob1, .closing .blob2 { position: absolute; height: 16rem; width: 16rem; border-radius: 999px; opacity: 0.3; filter: blur(80px); pointer-events: none; }
.closing .blob1 { left: -5rem; top: -5rem; background: #6366f1; }
.closing .blob2 { right: -5rem; bottom: -5rem; background: #7c3aed; }
.closing .inner { position: relative; z-index: 1; margin: 0 auto; max-width: 48rem; }
.closing h2 { margin: 0; font-size: clamp(20px, 3.5vw, 30px); font-weight: 900; color: #fff; }
.closing p { margin: 20px 0 0; font-size: clamp(14px, 2.2vw, 18px); font-weight: 300; line-height: 1.65; color: var(--text-2); }

.cta-row { margin-top: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
@media (min-width: 640px) { .cta-row { flex-direction: row; } }
.cta {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
}
@media (min-width: 640px) { .cta { width: auto; } }
.cta:active { transform: scale(0.98); }
.cta svg { width: 18px; height: 18px; }
.cta-primary { background: #6366f1; color: #fff; box-shadow: 0 10px 25px -5px rgba(99,102,241,0.4); }
.cta-primary:hover { background: #818cf8; }
.cta-secondary { background: rgba(255,255,255,0.06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.cta-secondary:hover { background: rgba(255,255,255,0.1); }
.cta-hint { margin-top: 12px; font-size: 11px; color: var(--text-4); }

/* ── 푸터 ── */
.footer {
  border-top: 1px solid rgba(30,41,59,0.6);
  padding: 32px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-4);
}

.notch { padding-top: env(safe-area-inset-top); }

/* ── 법무 페이지 (privacy / terms) ── */
.legal-wrap {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 40px 24px;
}
@media (min-width: 1024px) { .legal-wrap { padding: 64px 48px; } }
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
@media (min-width: 640px) { .legal-header { margin-bottom: 32px; } }
.legal-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; }
.legal-brand:hover { color: #fff; }
.legal-brand .mark { display: inline-flex; height: 32px; width: 32px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(99,102,241,0.1); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.2); color: var(--indigo-300); }
.legal-brand .mark svg { width: 16px; height: 16px; }
.legal-brand .name { font-size: 14px; font-weight: 600; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-3); text-decoration: none; }
.legal-back:hover { color: #fff; }
.legal-back svg { width: 14px; height: 14px; }

.legal-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.8);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  padding: 24px;
}
@media (min-width: 640px) { .legal-card { padding: 32px; } }
@media (min-width: 1024px) { .legal-card { padding: 40px; } }

.legal-title {
  margin: 0;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.legal-date { margin: 12px 0 0; font-size: 12px; color: var(--text-4); }
.legal-date .d { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.legal-head { margin-bottom: 32px; }
@media (min-width: 1024px) { .legal-head { margin-bottom: 48px; } }

.legal-sections > * + * { margin-top: 32px; }
@media (min-width: 1024px) { .legal-sections > * + * { margin-top: 48px; } }

.legal-section { position: relative; }
@media (min-width: 640px) { .legal-section { padding-left: 48px; } }
.legal-badge {
  display: inline-flex;
  height: 28px; width: 28px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(99,102,241,0.15);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3);
  color: var(--indigo-300);
  font-size: 12px; font-weight: 600;
  margin-right: 8px;
  vertical-align: middle;
}
@media (min-width: 640px) { .legal-badge { position: absolute; left: 0; top: 4px; margin-right: 0; } }
.legal-section h2 {
  display: inline;
  margin: 0;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  word-break: keep-all;
}
@media (min-width: 640px) { .legal-section h2 { display: block; font-size: 20px; } }
.legal-section h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #fff; }
.legal-section .sbody { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--text-2); word-break: keep-all; }
@media (min-width: 1024px) { .legal-section .sbody { font-size: 16px; line-height: 1.8; } }
.legal-section .sbody > * + * { margin-top: 12px; }
.legal-section .sbody p { margin: 0; }
.legal-section ul, .legal-section ol { margin: 0; padding-left: 20px; }
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li + li { margin-top: 4px; }
.legal-section ol.spaced li + li { margin-top: 12px; }
.legal-section .sub { margin-top: 8px; font-size: 12px; color: var(--text-3); }
.legal-section a { color: inherit; text-decoration: underline; }
.legal-section a:hover { color: #fff; }
.legal-section .group + .group { margin-top: 16px; }

.legal-dl { display: grid; grid-template-columns: 1fr; gap: 12px 0; margin: 0; }
@media (min-width: 640px) { .legal-dl { grid-template-columns: 8rem 1fr; gap: 8px 16px; } }
@media (min-width: 1024px) { .legal-dl { grid-template-columns: 10rem 1fr; gap: 8px 24px; } }
.legal-dl dt { font-size: 13px; font-weight: 600; color: var(--text-3); word-break: keep-all; }
@media (min-width: 640px) { .legal-dl dt { font-size: 14px; } }
.legal-dl dd { margin: 0; font-size: 14px; color: #e2e8f0; word-break: keep-all; }
.legal-dl dd a { color: inherit; text-decoration: underline; }

.legal-alert {
  border-radius: 12px;
  border: 1px solid rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.1);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
@media (min-width: 640px) { .legal-alert { padding: 20px; } }
.legal-alert svg { margin-top: 2px; width: 20px; height: 20px; flex-shrink: 0; color: var(--amber-300); }
.legal-alert p { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 600; color: #fde68a; word-break: keep-all; }

.legal-foot {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
@media (min-width: 640px) { .legal-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.legal-foot .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.legal-foot .back-btn:hover { background: rgba(255,255,255,0.1); }
.legal-foot .back-btn svg { width: 16px; height: 16px; }
.legal-foot .cross { font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.legal-foot .cross:hover { color: #fff; }
.legal-copyright { margin: 24px 0 0; text-align: center; font-size: 10px; color: var(--text-4); }
