@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --ink: #08090b;
  --paper: #fbfbf8;
  --muted: #717680;
  --line: rgba(8, 9, 11, 0.11);
  --blue: #1267ff;
  --mint: #16b887;
  --amber: #ffbc42;
  --radius: 8px;
  --headline: clamp(38px, 5.8vw, 64px);
  --subhead: clamp(21px, 2.2vw, 27px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.64;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 9, 11, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 18%, rgba(18, 103, 255, 0.13), transparent 28%),
    radial-gradient(circle at 86% 28%, rgba(22, 184, 135, 0.12), transparent 30%);
  filter: blur(18px);
}

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

.legal-shell {
  width: min(1060px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 34px 0 90px;
}

.back {
  position: fixed;
  top: 18px;
  left: max(18px, calc((100vw - 1060px) / 2));
  z-index: 2;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(8, 9, 11, 0.08);
  border-radius: var(--radius);
  background: rgba(251, 251, 248, 0.76);
  backdrop-filter: blur(20px);
  font-size: 14px;
  font-weight: 740;
  box-shadow: 0 18px 60px rgba(8, 9, 11, 0.08);
}

.legal-hero {
  min-height: 42svh;
  display: grid;
  align-content: end;
  padding: 120px 0 52px;
}

.label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

h1 {
  max-width: 700px;
  margin: 0 0 18px;
  font-size: var(--headline);
  line-height: 1.08;
  font-weight: 720;
}

h2 {
  margin: 48px 0 10px;
  font-size: var(--subhead);
  line-height: 1.18;
  font-weight: 680;
}

p,
li {
  color: #535b67;
  font-size: 16px;
}

.legal-hero p {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 17px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.legal-grid a {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.04;
  font-weight: 720;
  box-shadow: 0 24px 82px rgba(8, 9, 11, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.legal-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 100px rgba(8, 9, 11, 0.11);
}

.legal-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.doc {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 90px rgba(8, 9, 11, 0.07);
}

.doc ul {
  padding-left: 20px;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-header p {
  margin: 0;
}

@media (max-width: 760px) {
  :root {
    --headline: clamp(34px, 11vw, 48px);
    --subhead: 22px;
  }

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

  .doc-header {
    flex-direction: column;
  }
}
