/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0f;
  color: #e0e0e8;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== Background Glows ========== */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: #7c5cff;
  top: -150px;
  right: -100px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: #3b82f6;
  bottom: 20%;
  left: -150px;
}

/* ========== Container ========== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 22px;
  color: #a78bfa;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #c4b5fd, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-name {
  font-size: 13px;
  color: #6b6b80;
  font-weight: 500;
}

/* ========== Hero ========== */
.hero {
  text-align: center;
  padding: 80px 0 48px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 15px;
  color: #8888a0;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 13px;
  color: #6b6b80;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  opacity: 0.6;
}

.meta-divider {
  color: #3a3a50;
}

/* ========== Table of Contents ========== */
.toc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #a0a0b8;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toc-header svg {
  opacity: 0.5;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #8888a0;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.toc-link:hover {
  background: rgba(124, 92, 255, 0.08);
  color: #c4b5fd;
}

.toc-link.active {
  background: rgba(124, 92, 255, 0.12);
  color: #c4b5fd;
}

.toc-num {
  font-size: 11px;
  font-weight: 700;
  color: #5b5b70;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  flex-shrink: 0;
}

.toc-link:hover .toc-num,
.toc-link.active .toc-num {
  background: rgba(124, 92, 255, 0.2);
  color: #a78bfa;
}

/* ========== Intro Card ========== */
.intro-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.06), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(124, 92, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  font-size: 14.5px;
  color: #a0a0b8;
  line-height: 1.8;
}

.intro-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.intro-card strong {
  color: #c4b5fd;
  font-weight: 600;
}

/* ========== Article Card ========== */
.article-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.article-number {
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
  padding: 6px 14px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 22px;
  font-weight: 700;
  color: #f0f0f8;
  line-height: 1.3;
}

.article-intro {
  font-size: 14.5px;
  color: #8888a0;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ========== Sub Section ========== */
.sub-section {
  margin-top: 28px;
}

.sub-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #d0d0e0;
  margin-bottom: 16px;
}

.sub-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.12);
  color: #a78bfa;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.sub-note {
  font-size: 13px;
  color: #6b6b80;
  margin-bottom: 12px;
  font-style: italic;
}

/* ========== Info Grid ========== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
}

.info-item-full {
  grid-column: 1 / -1;
}

.info-item-header {
  margin-bottom: 12px;
}

.info-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tag-green {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-yellow {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.info-list {
  list-style: none;
}

.info-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: #9090a8;
  line-height: 2;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5b5b70;
}

.info-list li strong {
  color: #c4b5fd;
  font-weight: 500;
}

/* ========== Styled List ========== */
.styled-list {
  list-style: none;
}

.styled-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14px;
  color: #9090a8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.styled-list li:last-child {
  border-bottom: none;
}

.styled-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #7c5cff;
  font-weight: 600;
}

/* ========== Purpose Grid ========== */
.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.purpose-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.3s ease;
}

.purpose-card:hover {
  border-color: rgba(124, 92, 255, 0.15);
  background: rgba(124, 92, 255, 0.03);
}

.purpose-card:last-child {
  grid-column: 1 / -1;
}

.purpose-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.purpose-title {
  font-size: 15px;
  font-weight: 600;
  color: #d0d0e0;
  margin-bottom: 10px;
}

.purpose-list {
  list-style: none;
}

.purpose-list li {
  font-size: 13.5px;
  color: #8888a0;
  padding: 3px 0 3px 14px;
  position: relative;
}

.purpose-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #5b5b70;
}

.purpose-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 8px;
  font-size: 12.5px;
  color: #d4b862;
  line-height: 1.6;
}

.purpose-note strong {
  color: #facc15;
}

/* ========== Retention Table ========== */
.retention-table {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}

.retention-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  padding: 14px 20px;
  font-size: 13.5px;
  color: #9090a8;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.retention-row:last-child {
  border-bottom: none;
}

.retention-header {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: #a0a0b8;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.retention-header + .retention-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.period-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(124, 92, 255, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.period-5y {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

.period-3y {
  background: rgba(251, 146, 60, 0.08);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.2);
}

.period-3m {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.2);
}

/* ========== Highlight Box ========== */
.highlight-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #9090a8;
  margin-bottom: 16px;
}

.highlight-blue {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.highlight-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #60a5fa;
}

.highlight-box strong {
  color: #93c5fd;
}

/* ========== Exception Box ========== */
.exception-box {
  background: rgba(251, 146, 60, 0.04);
  border: 1px solid rgba(251, 146, 60, 0.12);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 13.5px;
  color: #9090a8;
  line-height: 1.8;
}

.exception-title {
  font-size: 14px;
  font-weight: 600;
  color: #fb923c;
  margin-bottom: 6px;
}

/* ========== Delegation Grid ========== */
.delegation-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delegation-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 18px 22px;
  transition: all 0.3s ease;
}

.delegation-card:hover {
  border-color: rgba(124, 92, 255, 0.15);
  transform: translateX(4px);
}

.delegation-logo {
  font-size: 28px;
  flex-shrink: 0;
}

.delegation-company {
  font-size: 15px;
  font-weight: 600;
  color: #d0d0e0;
}

.delegation-work {
  font-size: 13px;
  color: #7070888;
  margin-top: 2px;
}

/* ========== Process Steps ========== */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c5cff, #4f46e5);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  flex-shrink: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #d0d0e0;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: #8888a0;
  line-height: 1.7;
}

/* ========== Rights List ========== */
.rights-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rights-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 22px;
}

.rights-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.rights-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #d0d0e0;
  margin-bottom: 6px;
}

.rights-content p {
  font-size: 14px;
  color: #8888a0;
  line-height: 1.7;
}

.rights-how {
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(124, 92, 255, 0.04);
  border: 1px solid rgba(124, 92, 255, 0.1);
  border-radius: 10px;
}

.rights-how-title {
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rights-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rights-step {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 12.5px;
  color: #a0a0b8;
  font-weight: 500;
}

.rights-steps svg {
  color: #5b5b70;
  flex-shrink: 0;
}

.rights-alt {
  margin-top: 10px;
  font-size: 12.5px;
  color: #6b6b80;
}

.inline-link {
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
}

.inline-link:hover {
  text-decoration: underline;
}

/* ========== Contact Card ========== */
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.06), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(124, 92, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
}

.contact-avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c5cff, #4f46e5);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  border-radius: 14px;
  flex-shrink: 0;
}

.contact-name {
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f8;
}

.contact-role {
  font-size: 13px;
  color: #a78bfa;
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 10px;
}

.contact-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #8888a0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item:hover {
  color: #c4b5fd;
}

.contact-item svg {
  opacity: 0.5;
}

/* ========== Footer ========== */
.footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #6b6b80;
  margin-bottom: 14px;
}

.footer-logo .logo-icon {
  color: #5b5b70;
  font-size: 16px;
}

.footer-text {
  font-size: 13px;
  color: #4a4a60;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 12px;
}

.footer-copy {
  font-size: 12px;
  color: #3a3a50;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .meta-divider {
    display: none;
  }

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

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

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

  .purpose-card:last-child {
    grid-column: auto;
  }

  .article-card {
    padding: 24px 20px;
  }

  .article-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article-title {
    font-size: 18px;
  }

  .retention-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 16px;
  }

  .retention-header {
    display: none;
  }

  .period-badge {
    justify-self: start;
  }

  .rights-steps {
    flex-direction: column;
    align-items: flex-start;
  }

  .rights-steps svg {
    display: none;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-details {
    justify-content: center;
  }
}
