:root {
  --bg: #FFF5EE;
  --primary: #7C5CFC;
  --primary-dark: #6A4CE0;
  --text: #2E2A26;
  --text-muted: #6B6560;
  --card-bg: #FFFFFF;
  --border: #EFE6DC;
  --notice-bg: #FFF1E0;
  --notice-border: #F0B95C;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--primary);
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(124, 92, 252, 0.25);
}

.site-header .brand {
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.site-header .brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

main.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.doc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

h1 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin: 0 0 8px;
  line-height: 1.4;
}

h2 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

p {
  margin: 0 0 14px;
}

.effective-date {
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 18px;
}

ul, ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

li > ul, li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

blockquote.notice {
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #5A4A2A;
}

blockquote.note {
  border-left: 3px solid var(--border);
  margin: 0 0 16px;
  padding: 4px 0 4px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

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

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

thead th {
  background: #F4EEFF;
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

footer.doc-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* index / landing page */
.landing {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  text-align: center;
}

.landing h1 {
  font-size: 2rem;
  text-align: center;
}

.landing p.lead {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.doc-list a {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.doc-list a:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.doc-list .doc-title {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.doc-list .doc-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .doc-card {
    padding: 24px 18px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.15rem;
    margin: 32px 0 12px;
  }

  main.doc {
    padding: 20px 14px 60px;
  }

  .landing {
    padding: 40px 16px 60px;
  }

  .landing h1 {
    font-size: 1.6rem;
  }
}
