/* OWMap Legal Documents — Shared Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 16px; }
body {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
  background: #f7f5f0;
  color: #1a1a22;
  line-height: 1.9;
  min-height: 100vh;
}
a { color: #1a4fa0; text-decoration: underline; }
a:hover { color: #0e3070; }

/* ── Top bar ── */
.legal-topbar {
  background: #02060f;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,200,66,0.15);
}
.legal-topbar__inner {
  max-width: 900px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.legal-topbar__logo {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 700;
  color: #f4f1e8; letter-spacing: 0.06em;
  text-decoration: none;
}
.legal-topbar__logo span { color: #f5c842; }
.legal-topbar__back {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: #8a9bb0;
  text-decoration: none; margin-left: auto;
  transition: color 0.2s;
}
.legal-topbar__back:hover { color: #f5c842; text-decoration: none; }

/* ── Document shell ── */
.legal-doc {
  max-width: 860px;
  margin: 56px auto 80px;
  padding: 0 32px;
}

/* ── Header ── */
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 2px solid #d0ccc0;
}
.legal-header__badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #1a4fa0;
  background: rgba(26,79,160,0.08);
  border: 1px solid rgba(26,79,160,0.18);
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.legal-header__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700; color: #0d0d18;
  line-height: 1.2; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.legal-header__subtitle {
  font-size: 16px; color: #4d5a6e;
  margin-bottom: 20px; line-height: 1.7;
}
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: #6a7888;
}
.legal-meta__item { display: flex; align-items: center; gap: 6px; }
.legal-meta__label { font-weight: 600; color: #4d5a6e; }

/* ── Table of contents ── */
.legal-toc {
  background: #edeae3;
  border: 1px solid #d0ccc0;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.legal-toc__title {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #6a7888; margin-bottom: 16px;
}
.legal-toc__list { list-style: none; }
.legal-toc__list li {
  padding: 3px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.legal-toc__list li:last-child { border-bottom: none; }
.legal-toc__list a {
  color: #1a4fa0; text-decoration: none;
  display: flex; align-items: baseline; gap: 8px;
}
.legal-toc__list a:hover { color: #0e3070; text-decoration: underline; }
.legal-toc__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #9aabb8; flex-shrink: 0; width: 28px;
}

/* ── Content sections ── */
.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}
.legal-section__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: #1a4fa0; letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.legal-section__title {
  font-size: 20px; font-weight: 700;
  color: #0d0d18;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid #d0ccc0;
  line-height: 1.35;
}
.legal-section h3 {
  font-size: 16px; font-weight: 600;
  color: #1a2a40;
  margin: 24px 0 10px;
}
.legal-section p {
  font-size: 15px; color: #2a2e3a;
  margin-bottom: 14px; line-height: 1.9;
}
.legal-section ul, .legal-section ol {
  padding-left: 22px;
  margin: 12px 0 16px;
}
.legal-section li {
  font-size: 15px; color: #2a2e3a;
  margin-bottom: 8px; line-height: 1.85;
}
.legal-section ul li { list-style: disc; }
.legal-section ol li { list-style: decimal; }
.legal-section ul ul { margin: 6px 0; }
.legal-section ul ul li { list-style: circle; font-size: 14px; margin-bottom: 5px; }

/* ── Highlight boxes ── */
.legal-box {
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14px; line-height: 1.8;
}
.legal-box--key {
  background: rgba(26,79,160,0.06);
  border-left: 3px solid #1a4fa0;
  color: #1a2a40;
}
.legal-box--warn {
  background: rgba(180,60,40,0.05);
  border-left: 3px solid #c04020;
  color: #2a1810;
}
.legal-box--note {
  background: rgba(245,200,66,0.08);
  border-left: 3px solid #c8a020;
  color: #2a2010;
}
.legal-box--notice {
  background: #edeae3;
  border: 1px solid #c8c4b8;
  border-radius: 8px;
  color: #2a2e3a;
}
.legal-box strong { font-weight: 700; }

/* ── Contact / entity info ── */
.legal-entity {
  background: #edeae3;
  border: 1px solid #c8c4b8;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 28px 0;
}
.legal-entity__name {
  font-size: 16px; font-weight: 700; color: #0d0d18;
  margin-bottom: 12px;
}
.legal-entity__row {
  display: flex; gap: 12px;
  font-size: 14px; color: #2a2e3a;
  margin-bottom: 6px;
}
.legal-entity__label {
  font-family: 'Inter', sans-serif;
  font-weight: 600; color: #4d5a6e;
  min-width: 80px; flex-shrink: 0;
}

/* ── Definition list ── */
dl.legal-defs { margin: 16px 0; }
dt.legal-defs__term {
  font-weight: 700; color: #0d0d18;
  font-size: 15px; margin-top: 14px;
}
dd.legal-defs__def {
  font-size: 14px; color: #2a2e3a;
  margin-left: 16px; line-height: 1.85;
}

/* ── Table ── */
.legal-table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0; font-size: 14px;
}
.legal-table th {
  background: #d8d4cc;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2a2e3a;
  padding: 10px 14px; text-align: left;
  border-bottom: 2px solid #b8b4aa;
}
.legal-table td {
  padding: 11px 14px; color: #2a2e3a;
  border-bottom: 1px solid #d0ccc0;
  vertical-align: top; line-height: 1.7;
}
.legal-table tr:nth-child(even) td { background: rgba(0,0,0,0.025); }

/* ── Footer ── */
.legal-footer {
  background: #e8e4dc;
  border-top: 1px solid #c8c4b8;
  padding: 32px 0;
  margin-top: 80px;
}
.legal-footer__inner {
  max-width: 860px; margin: 0 auto;
  padding: 0 32px;
}
.legal-footer__links {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 16px;
}
.legal-footer__links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: #4d5a6e;
  text-decoration: none;
}
.legal-footer__links a:hover { color: #1a4fa0; text-decoration: underline; }
.legal-footer__copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: #8a9bb0;
}

/* ── Print / responsive ── */
@media (max-width: 640px) {
  .legal-doc { padding: 0 18px; }
  .legal-topbar__inner { padding: 0 18px; }
  .legal-toc { padding: 18px; }
  .legal-entity { padding: 18px; }
  .legal-table { font-size: 12px; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}
@media print {
  .legal-topbar { display: none; }
  .legal-footer { background: none; }
  body { background: white; color: black; }
  a { color: #00f; }
}
