/* ============================================================
   Xilean — legal.css
   Shared styles for privacy.html and terms-of-service.html
   ============================================================ */

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

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

/* ---------- Header (must be div/header, never section) ---------- */
.legal-header {
  background-color: #1E3A8A;
  padding: 64px 24px 48px;
}

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

.legal-home-link {
  display: inline-block;
  color: #C9D6FF;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.legal-home-link:hover { color: #FFFFFF; text-decoration: underline; }

.legal-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.legal-updated {
  color: #C9D6FF;
  font-size: 14px;
}

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

/* Scope isolation: never let homepage section styles leak onto legal text */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  padding: 44px 0;
  border-bottom: 1px solid #E3E1DA;
}

.legal-content section:last-of-type {
  border-bottom: none;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  color: #1E3A8A;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1B2330;
  margin: 20px 0 10px;
}

.legal-content p {
  color: #3D4656;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 22px;
  color: #3D4656;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #1D4ED8;
  text-decoration: none;
}

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

/* ---------- Table of contents ---------- */
.toc {
  margin: 44px 0 8px;
  padding: 24px;
  background-color: #EEF0F7;
  border: 1px solid #DFE3EF;
  border-radius: 12px;
}

.toc-title {
  font-weight: 800;
  color: #1B2330;
  margin-bottom: 12px;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.toc ol {
  margin-left: 20px;
  columns: 1;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: #1E3A8A;
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #141B2E;
  color: #C9D1E3;
  padding: 40px 24px;
  text-align: center;
}

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

.legal-footer p {
  margin-bottom: 10px;
  font-size: 14px;
}

.legal-footer a {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

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

@media (max-width: 600px) {
  .legal-header { padding: 40px 16px 36px; }
  .legal-content section { padding: 32px 0; }
  .legal-content .container { padding: 0 20px; }
  .legal-header .container { padding: 0 20px; }
}
