:root {
  --ink: #161616;
  --muted: #626262;
  --line: #dedede;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --purple: #6b75e0;
  --purple-dark: #4f59c8;
  --yellow: #f9c440;
  --green: #2cc07a;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}
a { color: var(--purple-dark); text-underline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  min-width: 112px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}
.language-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.legal-main { width: min(100% - 40px, 900px); margin: 0 auto; padding: 58px 0 90px; }
.legal-kicker {
  margin: 0 0 10px;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.12; letter-spacing: 0; }
.lede { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.accent-line { width: 72px; height: 5px; margin: 30px 0 0; background: linear-gradient(90deg, var(--yellow) 0 33%, var(--green) 33% 66%, var(--purple) 66%); }

.legal-section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.legal-section:first-of-type { margin-top: 34px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.35; letter-spacing: 0; }
h3 { margin: 24px 0 8px; font-size: 17px; letter-spacing: 0; }
p { margin: 10px 0; }
ul, ol { margin: 12px 0; padding-left: 23px; }
li + li { margin-top: 8px; }
.muted { color: var(--muted); }
.legal-table { width: 100%; margin-top: 18px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { width: 190px; color: var(--muted); font-size: 14px; font-weight: 700; }

.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}
.primary-action { color: #fff; background: var(--purple); }
.primary-action:hover { background: var(--purple-dark); }
.secondary-action { color: var(--ink); border: 1px solid var(--line); background: var(--paper); }
.secondary-action:hover { background: var(--soft); }

.legal-footer { padding: 30px 24px; color: rgba(255, 255, 255, 0.68); background: #111; }
.legal-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; width: min(100%, 900px); margin: 0 auto; }
.legal-footer strong { display: block; color: #fff; }
.legal-footer p { margin: 5px 0 0; font-size: 13px; }
.legal-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.legal-footer a { color: rgba(255, 255, 255, 0.82); }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .legal-header { padding: 9px 16px; }
  .legal-main { width: min(100% - 32px, 900px); padding-top: 42px; }
  .lede { font-size: 16px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { padding-bottom: 3px; }
  .legal-table td { padding-top: 0; border-top: 0; }
  .legal-table tr { padding: 8px 0; border-top: 1px solid var(--line); }
  .action-row { display: grid; grid-template-columns: 1fr; }
  .legal-footer-inner { flex-direction: column; }
  .legal-footer-links { justify-content: flex-start; }
}
