:root {
  --bg: #faf7f2;
  --bg-2: #f2ede5;
  --surface: #ffffff;
  --border: #e5ddf0;
  --accent: #7c5cbf;
  --accent-soft: #ede6f9;
  --accent-mid: #b89fe0;
  --text: #1e1a2e;
  --text-2: #6b6081;
  --text-3: #9e93b5;
  --link: #6040a8;
  --tag-bg: #ede6f9;
  --tag-text: #5a3e9b;
  --table-head: #f5f0fb;
  --shadow: 0 1px 3px rgba(60, 40, 100, 0.07), 0 4px 16px rgba(60, 40, 100, 0.06);
  --warn-bg: #fff7ed;
  --warn-border: #fb923c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18152a;
    --bg-2: #1e1a30;
    --surface: #231f38;
    --border: #352e50;
    --accent: #a07ee0;
    --accent-soft: #2d2550;
    --accent-mid: #7b5cc0;
    --text: #f0eaf8;
    --text-2: #b0a5cc;
    --text-3: #756888;
    --link: #c4a7f0;
    --tag-bg: #2d2550;
    --tag-text: #c4a7f0;
    --table-head: #1e1a30;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    --warn-bg: #2a1e10;
    --warn-border: #ea8035;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  color-scheme: light dark;
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  padding-inline: 20px;
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  max-width: 700px;
  margin-inline: auto;
  padding-block: 56px 80px;
  min-width: 0;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.site-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.site-name {
  font-family: "Noto Serif KR", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.policy-hero {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.policy-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.policy-label::before {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--accent);
}

.policy-hero h1 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.effective-date,
.home-lead {
  font-size: 0.9375rem;
  color: var(--text-2);
}

.home-lead {
  margin-bottom: 24px;
}

.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.company-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.company-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
}

.company-grid dt {
  font-size: 0.8125rem;
  color: var(--text-3);
  white-space: nowrap;
  padding-top: 1px;
}

.company-grid dd {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.company-grid dd a,
.policy-section a,
.footer-meta a,
.home-links a {
  color: var(--link);
  text-decoration: none;
}

.company-grid dd a:hover,
.policy-section a:hover,
.footer-meta a:hover {
  text-decoration: underline;
}

.policy-section {
  margin-bottom: 40px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.section-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--tag-text);
  background: var(--tag-bg);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.section-heading h2 {
  font-family: "Noto Serif KR", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.policy-section p,
.home-lead {
  overflow-wrap: anywhere;
}

.policy-section p {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-bottom: 10px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section em {
  font-style: italic;
  color: var(--text);
}

.note,
.note-warn {
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-block: 14px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.note-warn {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-border);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: var(--table-head);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.775rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 11px 16px;
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.65;
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--bg-2);
}

td:first-child {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.policy-section ul,
.policy-section ol {
  padding-left: 1.25rem;
  margin-bottom: 10px;
}

.policy-section li {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.75;
}

.policy-section li::marker {
  color: var(--accent-mid);
}

.prohibit-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.prohibit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.prohibit-list li::before {
  content: "×";
  color: #e55a5a;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 3px;
  line-height: 1;
}

.rights-grid {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.rights-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.rights-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

.rights-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.rights-item-detail {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.6;
}

.rights-item-detail a {
  color: var(--link);
  text-decoration: none;
}

.rights-item-detail a:hover {
  text-decoration: underline;
}

.home-links {
  display: grid;
  gap: 10px;
  margin-bottom: 40px;
}

.home-links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.home-links a:hover {
  border-color: var(--accent-mid);
}

.page-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-footer p {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.page-footer a {
  font-weight: 500;
}

@media (max-width: 640px) {
  .table-wrap thead {
    display: none;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .table-wrap tr:last-child {
    border-bottom: none;
  }

  .table-wrap td {
    border: none;
    padding: 2px 0;
    white-space: normal;
  }

  .table-wrap td:first-child {
    font-weight: 700;
    padding-top: 0;
  }

  .table-wrap td:last-child {
    font-size: 0.8rem;
    color: var(--text-3);
  }
}

@media (max-width: 480px) {
  .company-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .company-grid dt {
    margin-bottom: -4px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  td:first-child {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
