/* ============================================================
   LITONE — Shared legal stylesheet (privacy + terms)
   Loaded ONLY by the legal pages. Defines its own body color.
   ============================================================ */

.legal-page {
  background-color: #07312B;
  color: #DCE6E1;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

html {
  font-size: 16px;
}

/* ---------- Header ---------- */
.legal-header {
  background: linear-gradient(135deg, #05241F 0%, #0C4A41 60%, #07312B 100%);
  color: #FFFFFF;
  padding: 64px 0 48px;
  border-bottom: 4px solid #D64A24;
}

.legal-header .header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.legal-header .header-brand a {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.legal-header .header-brand a span {
  color: #C99A3D;
}

.legal-header .header-home a {
  color: #DCE6E1;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #2E6A60;
  border-radius: 8px;
  padding: 10px 18px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-header .header-home a:hover {
  background-color: #D64A24;
  border-color: #D64A24;
  color: #FFFFFF;
}

.legal-header .legal-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C99A3D;
  font-weight: 700;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 14px;
}

.legal-header .legal-sub {
  color: #A9C4BA;
  font-size: 16px;
  max-width: 720px;
}

.legal-header .legal-meta {
  margin-top: 20px;
  font-size: 14px;
  color: #C7D6CF;
}

.legal-header .legal-meta strong {
  color: #FFFFFF;
}

/* ---------- Content shell ---------- */
.legal-content {
  padding: 56px 0 80px;
}

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

/* Scope isolation — body content sections stay transparent */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Table of contents ---------- */
.legal-toc {
  background-color: #0C4A41;
  border: 1px solid #1E5A50;
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 44px;
}

.legal-toc h2 {
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

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

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

.legal-toc ol li a {
  color: #C7D6CF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-toc ol li a:hover {
  color: #C99A3D;
}

.legal-toc ol li a::before {
  content: counter(toc, decimal-leading-zero) ".";
  color: #C99A3D;
  font-weight: 700;
  margin-right: 8px;
  font-size: 12px;
}

/* ---------- Sections ---------- */
.legal-content section {
  margin-bottom: 44px;
  scroll-margin-top: 24px;
}

.legal-content section h2 {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1E5A50;
}

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

.legal-content section p {
  color: #C7D6CF;
  margin-bottom: 16px;
}

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

.legal-content section ul li {
  color: #C7D6CF;
  margin-bottom: 8px;
}

.legal-content section a {
  color: #E8896B;
  text-decoration: none;
  font-weight: 600;
}

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

.legal-content section strong {
  color: #FFFFFF;
}

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #05241F;
  color: #9DB8AF;
  padding: 28px 0;
  border-top: 1px solid #0C4A41;
}

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

.legal-footer .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-footer .footer-brand {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 17px;
}

.legal-footer .footer-brand span {
  color: #C99A3D;
}

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

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

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

.legal-footer .footer-legal {
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }

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