:root {
  color-scheme: light;
  --background: #f6f7fb;
  --surface: #ffffff;
  --text: #17181c;
  --muted: #626672;
  --border: #dfe2e8;
  --accent: #3657d6;
  --accent-soft: #edf1ff;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.site-header,
.policy,
.site-footer {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 18px;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.language-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.language-link:hover,
.language-link:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
}

.policy {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 50px rgb(27 35 70 / 8%);
}

h1,
h2 {
  line-height: 1.25;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  margin: 48px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

p,
ul {
  margin-block: 12px;
}

ul {
  padding-left: 1.35rem;
}

code {
  padding: 0.12em 0.35em;
  border-radius: 5px;
  background: var(--accent-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.table-scroll {
  margin-block: 18px 26px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  padding-block: 22px 42px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .site-header,
  .policy,
  .site-footer {
    width: min(100% - 20px, 960px);
  }

  .site-header {
    padding-top: 18px;
  }

  .policy {
    padding: 24px 18px;
    border-radius: 16px;
  }

  h2 {
    margin-top: 38px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 140ms ease, border-color 140ms ease, outline-color 140ms ease;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer {
    display: none;
  }

  .policy {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .table-scroll {
    overflow: visible;
  }

  table {
    min-width: 0;
  }
}
