/* ==========================================================================
   TengPower — shared legal stylesheet (privacy + terms)
   Light theme · loaded standalone, never alongside style.css
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-size: 16px;
}

.legal-page {
  background-color: #F5F3EC;
  color: #171815;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.legal-page a {
  color: #0A5651;
  text-decoration: none;
}

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

/* ---------- Legal header (div, solid gradient) ---------- */

.legal-header {
  background: linear-gradient(120deg, #10322F, #0A2624);
  color: #EAF0EE;
  padding: 72px 24px 60px;
  text-align: center;
  border-bottom: 4px solid #0E7C76;
}

.legal-header .legal-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #14A196;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.legal-header p {
  font-size: 15px;
  color: #A9BEBA;
  max-width: 680px;
  margin: 0 auto;
}

.legal-header .legal-updated {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: #A9BEBA;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ---------- Legal body content ---------- */

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

.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;
  color: inherit;
}

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

.legal-content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0A5651;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E4E0D4;
}

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

.legal-content p {
  font-size: 16px;
  color: #3A3D36;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 22px;
}

.legal-content li {
  font-size: 16px;
  color: #3A3D36;
  margin-bottom: 8px;
}

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

.legal-content a {
  color: #0E7C76;
  font-weight: 500;
}

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

.legal-toc {
  background-color: #FFFFFF;
  border: 1px solid #E4E0D4;
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.legal-toc h2 {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0E7C76;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.legal-toc ol li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.legal-toc ol a {
  font-size: 14px;
  color: #3A3D36;
  text-decoration: none;
}

.legal-toc ol a:hover {
  color: #0A5651;
  text-decoration: underline;
}

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

.legal-footer {
  background-color: #10322F;
  color: #A9BEBA;
  padding: 40px 24px;
  text-align: center;
}

.legal-footer .legal-footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

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

.legal-footer .legal-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-footer .legal-footer-links a {
  color: #14A196;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-footer .legal-footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

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

@media (max-width: 680px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-content h2 {
    font-size: 22px;
  }
}
