:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --bg-tint: #fff0ee;
  --ink: #1c1c2e;
  --muted: #666666;
  --line: #eeeeee;
  --primary: #e8390e;
  --primary-dark: #c02e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 4%, rgba(232, 57, 14, 0.13), transparent 28%),
    linear-gradient(180deg, #fff8f6 0%, #ffffff 34%, #f8f8f8 100%);
  color: var(--ink);
  font-family: Arial, "Noto Sans KR", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(20px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(28, 28, 46, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.legal-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.legal-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.legal-header nav a {
  min-height: 40px;
  padding: 11px 14px;
  border-radius: 8px;
}

.legal-header nav a:hover {
  background: var(--bg-tint);
  color: var(--primary);
}

.legal-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(42px, 8vw, 86px) 20px 84px;
}

.legal-hero {
  margin-bottom: 24px;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(232, 57, 14, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(28, 28, 46, 0.1);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
}

.legal-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.pdf-link:hover {
  background: var(--primary-dark);
}

.legal-content {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(28, 28, 46, 0.06);
}

.legal-content h2 {
  margin: 34px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  line-height: 1.4;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin: 24px 0 10px;
  color: #262638;
  font-size: 18px;
  line-height: 1.45;
}

.legal-content p {
  margin: 0 0 12px;
  color: #333333;
  font-size: 15px;
  line-height: 1.88;
}

.table-wrap {
  width: 100%;
  margin: 18px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.legal-content table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #333333;
  font-size: 14px;
  line-height: 1.62;
}

.legal-content th,
.legal-content td {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-content th:last-child,
.legal-content td:last-child {
  border-right: 0;
}

.legal-content tr:last-child td {
  border-bottom: 0;
}

.legal-content th {
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 900;
}

.legal-content td {
  word-break: keep-all;
}

.legal-content .clause,
.legal-content .subclause {
  padding-left: 14px;
  border-left: 3px solid rgba(232, 57, 14, 0.18);
}

.legal-content .effective-date {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--bg-tint);
  color: var(--primary);
  font-weight: 900;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 18px;
  color: #333333;
  font-size: 15px;
  line-height: 1.78;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.88em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 680px) {
  .legal-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header nav {
    justify-content: flex-start;
  }

  .legal-shell {
    padding-top: 34px;
  }

  .legal-content {
    padding: 24px;
  }
}
