/* ==========================================================================
   Easy Song — Shared Legal Stylesheet (Privacy Policy & Terms of Service)
   Loaded ONLY by the legal pages (never style.css).
   ========================================================================== */

/* Body scope for legal pages — defines the page background itself. */
.legal-page {
  background-color: #F4F9F8;
  color: #12201D;
  font-size: 16px;
  line-height: 1.7;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.legal-page body,
.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4,
.legal-page p,
.legal-page li {
  margin: 0;
  padding: 0;
}

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

.legal-page a:hover {
  color: #0B3B35;
  text-decoration: underline;
}

/* Scope isolation — legal sections must never inherit homepage backgrounds. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* --------------------------------------------------------------------------
   LEGAL PAGE HEADER (must be a div or header with a solid/gradient background)
   -------------------------------------------------------------------------- */
.legal-header {
  background: linear-gradient(135deg, #0B3B35 0%, #0D9488 100%);
  padding: 64px 0 56px;
  border-bottom: 4px solid #2DD4BF;
}

.legal-header .container {
  max-width: 860px;
  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: #2DD4BF;
  margin-bottom: 14px;
}

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

.legal-header .legal-sub {
  color: #D8F0E9;
  font-size: 1.02rem;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   LEGAL CONTENT LAYOUT
   -------------------------------------------------------------------------- */
.legal-content .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content .legal-body {
  padding: 48px 0 8px;
}

.legal-content .legal-updated {
  color: #6B7C76;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   TABLE OF CONTENTS
   -------------------------------------------------------------------------- */
.toc {
  background-color: #FFFFFF;
  border: 1px solid #DCE8E3;
  border-left: 4px solid #2DD4BF;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 44px;
}

.toc h2 {
  color: #12201D;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.toc li {
  margin: 0;
  padding: 0;
}

.toc a {
  color: #243530;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-block;
  padding: 3px 0;
}

.toc a:hover {
  color: #0D9488;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   LEGAL SECTIONS
   -------------------------------------------------------------------------- */
.legal-content section {
  margin-bottom: 40px;
}

.legal-content section h2 {
  color: #12201D;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E2ECE8;
}

.legal-content section h3 {
  color: #0B3B35;
  font-size: 1.12rem;
  font-weight: 700;
  margin: 22px 0 10px;
}

.legal-content section p {
  color: #243530;
  margin-bottom: 14px;
  font-size: 1rem;
}

.legal-content section ul,
.legal-content section ol {
  margin: 0 0 16px 24px;
  padding: 0;
}

.legal-content section li {
  color: #243530;
  margin-bottom: 8px;
  font-size: 1rem;
}

.legal-content section li::marker {
  color: #0D9488;
}

.legal-content strong {
  color: #12201D;
}

/* --------------------------------------------------------------------------
   LEGAL FOOTER
   -------------------------------------------------------------------------- */
.legal-footer {
  background-color: #FFFFFF;
  border-top: 4px solid #2DD4BF;
  padding: 40px 0 32px;
  margin-top: 40px;
}

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

.legal-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.legal-footer .footer-nav a:hover {
  color: #0D9488;
}

.legal-footer .footer-company {
  color: #6B7C76;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 1.9rem;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-content section h2 {
    font-size: 1.3rem;
  }
}
