/* ============================================================
   Mozitou — Shared Legal Stylesheet (privacy.html, terms-of-service.html)
   Legal pages load ONLY this file. Dark olive-black theme.
   ============================================================ */

.legal-page {
  margin: 0;
  background-color: #141510;
  color: #F2EFE8;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #C4C79B;
}

/* ---------------- Header ---------------- */

.legal-header {
  background-color: #1E2018;
  border-bottom: 1px solid #5A6134;
}

.legal-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.legal-brand {
  color: #F2EFE8;
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 20px;
  text-decoration: none;
  line-height: 1.1;
}

.legal-brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #C4C79B;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 3px;
}

.legal-back {
  color: #C4C79B;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

/* ---------------- Content shell ---------------- */

.legal-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content {
  padding: 56px 0 72px;
}

.legal-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.15;
  color: #F2EFE8;
  margin: 0 0 8px;
}

.legal-updated {
  color: #C4C79B;
  font-size: 14px;
  margin: 0 0 34px;
}

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

.toc {
  background-color: #1E2018;
  border: 1px solid #5A6134;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc strong {
  display: block;
  color: #C4C79B;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: #F2EFE8;
  text-decoration: none;
  padding: 5px 0;
  font-size: 15px;
  border-bottom: 1px solid #2A2C1C;
}

.toc a:last-child {
  border-bottom: none;
}

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

/* ---------------- Sections ---------------- */

.legal-page .legal-content section {
  background-color: transparent !important;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #5A6134;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2A2C1C;
}

.legal-content p {
  margin: 0 0 14px;
  color: #F2EFE8;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #F2EFE8;
}

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

.legal-content strong {
  color: #C4C79B;
}

/* ---------------- Footer ---------------- */

.legal-footer {
  border-top: 1px solid #5A6134;
  background-color: #141510;
  padding: 26px 0;
}

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

.legal-footer p {
  color: #C4C79B;
  font-size: 13px;
  margin: 0;
}

.legal-footer a {
  color: #F2EFE8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer a:hover {
  color: #C4C79B;
}

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

@media (max-width: 720px) {
  .legal-header-inner {
    height: auto;
    padding: 18px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .legal-title {
    font-size: 32px;
  }

  .legal-content {
    padding: 40px 0 56px;
  }

  .toc {
    padding: 20px;
  }

  .legal-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
