/* =========================================================================
   LawNavi 웹사이트 — KRDS(대한민국 정부 디자인시스템) 디자인 토큰 구현
   -------------------------------------------------------------------------
   색상 원시 팔레트는 KRDS 공식 디자인 토큰(krds-uiux, transformed_tokens.json,
   표준형)에서 가져왔고, 타이포그래피·간격·모양(radius)·상태(state)·포커스
   규칙은 KRDS 스타일 가이드(웹) 체계를 그대로 따른다.
   ========================================================================= */

:root {
  /* ---- Color · 원시 팔레트 (KRDS) --------------------------------- */
  --gray-0: #ffffff;
  --gray-5: #f4f5f6;
  --gray-10: #e6e8ea;
  --gray-20: #cdd1d5;
  --gray-30: #b1b8be;
  --gray-40: #8a949e;
  --gray-50: #6d7882;
  --gray-60: #4b5764;
  --gray-70: #37424c;
  --gray-80: #262c33;
  --gray-90: #1e2124;
  --gray-95: #131416;
  --black: #000000;

  --primary-5: #ecf2fe;
  --primary-10: #d3e2fd;
  --primary-20: #a9c7fb;
  --primary-30: #7ea9f8;
  --primary-40: #5389f6;
  --primary-50: #256ef4;
  --primary-60: #0b50d0;
  --primary-70: #083e9e;
  --primary-80: #052b6d;
  --primary-90: #02194d;
  --primary-95: #020f27;

  --secondary-50: #346fb2;
  --secondary-60: #1c589c;

  --point-50: #d63d4a;
  --point-60: #ab2b36;

  --danger-5: #fdefec;
  --danger-50: #de3412;
  --danger-60: #bd2c0f;
  --warning-5: #fff3db;
  --warning-50: #9e6a00;
  --warning-60: #8a5c00;
  --success-5: #eaf6ec;
  --success-50: #228738;
  --success-60: #267337;
  --info-5: #e7f4fe;
  --info-50: #0b78cb;
  --info-60: #096ab3;

  --graphic-50: #61758f;
  --graphic-70: #39506c;
  --graphic-90: #223a58;

  /* KRDS 팔레트에 대응 hue가 없는 조문 하위 단계 보조색 */
  --supplement-teal-50: #0b7285;
  --supplement-purple-50: #7c3aed;

  /* ---- Color · 의미 토큰 (light) --------------------------------- */
  --surface: var(--gray-0);
  --surface-basic: #fbfbfc;
  --surface-subtle: var(--gray-5);
  --surface-inverse: var(--gray-90);
  --surface-primary-subtle: var(--primary-5);

  --border: var(--gray-20);
  --border-subtle: var(--gray-10);
  --border-strong: var(--gray-30);

  --text: var(--gray-90);
  --text-secondary: var(--gray-60);
  --text-assistive: var(--gray-50);
  --text-disabled: var(--gray-40);
  --text-on-primary: var(--gray-0);
  --link: var(--primary-60);

  --primary: var(--primary-50);
  --primary-hover: var(--primary-60);
  --primary-active: var(--primary-70);

  --disabled-bg: var(--gray-20);
  --disabled-text: var(--gray-40);

  /* ---- Typography (KRDS 웹 스케일, rem @16px) -------------------- */
  --font-sans: "Pretendard GOV Variable", "Pretendard Variable", Pretendard,
    system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-detail-s: 0.8125rem;   /* 13 */
  --fs-detail-m: 0.875rem;    /* 14 */
  --fs-detail-l: 0.9375rem;   /* 15 */
  --fs-body-s: 0.9375rem;     /* 15 */
  --fs-body-m: 1.0625rem;     /* 17 - 본문 기본 */
  --fs-body-l: 1.1875rem;     /* 19 */
  --fs-title-s: 1.25rem;      /* 20 */
  --fs-title-m: 1.375rem;     /* 22 */
  --fs-title-l: 1.5rem;       /* 24 */
  --fs-heading-s: 1.75rem;    /* 28 */
  --fs-heading-m: 2rem;       /* 32 */
  --fs-heading-l: clamp(2rem, 1.45rem + 2.5vw, 2.75rem);
  --fs-display-s: clamp(2.5rem, 1.7rem + 3.4vw, 3.5rem);

  --lh-tight: 1.35;
  --lh-heading: 1.42;
  --lh-body: 1.6;
  --lh-loose: 1.8;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Spacing (KRDS) ------------------------------------------- */
  --space-0: 0;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;
  --space-11: 56px;
  --space-12: 64px;
  --space-13: 80px;
  --space-14: 96px;
  --space-15: 120px;

  /* ---- Radius (KRDS) ------------------------------------------- */
  --radius-xs: 4px;
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ---- Border width (KRDS) ----------------------------------- */
  --border-1: 1px;
  --border-2: 2px;
  --border-3: 4px;

  /* ---- Elevation (KRDS shadow) ------------------------------- */
  --shadow-1: 0 1px 3px rgba(30, 33, 36, 0.08), 0 1px 2px rgba(30, 33, 36, 0.06);
  --shadow-2: 0 4px 12px rgba(30, 33, 36, 0.08), 0 2px 4px rgba(30, 33, 36, 0.06);
  --shadow-3: 0 12px 32px rgba(30, 33, 36, 0.12), 0 4px 8px rgba(30, 33, 36, 0.08);
  --shadow-4: 0 24px 56px rgba(30, 33, 36, 0.18), 0 8px 16px rgba(30, 33, 36, 0.1);

  /* ---- Focus (KRDS 접근성) ---------------------------------- */
  --focus-width: 2px;
  --focus-offset: 2px;
  --focus-color: var(--primary-60);

  /* ---- Layout ---------------------------------------------- */
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 64px;

  --page-bg: var(--surface-basic);
  --header-bg: rgba(255, 255, 255, 0.85);
  color-scheme: light;
}

/* ---- Dark 의미 토큰 (KRDS dark) ------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1b1d1f;
    --surface-basic: #131416;
    --surface-subtle: #24272a;
    --surface-inverse: #eef0f2;
    --surface-primary-subtle: #16233c;

    --border: #3a3f44;
    --border-subtle: #2c3033;
    --border-strong: #4b525a;

    --text: #eef0f2;
    --text-secondary: #b6bcc2;
    --text-assistive: #8b9298;
    --text-disabled: #666c72;
    --link: #7ea9f8;

    --primary-hover: var(--primary-40);
    --primary-active: var(--primary-30);
    --primary-5: #16233c;

    --disabled-bg: #3a3f44;
    --disabled-text: #767c82;

    --danger-5: #2a1712;
    --warning-5: #2a2110;
    --success-5: #12241a;
    --info-5: #10202c;

    --header-bg: rgba(19, 20, 22, 0.82);
    color-scheme: dark;
  }
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-5));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body-m);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}

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

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}
ul,
ol {
  list-style: none;
  padding: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-xs);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  z-index: 200;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-s);
  font-weight: var(--fw-semibold);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: var(--space-4);
}

/* =========================================================================
   Layout primitives
   ========================================================================= */
.wrap {
  width: min(var(--container), 100% - 2 * var(--space-6));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(var(--container-narrow), 100% - 2 * var(--space-6));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-15));
}
.section--tint {
  background: var(--surface-subtle);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(var(--space-9), 4vw, var(--space-12));
}
.section-head h2 {
  font-size: var(--fs-heading-m);
  line-height: var(--lh-heading);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}
.section-desc {
  margin-top: var(--space-4);
  font-size: var(--fs-body-m);
  color: var(--text-secondary);
}

.eyebrow {
  font-size: var(--fs-detail-m);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-60);
  margin-bottom: var(--space-4);
}

/* =========================================================================
   Button (KRDS) — variant × size × state
   ========================================================================= */
.btn {
  --_bg: var(--primary);
  --_fg: var(--text-on-primary);
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 40px;
  padding: 0 var(--space-5);
  font-family: inherit;
  font-size: var(--fs-body-s);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: var(--border-1) solid var(--_bd);
  border-radius: var(--radius-s);
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}

.btn--sm {
  min-height: 32px;
  padding: 0 var(--space-4);
  font-size: var(--fs-detail-m);
}
.btn--lg {
  min-height: 52px;
  padding: 0 var(--space-7);
  font-size: var(--fs-body-m);
}
.btn--block {
  width: 100%;
}

.btn--primary {
  --_bg: var(--primary);
  --_fg: var(--text-on-primary);
}
.btn--primary:hover {
  --_bg: var(--primary-hover);
}
.btn--primary:active {
  --_bg: var(--primary-active);
}

/* KRDS Secondary(라인형) — 흰 배경 + 옅은 회색 테두리 */
.btn--secondary {
  --_bg: var(--surface);
  --_fg: var(--text);
  --_bd: var(--border);
}
.btn--secondary:hover {
  --_bg: var(--surface-subtle);
}

/* KRDS Tertiary(텍스트형) */
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--primary);
  --_bd: transparent;
}
.btn--ghost:hover {
  --_bg: var(--primary-5);
}

.btn--danger {
  --_bg: var(--danger-50);
  --_fg: #fff;
}
.btn--danger:hover {
  --_bg: var(--danger-60);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  --_bg: var(--disabled-bg);
  --_fg: var(--disabled-text);
  --_bd: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

.winmark {
  flex: 0 0 auto;
}

/* =========================================================================
   Header / GNB
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--border-1) solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  font-weight: var(--fw-bold);
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-m);
}
.brand__name {
  font-size: var(--fs-title-s);
  letter-spacing: -0.01em;
}
.brand__ver {
  font-size: var(--fs-detail-s);
  font-weight: var(--fw-bold);
  color: var(--primary-60);
  background: var(--primary-5);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.gnb {
  margin-left: auto;
}
.gnb ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.gnb a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-s);
  color: var(--text-secondary);
  font-size: var(--fs-detail-l);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.gnb a:hover {
  color: var(--text);
  background: var(--surface-subtle);
  text-decoration: none;
}
.gnb a.is-current {
  color: var(--primary-60);
  background: var(--primary-5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: var(--border-1) solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--text);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  padding-block: clamp(var(--space-11), 6vw, var(--space-15))
    clamp(var(--space-10), 5vw, var(--space-14));
  background: linear-gradient(180deg, var(--primary-5) 0%, var(--page-bg) 72%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-7), 4vw, var(--space-12));
  align-items: center;
}
.hero-copy h1 {
  font-size: var(--fs-display-s);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-6);
}
.lede {
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  max-width: 44ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-9) 0 var(--space-6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  color: var(--text-assistive);
  font-size: var(--fs-detail-m);
}
.hero-meta li {
  position: relative;
  padding-left: 18px;
}
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success-50);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
}
.hero-icon {
  width: min(240px, 62%);
  height: auto;
  filter: drop-shadow(0 28px 48px rgba(11, 80, 208, 0.26));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-14px);
  }
}
.glow {
  position: absolute;
  inset: 8% 12% auto 12%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(37, 110, 244, 0.32),
    rgba(37, 110, 244, 0) 66%
  );
  filter: blur(10px);
}

/* =========================================================================
   Trust bar
   ========================================================================= */
.trustbar {
  border-block: var(--border-1) solid var(--border-subtle);
  background: var(--surface);
}
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-7);
}
.trust strong {
  display: block;
  font-size: var(--fs-body-s);
  color: var(--text);
  margin-bottom: 2px;
}
.trust span {
  font-size: var(--fs-detail-m);
  color: var(--text-assistive);
}

/* =========================================================================
   Feature grid
   ========================================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.card {
  background: var(--surface);
  border: var(--border-1) solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: var(--space-7);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--border);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  font-size: var(--fs-title-s);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-5);
  background: var(--primary-5);
  color: var(--primary-60);
}
.card__icon[data-token="info"] {
  background: var(--info-5);
  color: var(--info-60);
}
.card__icon[data-token="point"] {
  background: var(--danger-5);
  color: var(--point-60);
}
.card__icon[data-token="success"] {
  background: var(--success-5);
  color: var(--success-60);
}
.card__icon[data-token="warning"] {
  background: var(--warning-5);
  color: var(--warning-60);
}
.card__icon[data-token="graphic"] {
  background: color-mix(in srgb, var(--graphic-50) 16%, var(--surface));
  color: var(--graphic-90);
}
.card__icon[data-token="secondary"] {
  background: color-mix(in srgb, var(--secondary-50) 14%, var(--surface));
  color: var(--secondary-60);
}
.card h3 {
  font-size: var(--fs-title-s);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.card p {
  font-size: var(--fs-body-s);
  color: var(--text-secondary);
}
.card em {
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

/* =========================================================================
   Download
   ========================================================================= */
.download-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--space-7), 4vw, var(--space-12));
  background: var(--surface);
  border: var(--border-1) solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-11));
  box-shadow: var(--shadow-2);
}
.download-copy h2 {
  font-size: var(--fs-heading-s);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.download-copy p {
  color: var(--text-secondary);
  font-size: var(--fs-body-s);
}
.dl-facts {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.dl-facts li {
  display: flex;
  gap: var(--space-4);
  font-size: var(--fs-body-s);
  padding: var(--space-3) 0;
  border-bottom: var(--border-1) solid var(--border-subtle);
}
.dl-facts li:last-child {
  border-bottom: 0;
}
.dl-facts b {
  min-width: 92px;
  color: var(--text-assistive);
  font-weight: var(--fw-semibold);
}
.spec {
  margin-top: var(--space-5);
  padding-top: var(--space-6);
  border-top: var(--border-1) solid var(--border-subtle);
}
.spec h3 {
  font-size: var(--fs-body-m);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}
.spec-list {
  display: grid;
  gap: 2px;
}
.spec-list > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: var(--border-1) solid var(--border-subtle);
}
.spec-list > div:last-child {
  border-bottom: 0;
}
.spec-list dt {
  color: var(--text-assistive);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-detail-m);
}
.spec-list dd {
  font-size: var(--fs-body-s);
  color: var(--text-secondary);
}
.download-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-self: start;
}
.download-note {
  font-size: var(--fs-detail-m);
  color: var(--text-assistive);
}

/* =========================================================================
   FAQ (KRDS Accordion)
   ========================================================================= */
.faq details {
  border: var(--border-1) solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}
.faq summary {
  cursor: pointer;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-s);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: var(--fs-title-s);
  color: var(--primary-60);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--fs-body-s);
}

/* =========================================================================
   하위 페이지 (개인정보처리방침 / 라이선스 / 버전 보기 / 공지사항)
   ========================================================================= */
.page-hero {
  background: linear-gradient(180deg, var(--primary-5) 0%, var(--page-bg) 100%);
  border-bottom: var(--border-1) solid var(--border-subtle);
  padding-block: clamp(var(--space-10), 5vw, var(--space-13))
    clamp(var(--space-8), 3.5vw, var(--space-10));
}
.page-hero .eyebrow {
  margin-bottom: var(--space-3);
}
.page-hero h1 {
  font-size: var(--fs-heading-s);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
}
.page-hero .page-meta {
  margin-top: var(--space-4);
  font-size: var(--fs-detail-m);
  color: var(--text-assistive);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-5);
  font-size: var(--fs-detail-m);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
}
.page-body {
  padding-block: clamp(var(--space-10), 5vw, var(--space-13))
    clamp(var(--space-12), 7vw, var(--space-15));
}

.legal {
  max-width: var(--container-narrow);
}
.legal h2 {
  font-size: var(--fs-title-s);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin: var(--space-11) 0 var(--space-4);
  padding-top: var(--space-6);
  border-top: var(--border-1) solid var(--border-subtle);
}
.legal h2:first-of-type {
  margin-top: var(--space-7);
  padding-top: 0;
  border-top: 0;
}
.legal .lead + h2:first-of-type {
  margin-top: var(--space-9);
}
.legal h3 {
  font-size: var(--fs-body-m);
  font-weight: var(--fw-bold);
  margin: var(--space-6) 0 var(--space-3);
}
.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: var(--fs-body-s);
  line-height: var(--lh-body);
}
.legal p + p {
  margin-top: var(--space-4);
}
.legal ul,
.legal ol {
  margin: var(--space-4) 0;
  padding-left: 1.35em;
  display: grid;
  gap: var(--space-2);
}
.legal ul {
  list-style: disc;
}
.legal ol {
  list-style: decimal;
}
.legal .lead {
  font-size: var(--fs-body-m);
  color: var(--text);
}
.legal strong {
  color: var(--text);
  font-weight: var(--fw-semibold);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: var(--fs-body-s);
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-4);
  border: var(--border-1) solid var(--border-subtle);
}
.legal th {
  background: var(--surface-subtle);
  font-weight: var(--fw-bold);
  color: var(--text);
  white-space: nowrap;
}
.legal td {
  color: var(--text-secondary);
}
.legal .note {
  margin-top: var(--space-9);
  padding: var(--space-5);
  background: var(--surface-subtle);
  border-radius: var(--radius-l);
  font-size: var(--fs-detail-m);
  color: var(--text-assistive);
}

/* 버전 보기 */
.release {
  max-width: var(--container-narrow);
  border: var(--border-1) solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface);
  padding: var(--space-7);
}
.release.is-current {
  border-color: var(--primary-50);
  box-shadow: var(--shadow-1);
}
.release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.release__ver {
  font-size: var(--fs-title-m);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}
.release__date {
  font-size: var(--fs-detail-m);
  color: var(--text-assistive);
}
.badge {
  font-size: var(--fs-detail-s);
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--success-5);
  color: var(--success-60);
}
.release h3 {
  font-size: var(--fs-detail-m);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-assistive);
  margin: var(--space-5) 0 var(--space-3);
}
.release ul {
  padding-left: 1.25em;
  list-style: disc;
  display: grid;
  gap: var(--space-2);
}
.release li {
  color: var(--text-secondary);
  font-size: var(--fs-body-s);
}
.release .modal-note,
.release + .note {
  max-width: var(--container-narrow);
}

/* 공지사항 */
.notice-list {
  max-width: var(--container-narrow);
  display: grid;
  gap: var(--space-4);
}
.notice {
  border: var(--border-1) solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface);
  padding: var(--space-6);
}
.notice__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}
.notice__date {
  font-size: var(--fs-detail-m);
  color: var(--text-assistive);
}
.notice__tag {
  font-size: var(--fs-detail-s);
  font-weight: var(--fw-bold);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  color: var(--text-secondary);
}
.notice__tag[data-kind="release"] {
  background: var(--primary-5);
  color: var(--primary-60);
}
.notice__tag[data-kind="service"] {
  background: var(--warning-5);
  color: var(--warning-60);
}
.notice__tag[data-kind="data"] {
  background: var(--success-5);
  color: var(--success-60);
}
.notice h2 {
  font-size: var(--fs-body-m);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}
.notice p {
  font-size: var(--fs-body-s);
  color: var(--text-secondary);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: var(--border-1) solid var(--border-subtle);
  background: var(--surface);
  padding-block: var(--space-11);
}
.footer-inner {
  display: grid;
  gap: var(--space-4);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--fw-bold);
}
.footer-ver {
  font-size: var(--fs-detail-s);
  color: var(--text-assistive);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-4);
  border-block: var(--border-1) solid var(--border-subtle);
}
.footer-links a {
  font-size: var(--fs-detail-m);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--primary-60);
}
.footer-note {
  font-size: var(--fs-detail-m);
  color: var(--text-assistive);
  max-width: 70ch;
}
.footer-copy {
  font-size: var(--fs-detail-m);
  color: var(--text-assistive);
}

/* =========================================================================
   Reveal on scroll
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 170px;
  }
  .hero-icon {
    width: 150px;
  }
  .download-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .gnb {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: var(--border-1) solid var(--border-subtle);
    box-shadow: var(--shadow-2);
    display: none;
  }
  .gnb.is-open {
    display: block;
  }
  .gnb ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-3);
  }
  .gnb a {
    padding: var(--space-4);
  }
  .nav-toggle {
    display: block;
  }
  .header-inner {
    gap: var(--space-4);
  }
  .brand__ver {
    display: none;
  }
  .trustbar-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .dl-facts li {
    flex-wrap: wrap;
  }
  .legal table,
  .legal thead,
  .legal tbody,
  .legal th,
  .legal td,
  .legal tr {
    display: block;
  }
  .legal th {
    border-bottom: 0;
  }
}
