:root {
  --bg-main: #edf3ff;
  --bg-secondary: #f8fbff;
  --bg-deep: #dfe9ff;

  --panel: rgba(255, 255, 255, 0.42);
  --panel-strong: rgba(255, 255, 255, 0.56);
  --border: rgba(165, 187, 227, 0.26);
  --border-strong: rgba(144, 173, 228, 0.42);

  --text-main: #233044;
  --text-soft: #44536a;
  --text-dim: #6f809b;

  --primary: #fefeff;
  --primary-strong: #dbe8ff;
  --primary-soft: #ffffff;
  --accent: #bfd5ff;
  --accent-strong: #9dbdf2;

  --glow: rgba(218, 233, 255, 0.75);
  --glow-strong: rgba(196, 219, 255, 0.95);

  --shadow-soft: 0 14px 34px rgba(142, 166, 210, 0.14);
  --shadow-strong: 0 24px 54px rgba(127, 155, 201, 0.18);

  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.32s ease;
  --max-width: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.92), transparent 24%),
    radial-gradient(circle at 80% 14%, rgba(227,239,255,0.85), transparent 20%),
    radial-gradient(circle at 60% 82%, rgba(214,229,255,0.58), transparent 24%),
    linear-gradient(180deg, #f9fcff 0%, #eef4ff 36%, #e8f0ff 68%, #f8fbff 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  width: 100%;
}

section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.legal-page {
  position: relative;
}

/* background */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.nebula {
  position: absolute;
  border-radius: 999px;
  filter: blur(88px);
  opacity: 0.8;
  animation: drift 16s ease-in-out infinite;
}

.nebula-1 {
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.9);
  top: -4%;
  left: -6%;
}

.nebula-2 {
  width: 480px;
  height: 480px;
  background: rgba(212, 228, 255, 0.7);
  right: -8%;
  top: 20%;
  animation-delay: -5s;
}

.nebula-3 {
  width: 360px;
  height: 360px;
  background: rgba(232, 241, 255, 0.78);
  left: 30%;
  bottom: -10%;
  animation-delay: -8s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 191, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 191, 231, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.42), transparent 80%);
  opacity: 0.22;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,0.95) 1.2px, transparent 1.5px),
    radial-gradient(circle at 28% 72%, rgba(230,241,255,0.9) 1.1px, transparent 1.4px),
    radial-gradient(circle at 73% 24%, rgba(255,255,255,0.95) 1.25px, transparent 1.55px),
    radial-gradient(circle at 82% 62%, rgba(220,235,255,0.88) 1px, transparent 1.35px),
    radial-gradient(circle at 54% 46%, rgba(255,255,255,0.85) 1px, transparent 1.3px);
  opacity: 0.82;
}

.dust-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3), transparent 18%),
    radial-gradient(circle at 68% 34%, rgba(239,246,255,0.28), transparent 16%),
    radial-gradient(circle at 46% 76%, rgba(230,239,255,0.24), transparent 18%);
  opacity: 0.75;
}

.section-kicker,
.hero-kicker {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(182, 201, 233, 0.34);
  background: rgba(255,255,255,0.48);
  color: #6682ab;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(235, 243, 255, 0.7);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  color: #2a3c55;
  background: linear-gradient(135deg, #ffffff, #e8f1ff);
  border: 1px solid rgba(176, 199, 236, 0.34);
  box-shadow: 0 0 26px rgba(229, 240, 255, 0.9);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(212, 228, 255, 0.95);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(180, 200, 232, 0.3);
  backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(162, 188, 228, 0.48);
  background: rgba(255,255,255,0.52);
}

/* hero */
.legal-hero,
.legal-summary,
.legal-guide-wrap,
.legal-reference-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.legal-hero {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/static/img/background_static/bg1.png") center center / cover no-repeat;
  opacity: 0.78;
  filter: brightness(1.08) contrast(1.05) saturate(1.02);
  transform: scale(1.04);
  pointer-events: none;
}

.legal-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(248, 251, 255, 0.84) 0%,
      rgba(244, 249, 255, 0.66) 42%,
      rgba(238, 245, 255, 0.52) 68%,
      rgba(247, 251, 255, 0.80) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,0.10) 0%,
      rgba(236,244,255,0.10) 54%,
      rgba(230,240,255,0.24) 100%
    );
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.legal-hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #213046;
  text-shadow: 0 0 28px rgba(255,255,255,0.72);
}

.hero-desc {
  max-width: 620px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 30px;
}

.hero-note {
  font-weight: 700;
  color: #6f87ad;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-meta {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta li {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(178, 198, 230, 0.28);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.meta-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.meta-value {
  font-weight: 700;
  color: var(--text-main);
}

.legal-hero-visual {
  display: flex;
  justify-content: center;
}

.legal-intro-card {
  width: min(100%, 460px);
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.56),
    rgba(231,240,255,0.34)
  );
  border: 1px solid rgba(178, 199, 231, 0.32);
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 40px rgba(150, 174, 214, 0.12),
    inset 0 0 0.5px rgba(255,255,255,0.9);
}

.legal-badge,
.showcase-badge,
.update-type {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(181, 201, 232, 0.32);
  color: #6580a6;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.legal-intro-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.18;
  margin-bottom: 16px;
  color: #22344b;
}

.legal-intro-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-soft);
  line-height: 1.85;
  padding-left: 18px;
  margin-bottom: 24px;
}

.legal-intro-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mini-link,
.card-link,
.footer-links a {
  color: #5f7da9;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.mini-link:hover,
.card-link:hover,
.footer-links a:hover {
  color: #3f618f;
}

/* summary */
.legal-summary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 110px 0 140px;
}

.legal-summary::before,
.legal-grid-section::before,
.legal-reference::before{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 2px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(180, 200, 230, 0) 0%,
        rgba(180, 200, 230, 0.25) 10%,
        rgba(160, 201, 255, 0.92) 50%,
        rgba(180, 200, 230, 0.25) 90%,
        rgba(180, 200, 230, 0) 100%
  );
  box-shadow:
    0 0 12px rgba(221, 236, 255, 0.8),
    0 0 24px rgba(206, 225, 255, 0.4);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 2px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(180, 200, 230, 0) 0%,
    rgba(180, 200, 230, 0.25) 10%,
    rgba(232, 242, 255, 0.92) 50%,
    rgba(180, 200, 230, 0.25) 90%,
    rgba(180, 200, 230, 0) 100%
  );
  box-shadow:
    0 0 12px rgba(221, 236, 255, 0.8),
    0 0 24px rgba(206, 225, 255, 0.4);
}

.summary-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/static/img/background_static/bg4.png") center center / cover no-repeat;
  opacity: 0.5;
  transform: scale(1.03);
}

.summary-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(248,252,255,0.82) 0%,
      rgba(243,249,255,0.62) 40%,
      rgba(239,246,255,0.48) 65%,
      rgba(248,252,255,0.80) 100%
    );
}

.legal-section-head {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 1280px);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.legal-highlight-card {
  position: relative;
  z-index: 6;
  width: min(calc(100% - 40px), 1280px);
  margin: 48px auto 0;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.56),
    rgba(231,240,255,0.34)
  );
  border: 1px solid rgba(178, 199, 231, 0.32);
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 40px rgba(150, 174, 214, 0.12),
    inset 0 0 0.5px rgba(255,255,255,0.9);
}

.legal-highlight-copy h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: #22344b;
}

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

.legal-pill-card,
.legal-card,
.timeline-content {
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(181, 201, 232, 0.24);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.legal-pill-card {
  padding: 22px 22px 20px;
  border-radius: 22px;
}

.legal-pill-card h4 {
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: #24364b;
}

.legal-pill-card p,
.legal-list,
.timeline-content p,
.footer-line {
  color: var(--text-soft);
  line-height: 1.8;
}

/* guide */
.legal-guide-wrap,
.legal-reference-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}

.legal-guide-bg,
.legal-reference-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/static/img/background_static/bg4.png") center center / cover no-repeat;
  opacity: 0.74;
  transform: scale(1.00);
}

.legal-guide-overlay,
.legal-reference-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(248, 251, 255, 0.78) 0%,
      rgba(242, 248, 255, 0.62) 40%,
      rgba(236, 244, 255, 0.82) 100%
    );
}

.legal-guide-wrap .legal-grid-section,
.legal-reference-wrap .legal-reference {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 1280px);
  margin-left: auto;
  margin-right: auto;
}

.legal-grid-section {
  padding: 100px 0 90px;
}

.legal-grid {
  margin-top: 48px;
  gap: 22px;
}

.legal-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.legal-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -50% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(191, 213, 255, 0.22), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.legal-card h3 {
  font-size: 1.5rem;
  margin: 14px 0 16px;
  line-height: 1.35;
  color: #24364b;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 18px;
}

.legal-links {
  margin-top: 20px;
}

/* reference */
.legal-reference {
  padding: 100px 0 100px;
}

.legal-reference .legal-section-head {
  width: 100%;
  margin-bottom: 18px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(170, 192, 227, 0.46), rgba(170, 192, 227, 0.06));
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 18px;
}

.timeline-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-top: 8px;
  background: linear-gradient(135deg, #ffffff, #cfe0ff);
  box-shadow: 0 0 18px rgba(218, 232, 255, 0.95);
  flex-shrink: 0;
}

.timeline-content {
  width: 100%;
  padding: 22px 24px;
  border-radius: 22px;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 10px;
  color: #6481ae;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.timeline-content h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  color: #24364b;
}

/* footer */
.footer {
  padding-bottom: 25px;
  position: relative;
}

.footer-inner {
  width: min(calc(100% - 40px), 1280px);
  margin: 0 auto;
  padding: 34px 26px;
  border-radius: 28px;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(181, 201, 231, 0.28);
  backdrop-filter: blur(12px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating {
  animation: floating 5.6s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -18px, 0) scale(1.06);
  }
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .legal-hero-inner,
  .legal-pill-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding-top: 54px;
  }

  .legal-hero-visual {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  section,
  .legal-hero-inner,
  .legal-section-head,
  .legal-highlight-card,
  .legal-guide-wrap .legal-grid-section,
  .legal-reference-wrap .legal-reference,
  .footer-inner {
    width: min(calc(100% - 24px), 1280px);
  }

  .legal-hero-copy h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero-meta {
    flex-direction: column;
  }

  .legal-summary,
  .legal-grid-section,
  .legal-reference {
    padding-top: 80px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero-bg,
  .summary-bg,
  .legal-guide-bg,
  .legal-reference-bg {
    background-position: center top;
    opacity: 0.14;
  }

  .legal-hero-overlay,
  .summary-overlay,
  .legal-guide-overlay,
  .legal-reference-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(248, 251, 255, 0.88) 0%,
        rgba(242, 248, 255, 0.72) 42%,
        rgba(236, 244, 255, 0.84) 100%
      );
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .legal-highlight-card,
  .legal-card,
  .timeline-content {
    padding: 22px 18px;
  }

  .legal-intro-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .legal-highlight-card {
    border-radius: 24px;
  }

  .legal-intro-card h2 {
    font-size: 2rem;
  }

  .legal-card h3 {
    font-size: 1.3rem;
  }

  .section-head h2 {
    font-size: 1.9rem;
  }

  .legal-hero-bg {
    opacity: 0.12;
  }
}

.legal-guide-bg{
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("/static/img/background_static/bg5.png") center center / cover no-repeat;
    opacity: 0.78;
    filter: brightness(1.08) contrast(1.05) saturate(1.02);
    transform: scale(1.04);
    pointer-events: none;
}