:root {
  --orange: #ea4d0d;
  --orange-dark: #c8410b;
  --orange-soft: #fbe5d8;
  --ink: #15110a;
  --ink-2: #3a3328;
  --sub: #6b6354;
  --cream: #f7f4ec;
  --cream-2: #f1ece0;
  --paper: #fffefb;
  --line: #e2dac8;
  --line-strong: #d2c7ae;
  --green: #2e8b4e;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--orange) 40%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
}

.legal-nav,
.legal-shell,
.legal-footer-inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.legal-nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--orange);
}

.brand-accent {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--sub);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--orange-dark);
}

.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  padding-block: clamp(48px, 8vw, 92px) 100px;
}

.legal-aside {
  min-width: 0;
}

.aside-inner {
  position: sticky;
  top: 100px;
}

.document-label {
  margin: 0 0 18px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.toc {
  display: grid;
  gap: 4px;
}

.toc a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  background: var(--cream-2);
  color: var(--ink);
}

.legal-document {
  min-width: 0;
}

.legal-hero {
  padding-bottom: clamp(34px, 5vw, 54px);
  border-bottom: 2px solid var(--ink);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.legal-kicker::before {
  width: 26px;
  height: 2px;
  background: var(--orange);
  content: '';
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
}

.legal-summary {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 520;
}

.effective-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
}

.notice {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--orange) 24%, var(--line));
  border-radius: 13px;
  background: var(--orange-soft);
  color: #663018;
  font-size: 14px;
}

.legal-section {
  padding-top: clamp(42px, 7vw, 64px);
  scroll-margin-top: 92px;
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(23px, 3.2vw, 31px);
  font-weight: 820;
}

.legal-section h3 {
  margin: 30px 0 10px;
  font-size: 18px;
  font-weight: 760;
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.legal-section ul,
.legal-section ol {
  margin: 14px 0;
  padding-left: 1.35em;
  color: var(--ink-2);
}

.legal-section li + li {
  margin-top: 7px;
}

.table-scroll {
  width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

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

th {
  background: var(--cream-2);
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

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

.contact-band {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 18px;
  background: var(--ink);
  color: #f7f4ec;
}

.contact-band h2,
.contact-band h3,
.contact-band p {
  color: inherit;
}

.contact-band a {
  color: #ff9b70;
  font-weight: 750;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
}

.contact-item {
  min-width: 0;
  padding: 17px;
  background: var(--ink);
}

.contact-item span {
  display: block;
  color: #a9a092;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.contact-item strong,
.contact-item a {
  display: block;
  margin-top: 4px;
  color: #f7f4ec;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.support-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 13px;
  background: var(--orange);
  color: white;
  font-weight: 750;
  text-decoration: none;
}

.support-button.secondary {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 720;
  list-style-position: outside;
}

.faq details p {
  padding: 0 4px 18px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 26px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 700;
}

.legal-footer {
  border-top: 4px solid var(--orange);
  background: var(--ink);
  color: #cfc7b8;
}

.legal-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 34px;
  font-size: 13px;
}

.legal-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: #f7f4ec;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 760px) {
  .legal-nav,
  .legal-shell,
  .legal-footer-inner {
    width: min(100% - 32px, var(--maxw));
  }

  .legal-nav {
    min-height: 62px;
  }

  .nav-links a:first-child {
    display: none;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }

  .aside-inner {
    position: static;
  }

  .document-label {
    margin-bottom: 10px;
  }

  .toc {
    display: flex;
    gap: 8px;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .toc a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--paper);
    white-space: nowrap;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .legal-footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .nav-links a:nth-child(2) {
    display: none;
  }

  h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
