/* =========================================================
   APPTO — legal.css
   Shared stylesheet for privacy.html and terms-of-service.html
   ========================================================= */

.legal-page {
  background-color: #FBF6F4;
  color: #2A1A16;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- header ---------- */
.legal-header {
  background: #2A1A16;
  color: #FBF6F4;
  padding: 48px 0 40px;
  border-bottom: 4px solid #F2543D;
}

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

.legal-header .legal-brand {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FAD9CE;
  margin-bottom: 20px;
}

.legal-header .legal-brand:hover {
  color: #FFFFFF;
}

.legal-header h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.legal-header .legal-updated {
  font-size: 15px;
  color: #FAD9CE;
  margin: 0;
}

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

.legal-page .legal-content section {
  background-color: transparent !important;
}

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

/* ---------- table of contents ---------- */
.toc {
  background: #FFFFFF;
  border: 1px solid #EFE1DB;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #C63D2B;
  margin: 0 0 14px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.toc ol li {
  font-size: 15px;
  line-height: 1.5;
}

.toc ol li a {
  color: #2A1A16;
  font-weight: 600;
}

.toc ol li a:hover {
  color: #C63D2B;
}

/* ---------- sections ---------- */
.legal-content section {
  margin-bottom: 40px;
  padding-top: 8px;
}

.legal-content section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #C63D2B;
  margin: 0 0 16px;
  letter-spacing: -0.2px;
}

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

.legal-content section p {
  font-size: 16px;
  color: #2A1A16;
  margin: 0 0 16px;
}

.legal-content section ul,
.legal-content section ol {
  margin: 0 0 16px;
  padding-left: 26px;
  color: #2A1A16;
}

.legal-content section ul li,
.legal-content section ol li {
  font-size: 16px;
  margin-bottom: 8px;
}

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

/* ---------- footer ---------- */
.legal-footer {
  background: #FFFFFF;
  border-top: 1px solid #EFE1DB;
  padding: 28px 0;
  text-align: center;
}

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

.legal-footer a {
  font-size: 15px;
  font-weight: 700;
  color: #C63D2B;
}

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

.legal-footer p {
  font-size: 14px;
  color: #6B5A54;
  margin: 8px 0 0;
}

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

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