:root {
  color-scheme: light;
  --ink: #18324a;
  --ink-soft: #496174;
  --paper: #fffdf9;
  --cloud: #f3f8fb;
  --line: #cddde7;
  --blue: #1769aa;
  --blue-dark: #0f4d7d;
  --mint: #dff5ee;
  --warning: #fff2d6;
  --warning-line: #d3941c;
  --shadow: 0 18px 44px rgba(36, 66, 89, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  background: linear-gradient(180deg, #eef7fb 0, var(--paper) 26rem);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 30;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 0.55rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(181, 205, 219, 0.9);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-nav,
.policy-content,
.delete-callout,
.site-footer {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
}

.header-inner {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-paw {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 44% 44% 50% 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small { display: block; line-height: 1.25; }
.brand small { color: var(--ink-soft); font-size: 0.72rem; }

.language-link {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.section-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0 0 0.65rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 0.45rem 0.72rem;
  border-radius: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.section-nav a:hover { background: var(--cloud); color: var(--ink); }

.delete-callout {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid #a8d8c8;
  border-radius: 1rem;
  background: var(--mint);
  box-shadow: var(--shadow);
}

.delete-callout strong,
.delete-callout a { display: block; }

.callout-mark {
  flex: 0 0 auto;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: #176f58;
  color: #fff;
  font-weight: 900;
}

.policy-content {
  min-width: 0;
  margin-top: 2rem;
  margin-bottom: 4rem;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid rgba(205, 221, 231, 0.9);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.policy-content h1 {
  max-width: 100%;
  margin: 0 0 1.2rem;
  font-size: clamp(2rem, 6vw, 3.45rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: wrap;
}

.policy-content h2 {
  margin: 3.4rem 0 1rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.policy-content h3 {
  margin: 2.2rem 0 0.7rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.4;
}

.policy-content p,
.policy-content li {
  max-width: min(78ch, 100%);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.policy-content ul,
.policy-content ol { padding-left: 1.35rem; }

.policy-content li + li { margin-top: 0.35rem; }

.policy-content code {
  max-width: 100%;
  padding: 0.12em 0.35em;
  border-radius: 0.35rem;
  background: #edf3f7;
  color: #173951;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.important-note {
  margin: 1.4rem 0;
  padding: 1rem 1.15rem;
  border-left: 0.35rem solid var(--warning-line);
  border-radius: 0 0.8rem 0.8rem 0;
  background: var(--warning);
}

.important-note > :first-child { margin-top: 0; }
.important-note > :last-child { margin-bottom: 0; }

.table-wrap {
  margin: 1.2rem 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.94rem;
}

.responsive-table th,
.responsive-table td {
  padding: 0.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.responsive-table th:last-child,
.responsive-table td:last-child { border-right: 0; }
.responsive-table tr:last-child td { border-bottom: 0; }
.responsive-table th { background: #eaf3f8; color: #173951; font-weight: 800; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
}

.site-footer p { margin: 0.2rem 0 0; }

@media (max-width: 700px) {
  html { scroll-padding-top: 8.5rem; }
  .header-inner,
  .section-nav,
  .policy-content,
  .delete-callout,
  .site-footer { width: min(100% - 1rem, 1040px); }
  .header-inner { gap: 0.5rem; }
  .brand { min-width: 0; }
  .language-link { flex: 0 0 auto; }
  .section-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .section-nav a {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    white-space: normal;
  }
  .policy-content { margin-top: 1rem; padding: 1.1rem; border-radius: 0.9rem; }
  .policy-content > * { min-width: 0; max-width: 100%; }
  .delete-callout { margin-top: 1rem; align-items: flex-start; }
  .policy-content h2 { margin-top: 2.6rem; }
  .table-wrap { border: 0; overflow: visible; }
  .responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td { display: block; width: 100%; }
  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .responsive-table tr {
    margin-bottom: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    overflow: hidden;
    background: #fff;
  }
  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.75rem;
    border-right: 0;
    overflow-wrap: anywhere;
  }
  .responsive-table td::before {
    content: attr(data-label);
    color: var(--ink-soft);
    font-weight: 800;
  }
  .responsive-table tr:last-child td { border-bottom: 1px solid var(--line); }
  .responsive-table tr td:last-child { border-bottom: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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

@media print {
  .site-header,
  .skip-link,
  .language-link { display: none; }
  body { background: #fff; }
  .policy-content { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
}
