/* =========================================================
   Xuxun — shared legal stylesheet (privacy + terms)
   Loaded only by privacy.html and terms-of-service.html
   ========================================================= */

.legal-page {
  background-color: #0E1110;
  color: #EDF2E9;
}

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

.legal-page {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-page a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.legal-header {
  background: linear-gradient(120deg, #84CC16 0%, #A3E635 45%, #3F6212 100%);
  border-bottom: 1px solid #223020;
}
.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 34px 24px;
}
.legal-brand {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 3px;
  color: #0E1110;
  margin-bottom: 14px;
}
.legal-brand:hover { text-decoration: underline; }
.legal-header h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0E1110;
  line-height: 1.1;
}

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

.legal-updated {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #A9B79D;
  padding: 28px 0 18px;
}

/* ---------- Table of contents ---------- */
.legal-page .toc {
  background-color: #131810;
  border: 1px solid #223020;
  border-left: 4px solid #84CC16;
  border-radius: 10px;
  padding: 26px 28px;
  margin-bottom: 40px;
}
.toc-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #84CC16;
  margin-bottom: 16px;
}
.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.toc li { counter-increment: none; }
.toc a {
  font-size: 15px;
  color: #A9B79D;
  line-height: 1.4;
}
.toc a:hover { color: #84CC16; }

/* ---------- Sections ---------- */
.legal-page .legal-content section {
  background-color: transparent !important;
  padding: 26px 0 8px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #A3E635;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1B2415;
}

.legal-content p {
  font-size: 16px;
  color: #C6D2BA;
  margin-bottom: 18px;
  max-width: 760px;
}

.legal-content a {
  color: #84CC16;
}

.legal-content a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #0C0F0D;
  border-top: 3px solid #84CC16;
  margin-top: 40px;
  padding: 40px 0 32px;
}
.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-footer p {
  font-size: 14px;
  color: #6b7a62;
  margin-bottom: 8px;
}
.legal-footer a { color: #84CC16; }
.legal-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-header h1 { font-size: 32px; }
  .toc ol { grid-template-columns: 1fr; }
}
