:root {
  --surface: #ffffff;
  --surface-muted: #f3f5f7;
  --surface-inverse: #191c21;
  --text: #191c21;
  --text-muted: #555b64;
  --text-inverse: #ffffff;
  --text-inverse-muted: #c7cbd1;
  --border: #d9dde2;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --content: 68rem;
  --reading: 42rem;
  --gutter: var(--space-5);
  --rule: 0.0625rem solid var(--border);
  --rule-strong: 0.0625rem solid var(--text);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 430;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

p,
h1,
h2 {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: var(--space-5);
}

:focus-visible {
  outline: 0.125rem solid currentColor;
  outline-offset: var(--space-1);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: var(--space-3);
  left: var(--gutter);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-inverse);
  color: var(--text-inverse);
  transform: translateY(calc(-100% - var(--space-6)));
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  border-bottom: var(--rule);
}

.header-inner {
  display: grid;
  width: min(100%, var(--content));
  gap: var(--space-4);
  margin-inline: auto;
  padding: var(--space-4) var(--gutter);
}

.brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: var(--space-3);
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  font-weight: 750;
}

.brand span:last-child {
  display: grid;
  line-height: 1.15;
}

.brand small {
  color: var(--text-muted);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  overflow-x: auto;
  gap: var(--space-6);
  color: var(--text-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

nav a {
  min-height: 2.75rem;
  align-content: center;
  border-bottom: 0.125rem solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  border-bottom-color: currentColor;
  color: var(--text);
}

main:focus {
  outline: none;
}

.page-inner {
  display: grid;
  width: min(100%, var(--content));
  gap: var(--space-10);
  margin-inline: auto;
  padding: var(--space-16) var(--gutter) var(--space-20);
}

.page-heading {
  display: grid;
  max-width: var(--reading);
  gap: var(--space-4);
}

.eyebrow {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

h1 {
  font-size: 2rem;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

.lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  word-break: keep-all;
}

.policy-content {
  border-top: var(--rule-strong);
}

.preamble {
  display: grid;
  max-width: var(--reading);
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: var(--rule);
  color: var(--text-muted);
}

.policy-section {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: var(--rule);
}

.policy-section h2 {
  font-size: 1rem;
  line-height: 1.5;
}

.section-body {
  display: grid;
  max-width: var(--reading);
  gap: var(--space-4);
  color: var(--text-muted);
  word-break: keep-all;
}

.section-body ul {
  display: grid;
  gap: var(--space-2);
}

.section-body a {
  border-bottom: 0.0625rem solid currentColor;
  color: var(--text);
}

code {
  padding: 0.125rem var(--space-1);
  background: var(--surface-muted);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
}

footer {
  background: var(--surface-inverse);
  color: var(--text-inverse);
}

.footer-inner {
  display: grid;
  width: min(100%, var(--content));
  gap: var(--space-5);
  margin-inline: auto;
  padding: var(--space-10) var(--gutter);
}

.footer-title {
  font-weight: 650;
}

footer > .footer-inner > a,
footer nav {
  width: fit-content;
  color: var(--text-inverse-muted);
  font-size: 0.875rem;
}

footer nav a:hover,
footer nav a[aria-current="page"] {
  color: var(--text-inverse);
}

@media (min-width: 48rem) {
  :root {
    --gutter: var(--space-8);
  }

  .header-inner {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    padding-block: 0;
  }

  .page-inner {
    gap: var(--space-12);
    padding-block: var(--space-20);
  }

  h1 {
    font-size: 2.25rem;
  }

  .lead {
    font-size: 1.375rem;
  }

  .policy-section {
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr);
    gap: var(--space-8);
    padding-block: var(--space-8);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
