/* ============================================================
   Beacon — policy centre styles
   Tokens mirror index.html so both pages read as one product.
   ============================================================ */
:root {
  --blue: #17358f;
  --blue-press: #102770;
  --blue-soft: #e9eefc;
  --blue-line: #d7dff7;
  --bg: #f3f6fc;
  --card: #ffffff;
  --heading: #142a72;
  --text: #5b6684;
  --muted: #8b94ac;
  --warn: #b4531d;
  --warn-soft: #fdf1e6;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;
  --shadow-sm: 0 6px 18px -12px rgba(14, 34, 99, 0.45);
  --shadow-md: 0 20px 45px -28px rgba(14, 34, 99, 0.55);
  --display: "Poppins", "Noto Sans KR", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Noto Sans KR", system-ui, sans-serif;
  --shell: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

h1, h2, h3 { font-family: var(--display); color: var(--heading); margin: 0; }

a { color: var(--blue); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 60;
}
.skip-link:focus { left: 0; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  background: rgba(243, 246, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-line);
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--blue); }
.brand-name { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: 0.14em; color: var(--heading); font-size: 15px; }
.brand-sub { margin: 0; font-size: 12px; color: var(--muted); }

.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.top-nav a:hover { color: var(--blue); }
.top-nav a.is-current { color: var(--blue); font-weight: 600; }

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

.lang-switcher { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--blue-line); border-radius: var(--pill); padding: 4px; }
.lang-toggle {
  border: 0;
  background: transparent;
  border-radius: var(--pill);
  padding: 6px 12px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.lang-toggle.is-active { background: var(--blue); color: #fff; }

.header-cta {
  background: var(--blue);
  color: #fff;
  border-radius: var(--pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--blue-press); }

/* ---------- hero ---------- */
.policy-hero { padding: 56px 0 32px; max-width: 760px; }
.section-kicker {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.policy-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.2; letter-spacing: -0.02em; }
.policy-lede { margin: 16px 0 0; font-size: 17px; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.policy-chip {
  background: var(--blue-soft);
  color: var(--heading);
  border-radius: var(--pill);
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 600;
}
.policy-chip-quiet { background: var(--card); color: var(--muted); border: 1px solid var(--blue-line); font-weight: 500; }

/* ---------- layout ---------- */
.policy-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 40px; align-items: start; }
/* Grid items default to min-content width; without this the scrollable
   TOC and wide tables push the whole page sideways. */
.policy-layout > * { min-width: 0; }

.policy-toc { position: sticky; top: 104px; display: grid; gap: 20px; }
.policy-toc-title,
.policy-toc-help-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.policy-toc-list { display: grid; gap: 2px; }
.policy-toc-list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.policy-toc-list a:hover { background: var(--card); color: var(--blue); }
.policy-toc-list a.is-active { background: var(--card); color: var(--heading); font-weight: 600; border-left-color: var(--blue); box-shadow: var(--shadow-sm); }
.policy-toc-help { border-top: 1px solid var(--blue-line); padding-top: 18px; }
.policy-toc-help a { font-size: 13px; word-break: break-all; }

.policy-body { display: grid; gap: 20px; }
.policy-loading { color: var(--muted); }

/* ---------- document cards ---------- */
.policy-doc {
  background: var(--card);
  border: 1px solid var(--blue-line);
  border-radius: var(--r-lg);
  padding: 36px 38px 40px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 104px;
}
.policy-doc-kicker {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.policy-doc h2 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; letter-spacing: -0.01em; }
.policy-doc-intro { margin: 14px 0 0; font-size: 15.5px; }
.policy-doc h3 {
  margin: 30px 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  padding-top: 22px;
  border-top: 1px solid var(--blue-line);
}
.policy-doc h3:first-of-type { border-top: 0; padding-top: 0; }
.policy-doc p { margin: 12px 0; font-size: 15px; }
.policy-doc ul,
.policy-doc ol { margin: 12px 0; padding-left: 22px; font-size: 15px; }
.policy-doc li { margin: 7px 0; }
.policy-doc li::marker { color: var(--blue); }

.policy-note {
  margin: 16px 0;
  padding: 16px 20px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14.5px;
  color: var(--heading);
}
.policy-note.is-warn { background: var(--warn-soft); border-left-color: var(--warn); color: var(--warn); }

.policy-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--blue-line); border-radius: var(--r-md); }
.policy-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.policy-table th,
.policy-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--blue-line); }
.policy-table th { background: var(--blue-soft); color: var(--heading); font-weight: 600; white-space: nowrap; }
.policy-table tr:last-child td { border-bottom: 0; }

.policy-linklist { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.policy-linklist a {
  background: var(--blue-soft);
  border-radius: var(--pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.policy-linklist a:hover { background: var(--blue); color: #fff; }

/* Unfilled operator details — must be obvious before launch. */
.policy-todo {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px dashed currentColor;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.92em;
  font-weight: 600;
}

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--blue-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 26px; height: 26px; color: var(--blue); }
.footer-brand { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: 0.14em; color: var(--heading); font-size: 14px; }
.footer-copy { margin: 12px 0 0; font-size: 14px; max-width: 320px; }
.footer-heading { margin: 0 0 12px; font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer-links-list { display: grid; gap: 8px; }
.footer-links-list a { font-size: 14px; color: var(--text); text-decoration: none; }
.footer-links-list a:hover { color: var(--blue); }
.footer-disclaimer { margin: 32px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; max-width: 780px; }
.footer-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; gap: 24px; }
  .policy-toc { position: static; }
  .policy-toc-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .policy-toc-list a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .policy-toc-list a.is-active { border-left: 0; border-bottom-color: var(--blue); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-shell { padding: 0 18px 48px; }
  .top-nav { display: none; }
  .header-actions { margin-left: auto; }
  .policy-doc { padding: 26px 22px 30px; border-radius: var(--r-md); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
