/* Legal document pages (terms / privacy) */
* {
  box-sizing: border-box;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  color: #333;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ===== Top bar ===== */
.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ececec;
  margin-bottom: 2rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: #1a1a1a;
  text-decoration: none;
}

.legal-brand img {
  display: block;
  border-radius: 0.5rem;
}

.legal-back {
  color: #2f80ed;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-back:hover {
  text-decoration: underline;
}

/* ===== Document typography ===== */
main h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0.5rem 0 1.5rem;
}

main h2,
main h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 2.5rem 0 0.75rem;
}

main p {
  margin: 0.7rem 0;
}

main ol,
main ul {
  margin: 0.7rem 0;
  padding-left: 1.5rem;
}

main li {
  margin: 0.4rem 0;
}

main li > ol,
main li > ul {
  margin: 0.3rem 0;
}

/* ===== Tables (wide content scrolls in its own container) ===== */
main table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 1rem 0;
}

main th,
main td {
  border: 1px solid #e0e0e0;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  min-width: 7rem;
}

main th {
  background: #f7f7f7;
  font-weight: 700;
  white-space: nowrap;
}

main img {
  max-width: 100%;
  height: auto;
}

/* ===== Footer ===== */
.legal-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ececec;
  font-size: 0.8rem;
  color: #888;
}
