/* ===== Crescere, LLC — shared legal stylesheet ===== */
/* Loaded ONLY by privacy.html and terms-of-service.html */

.legal-page {
  background-color: #F7F5F0;
  color: #1A1A1A;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Scope isolation: never let homepage section styling pollute legal text ===== */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ===== Header (must be a div/header with solid background) ===== */
.legal-header {
  background-image:
    radial-gradient(circle at 80% 20%, #14B8A6 0%, transparent 45%),
    linear-gradient(130deg, #115E59 0%, #0D9488 60%, #14B8A6 100%);
  color: #F7F5F0;
  padding: 48px 0 44px;
}

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

.legal-brand {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: #F7F5F0;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal-brand span {
  color: #99F6E4;
}

.legal-crumb {
  font-size: 14px;
  color: #D9F3EE;
  margin: 0 0 20px;
}

.legal-crumb a {
  color: #F7F5F0;
  font-weight: 600;
}

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

.legal-header h1 {
  color: #F7F5F0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.legal-updated {
  color: #D9F3EE;
  font-size: 14px;
  margin: 0;
}

/* ===== Content column (max-width must have auto margins + side padding) ===== */
.legal-content {
  padding: 56px 0 40px;
}

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

/* ===== Table of contents ===== */
.toc {
  background-color: #FFFFFF;
  border: 1px solid #E3DDD1;
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 48px;
}

.toc-title {
  font-weight: 800;
  color: #0D9488;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

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

.toc li {
  margin: 0;
}

.toc a {
  color: #2E2A24;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: #0D9488;
}

/* ===== Sections and typography ===== */
.legal-content section {
  margin-bottom: 44px;
}

.legal-content h2 {
  color: #0F766E;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0D9488;
}

.legal-content p {
  color: #1A1A1A;
  margin: 0 0 16px;
}

.legal-content a {
  color: #0D9488;
  font-weight: 600;
}

.legal-content a:hover {
  color: #0F766E;
  text-decoration: underline;
}

/* ===== Footer ===== */
.legal-footer {
  background-color: #1A1A1A;
  color: #E9E4DA;
  padding: 32px 0;
}

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

.legal-footer p {
  margin: 0;
  font-size: 14px;
}

.legal-footer a {
  color: #14B8A6;
  font-weight: 600;
  text-decoration: none;
}

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

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .toc ol {
    grid-template-columns: 1fr;
  }

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