/* ============================================================
   PayLove — shared legal stylesheet for privacy + terms pages
   Palette (dark coral-heart):
   warm near-black  #150F12
   light cream      #F5EDEA
   coral red        #F2555A
   soft blush       #F8C9CB
   deep wine        #5C1E28
   warm gold        #E0B36A
   ============================================================ */

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* Legal pages load ONLY this stylesheet, so the body background
   must be defined here. */
.legal-page {
  background-color: #150F12;
  color: #F5EDEA;
  min-height: 100vh;
}

a {
  color: #F2555A;
}

/* ------------------------------------------------------------
   Legal header (a <header>, never a <section>)
   ------------------------------------------------------------ */
.legal-header {
  background: #5C1E28;
  padding: 64px 0 48px;
  border-bottom: 4px solid #F2555A;
}

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

.legal-header .back-link {
  display: inline-block;
  color: #F8C9CB;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 22px;
}

.legal-header .back-link:hover {
  color: #F5EDEA;
}

.legal-header h1 {
  color: #F5EDEA;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.legal-header .updated {
  color: #F8C9CB;
  font-size: 0.9rem;
  margin-top: 14px;
}

/* ------------------------------------------------------------
   Table of contents
   ------------------------------------------------------------ */
.legal-toc {
  padding: 40px 0 8px;
}

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

.legal-toc h2 {
  color: #F5EDEA;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

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

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

.legal-toc ol li a {
  color: #F8C9CB;
  text-decoration: none;
  font-size: 0.95rem;
}

.legal-toc ol li a::before {
  content: counter(toc) ". ";
  color: #F2555A;
  font-weight: 700;
}

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

/* ------------------------------------------------------------
   Legal content — scope isolation
   ------------------------------------------------------------ */
.legal-content {
  padding: 24px 0 80px;
}

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

.legal-content section {
  background-color: transparent !important;
  margin-bottom: 44px;
  scroll-margin-top: 24px;
}

.legal-content h2 {
  color: #F2555A;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2A1B20;
}

.legal-content h3 {
  color: #F5EDEA;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

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

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

.legal-content ul li {
  color: #E6D6D2;
  margin-bottom: 10px;
}

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

.legal-content .top-link {
  display: inline-block;
  color: #E0B36A;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 8px;
}

.legal-content .top-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.legal-footer {
  background-color: #120C0E;
  padding: 48px 0 32px;
  border-top: 1px solid #2A1B20;
}

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

.legal-footer p {
  color: #8A7573;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.legal-footer a {
  color: #F2555A;
  text-decoration: none;
}

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

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

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

  .legal-header h1 {
    font-size: 1.9rem;
  }
}
