:root {
  color-scheme: light;
  --ink: #24143f;
  --muted: #685d79;
  --purple: #5b2cc9;
  --yellow: #f4c64e;
  --line: #e8e1f3;
  --surface: #faf8ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

a { color: var(--purple); }

.legal-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
}

.legal-main {
  margin-top: 42px;
  margin-bottom: 60px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(45, 20, 80, 0.08);
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.2;
}

.legal-effective {
  margin: 12px 0 34px;
  color: var(--muted);
}

h2 {
  margin: 38px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
}

p, li { color: #40374e; }
ul { padding-left: 22px; }

.legal-notice {
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
  background: #fff9df;
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.legal-footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer-inner {
    width: min(100% - 24px, 920px);
  }

  .legal-header-inner,
  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

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