/* ==========================================================================
   Jilanuo — shared legal stylesheet (privacy.html, terms-of-service.html)
   Loaded standalone — never depends on style.css
   ========================================================================== */

:root {
  --bg: #0F1014;
  --surface: #1A1C23;
  --surface-2: #21242D;
  --line: #2B2E38;
  --line-soft: #252833;
  --text: #E2E8F0;
  --text-strong: #FFFFFF;
  --muted: #A8AEB9;
  --accent: #E3A94F;
  --accent-strong: #C88C2E;
  --accent-ink: #1A1408;
  --sage: #9DBFA9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Scope isolation — legal page body background is defined here itself */
.legal-page {
  background-color: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   Legal header (div/header element, solid + gradient background)
   -------------------------------------------------------------------------- */

.legal-header {
  background: linear-gradient(135deg, #1C1E27 0%, #14151B 55%, #0F1014 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 24px 56px;
  text-align: center;
}

.legal-header .legal-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header-kicker {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.legal-header h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-strong);
  margin-bottom: 18px;
}

.legal-header .legal-header-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.legal-header .legal-effective {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Content wrapper
   -------------------------------------------------------------------------- */

.legal-content {
  padding: 60px 0 80px;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scope isolation rule — legal body sections must not carry opaque backgrounds */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */

.legal-toc {
  margin-bottom: 48px;
  padding: 26px 28px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.legal-toc h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  display: grid;
  gap: 9px;
}

.legal-toc a {
  color: var(--text);
  font-size: 15px;
  display: inline-block;
  padding: 2px 0;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-toc .toc-num {
  color: var(--muted);
  font-weight: 700;
  margin-right: 10px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Legal sections and headings
   -------------------------------------------------------------------------- */

.legal-content section {
  margin-bottom: 46px;
}

.legal-content h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-strong);
  margin-bottom: 14px;
  padding-top: 8px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 24px 0 10px;
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: none;
  margin: 0 0 16px;
  padding-left: 4px;
}

.legal-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--muted);
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
}

.legal-content strong {
  color: var(--text-strong);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Legal footer
   -------------------------------------------------------------------------- */

.legal-footer {
  background-color: #0C0D11;
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.legal-footer a {
  font-weight: 600;
}

.legal-footer .legal-footer-copy {
  color: var(--muted);
  font-size: 14px;
}

.legal-footer .legal-footer-links {
  display: flex;
  gap: 22px;
}

.legal-footer .legal-footer-links a {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .legal-header {
    padding: 56px 16px 44px;
  }

  .legal-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
