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

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f5f7fa;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f5f7fa;
  color: #202428;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.32);
  outline-offset: 3px;
}

.legal-page-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #e3e7ec;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.legal-page-header-inner {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 16px 0;
}

.legal-page-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.legal-page-language-nav {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.legal-page-language-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #d9dee5;
  border-radius: 999px;
  background: #fff;
  color: #5a6470;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-page-language-nav a[aria-current="page"] {
  border-color: #202428;
  background: #202428;
  color: #fff;
}

.legal-page-shell {
  width: min(100% - 32px, 840px);
  margin: 34px auto;
}

.legal-page-document {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid #e1e5ea;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 36, 44, 0.08);
}

.legal-page-kicker {
  margin: 0 0 8px;
  color: #52606d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-page-document h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.legal-page-updated {
  margin: 10px 0 0;
  color: #66717d;
  font-size: 0.9rem;
  font-weight: 650;
}

.legal-page-status,
.legal-page-notice {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef4ff;
  color: #194f97;
  font-weight: 700;
}

.legal-page-error {
  background: #fff1f1;
  color: #9d2a2a;
}

.legal-page-content {
  margin-top: 30px;
}

.legal-page-section + .legal-page-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #e6e9ed;
}

.legal-page-section h2 {
  margin: 0 0 13px;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.legal-page-section p {
  margin: 10px 0;
}

.legal-page-section ol,
.legal-page-section ul {
  margin: 10px 0 0;
  padding-inline-start: 1.4em;
}

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

.legal-page-table-wrap {
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid #dfe4ea;
  border-radius: 14px;
}

.legal-page-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
}

.legal-page-table th,
.legal-page-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #e6e9ed;
  text-align: start;
  vertical-align: top;
}

.legal-page-table th {
  background: #f3f6f9;
  font-size: 0.84rem;
}

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

.legal-page-footer {
  width: min(100% - 32px, 840px);
  margin: 0 auto;
  padding: 0 0 max(28px, env(safe-area-inset-bottom));
  color: #66717d;
  font-size: 0.85rem;
}

.legal-page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.legal-page-footer a[aria-current="page"] {
  color: #202428;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .legal-page-header-inner,
  .legal-page-shell,
  .legal-page-footer {
    width: min(100% - 24px, 840px);
  }

  .legal-page-shell {
    margin: 20px auto 26px;
  }

  .legal-page-document {
    padding: 24px 20px 30px;
    border-radius: 18px;
  }
}
