:root {
  color-scheme: light;
  font-family:
    Pretendard,
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202124;
  background: #f5f7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(114, 115, 249, 0.1), transparent 32rem),
    #f5f7fa;
  line-height: 1.7;
}

a {
  color: inherit;
}

.legal-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #5557d9;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.legal-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.legal-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(28, 35, 52, 0.07);
}

.legal-header {
  padding: 42px 48px 36px;
  border-bottom: 1px solid #eceef2;
}

.legal-kicker {
  margin: 0 0 10px;
  color: #686acb;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.legal-summary {
  max-width: 660px;
  margin: 16px 0 0;
  color: #616775;
  font-size: 16px;
  word-break: keep-all;
}

.legal-content {
  padding: 40px 48px 52px;
}

.legal-content h2,
.legal-content h3,
.policy-content h1,
.policy-content h2,
.policy-content h3 {
  margin: 36px 0 14px;
  color: #202124;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.legal-content h2:first-child,
.policy-content > :first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li,
.policy-content p,
.policy-content li,
.policy-content td,
.policy-content th {
  color: #4e5563;
  font-size: 15px;
  word-break: keep-all;
}

.legal-content ul,
.legal-content ol,
.policy-content ul,
.policy-content ol {
  padding-left: 22px;
}

.policy-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.policy-content th,
.policy-content td {
  padding: 12px;
  border: 1px solid #dfe3e8;
  text-align: left;
  vertical-align: top;
}

.legal-panel {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid #e5e7ff;
  border-radius: 14px;
  background: #f7f7ff;
}

.legal-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #34358f;
}

.legal-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 24px;
  border-radius: 12px;
  background: #6466e9;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.legal-button:hover {
  background: #5153d4;
}

.legal-notice {
  color: #6b7280;
  font-size: 13px;
}

.legal-status {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-align: center;
}

.legal-error {
  padding: 24px;
  border: 1px solid #f1d2d2;
  border-radius: 12px;
  background: #fff8f8;
  color: #8b3030;
}

.legal-footer {
  padding: 24px 4px 0;
  color: #7b808c;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .legal-shell {
    width: min(100% - 20px, 860px);
    padding-top: 18px;
  }

  .legal-card {
    border-radius: 16px;
  }

  .legal-header,
  .legal-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .legal-header {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .legal-content {
    padding-top: 30px;
    padding-bottom: 38px;
  }

  .policy-content table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }
}
