:root {
  color-scheme: light dark;
  --bg: #f6f2e9;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #fffdf8;
  --text: #17223b;
  --muted: #697083;
  --line: rgba(23, 34, 59, 0.10);
  --navy: #17223b;
  --navy-soft: #253654;
  --red: #d95f56;
  --cream: #f6f2e9;
  --shadow: 0 16px 40px rgba(40, 47, 65, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(217, 95, 86, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 13px;
  background: var(--surface-strong);
  box-shadow: 0 8px 22px rgba(23, 34, 59, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  padding: 18px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(36px, 6vw, 58px);
}

.page-title {
  font-size: clamp(32px, 5vw, 46px);
}

.hero-copy,
.page-intro {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.integration-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.integration-summary > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(40, 47, 65, 0.05);
}

.integration-summary strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.integration-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card,
.policy-section,
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card {
  min-height: 100%;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.card-wide {
  grid-column: 1 / -1;
}

.card h2,
.policy-section h2 {
  margin: 0 0 14px;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.card h2 {
  font-size: 20px;
}

.card p,
.card li,
.policy-section p,
.policy-section li,
.policy-section td,
.policy-section th {
  color: var(--muted);
  font-size: 15px;
}

.policy-section p,
.policy-section li,
.policy-section td {
  line-height: 1.78;
}

.card p:last-child,
.policy-section p:last-child {
  margin-bottom: 0;
}

.feature-list,
.clean-list {
  margin: 0;
  padding-left: 20px;
}

.feature-list li + li,
.clean-list li + li {
  margin-top: 7px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 34, 59, 0.14);
}

.button:hover {
  background: var(--navy-soft);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--navy);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--red);
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  color: var(--red);
}

.policy-stack {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.policy-section {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.policy-section h2 {
  font-size: 19px;
}

.policy-section h3 {
  margin: 22px 0 8px;
  color: var(--navy-soft);
  font-size: 16px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--surface-strong);
}

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

th {
  color: var(--navy) !important;
  font-weight: 750;
}

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

.notice {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.notice strong {
  color: var(--navy);
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.footer-links a {
  text-decoration: none;
}

.small {
  font-size: 13px !important;
}

strong {
  color: var(--navy);
}

@media (max-width: 700px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--content));
    padding-top: 20px;
  }

  .site-header {
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .site-nav {
    display: none;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 8px;
  }

  .hero-copy,
  .page-intro {
    font-size: 16px;
  }

  .integration-summary {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: auto;
  }

  .card,
  .policy-section {
    padding: 22px;
    border-radius: 20px;
  }

  th,
  td {
    padding: 14px 15px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111522;
    --surface: rgba(27, 33, 49, 0.92);
    --surface-strong: #1b2131;
    --text: #f4efe5;
    --muted: #aab1c2;
    --line: rgba(244, 239, 229, 0.10);
    --navy: #f4efe5;
    --navy-soft: #d9dfeb;
    --red: #ef8278;
    --shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  }

  body {
    background:
      radial-gradient(circle at top right, rgba(239, 130, 120, 0.09), transparent 34rem),
      var(--bg);
  }

  .button {
    background: #f4efe5;
    color: #17223b;
  }

  .button:hover {
    background: #fffaf0;
    color: #17223b;
  }

  .button.secondary {
    color: var(--text);
  }
}