:root {
  color-scheme: light dark;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  --background: #f6f2ea;
  --surface: #fffcf6;
  --text: #1f2528;
  --muted-text: #687075;
  --selection-surface: #e6e2d9;
  --line: #ded9cf;
  --shadow: 0 16px 42px rgb(50 42 28 / 8%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151819;
    --surface: #202526;
    --text: #ece7dd;
    --muted-text: #b3b0a9;
    --selection-surface: #343a3b;
    --line: #393f40;
    --shadow: 0 16px 42px rgb(0 0 0 / 20%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(16px);
}

.header-content {
  display: flex;
  width: min(100% - 40px, 760px);
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  line-height: 1.2;
  text-decoration: none;
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 5px 12px rgb(0 0 0 / 12%);
}

.brand strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-detail {
  display: block;
  margin-top: 2px;
  color: var(--muted-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-navigation {
  display: inline-flex;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.site-navigation a {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--muted-text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.site-navigation a[aria-current="page"] {
  background: var(--selection-surface);
  color: var(--text);
}

.language-picker {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.language-picker button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-picker button[aria-pressed="true"] {
  background: var(--selection-surface);
  color: var(--text);
}

.language-picker button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.policy-shell {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.policy {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-intro {
  margin-bottom: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2 {
  font-family: var(--font-sans);
  color: var(--text);
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 3.25rem);
  line-height: 1.12;
}

h2 {
  margin: 40px 0 14px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.updated {
  margin: 13px 0 0;
  color: var(--muted-text);
  font-size: 0.88rem;
}

.contact-intro {
  max-width: 38rem;
  margin: 13px 0 0;
  color: var(--muted-text);
}

p {
  margin: 0 0 16px;
}

section:last-child p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding-left: 1.35rem;
}

li {
  margin: 0 0 12px;
  padding-left: 0.25rem;
}

li:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 750;
}

.contact-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-details div {
  display: grid;
  grid-template-columns: minmax(96px, 0.3fr) 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  font-weight: 600;
}

.return-link {
  margin-top: 42px;
  margin-bottom: 0;
}

a {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: var(--muted-text);
  text-underline-offset: 0.16em;
}

.site-footer {
  padding: 0 20px 44px;
  color: var(--muted-text);
  text-align: center;
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 520px) {
  .header-content,
  .policy-shell {
    width: min(100% - 28px, 760px);
  }

  .header-content {
    min-height: 74px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .app-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .brand-detail {
    display: none;
  }

  .site-navigation {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .site-navigation a {
    flex: 1;
    text-align: center;
  }

  .language-picker button {
    padding: 0 8px;
  }

  .policy-shell {
    padding: 28px 0 52px;
  }

  .policy {
    padding: 26px 21px 30px;
    border-radius: 18px;
  }

  .policy-intro {
    margin-bottom: 34px;
    padding-bottom: 24px;
  }

  h2 {
    margin-top: 34px;
  }

  .contact-details div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
