/* ============================================================
   SpringMelody — shared legal stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   Theme: DARK green-black with SPRING GREEN accent #22C55E
   ============================================================ */

.legal-page {
  background-color: #0E1210;
  color: #ECF3EA;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

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

/* Scope isolation — never let homepage section backgrounds leak in */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page a {
  color: #86EFAC;
  text-decoration: none;
}

.legal-page a:hover {
  color: #22C55E;
}

/* ============================================================
   LEGAL HEADER (a <header>, never a <section>)
   ============================================================ */

.legal-header {
  background: linear-gradient(135deg, #0B1F14 0%, #12351D 55%, #0E2A18 100%);
  border-bottom: 1px solid #24352A;
  padding: 72px 0 56px;
}

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

.legal-header .legal-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86EFAC;
  margin-bottom: 16px;
}

.legal-header h1 {
  color: #ECF3EA;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.legal-header p {
  color: #A3B8AA;
  font-size: 1.02rem;
  max-width: 720px;
  margin: 0;
}

/* ============================================================
   LEGAL CONTENT LAYOUT
   ============================================================ */

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

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

.legal-content section {
  margin-bottom: 0;
  padding: 34px 0;
  border-bottom: 1px solid #24352A;
}

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

.legal-content h2 {
  color: #ECF3EA;
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  scroll-margin-top: 110px;
}

.legal-content h3 {
  color: #86EFAC;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 24px 0 10px;
}

.legal-content p {
  color: #C7D6CB;
  font-size: 1rem;
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 24px;
  color: #C7D6CB;
}

.legal-content li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.legal-content strong {
  color: #ECF3EA;
  font-weight: 700;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.legal-toc {
  background: #121815;
  border: 1px solid #24352A;
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 40px;
}

.legal-toc .toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #86EFAC;
  margin-bottom: 18px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
}

.legal-toc li {
  margin: 0;
}

.legal-toc a {
  color: #A3B8AA;
  font-size: 0.94rem;
  line-height: 1.5;
  display: inline-block;
  padding: 3px 0;
}

.legal-toc a:hover {
  color: #22C55E;
}

.legal-toc a .toc-num {
  color: #22C55E;
  font-weight: 700;
  margin-right: 8px;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background: #121815;
  border-top: 3px solid #22C55E;
  padding: 40px 0;
  margin-top: 20px;
}

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

.legal-footer .footer-brand {
  color: #ECF3EA;
  font-weight: 700;
  font-size: 1.02rem;
}

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

.legal-footer p {
  color: #A3B8AA;
  font-size: 0.86rem;
  margin: 0;
}

.legal-footer nav {
  display: flex;
  gap: 20px;
}

.legal-footer nav a {
  color: #A3B8AA;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-footer nav a:hover {
  color: #86EFAC;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 680px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .legal-footer .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
