:root {
  --bg: #f5f2eb;
  --text: #1a1a18;
  --muted: #5c5c58;
  --accent: #26c974;
  --accent-dark: #0d6b3a;
  --border: #c8c3b8;
  --border-table: #7a746a;
  --border-table-strong: #4a4540;
  --surface: #fff;
  --max: 42rem;
}

* { box-sizing: border-box; }

html[lang="ko"] body {
  font-family: "Noto Sans KR", "Noto Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="en"] body {
  font-family: "Noto Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #094d2a;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

header.legal-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.meta a {
  font-weight: 600;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

p, ul, ol { margin: 0.5rem 0 1rem; }

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

li + li { margin-top: 0.35rem; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1.5px solid var(--border-table-strong);
  border-radius: 4px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-table-strong);
  font-size: 0.875rem;
  margin: 0;
}

th, td {
  border: 1px solid var(--border-table-strong);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #ebe6de;
  font-weight: 600;
}

thead th {
  border-bottom: 2px solid var(--border-table-strong);
}

tbody tr:nth-child(even) td {
  background: #f7f4ef;
}

p.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

footer.legal-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

footer.legal-footer a {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .wrap { padding: 1.5rem 1rem 3rem; }
  th, td { padding: 0.5rem; font-size: 0.8125rem; }
}
