/* ============================================================
   AguirreW Ventures LLC — legal pages stylesheet
   Used by privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #F4F9F8;
  color: #122B27;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.legal-page a:hover {
  color: #09423D;
  text-decoration: underline;
}

/* ---------- legal header ---------- */
.legal-header {
  background: linear-gradient(135deg, #0B5C55 0%, #09423D 100%);
  color: #FFFFFF;
  padding: 74px 0 66px;
}

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

.legal-brand {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: #DFF2EF;
  margin-bottom: 20px;
}

.legal-brand:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.legal-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D9A441;
  margin-bottom: 10px;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.legal-updated {
  color: #BFE3DD;
  font-size: 0.95rem;
}

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

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

/* scope isolation — keep sections transparent on light background */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-intro {
  font-size: 1.1rem;
  color: #122B27;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ---------- table of contents ---------- */
.toc {
  background: #FFFFFF;
  border: 1px solid #D6ECE8;
  border-left: 4px solid #0B5C55;
  border-radius: 10px;
  padding: 28px 30px;
  margin-bottom: 48px;
}

.toc h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #122B27;
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
}

.toc ol li {
  counter-increment: toc;
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  color: #D9A441;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 12px;
}

.toc ol a {
  color: #0B5C55;
  font-weight: 600;
}

.toc ol a:hover {
  color: #09423D;
}

/* ---------- legal sections ---------- */
.legal-content section {
  margin-bottom: 52px;
}

.legal-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0B5C55;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #DFF2EF;
}

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

.legal-content p {
  color: #2A423E;
  margin-bottom: 16px;
  font-size: 1.02rem;
}

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

.legal-content ul li {
  color: #2A423E;
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.legal-content strong {
  color: #122B27;
}

/* ---------- legal footer ---------- */
.legal-footer {
  border-top: 1px solid #D6ECE8;
  background: #FFFFFF;
  padding: 34px 0;
}

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

.legal-footer p {
  color: #4A6B65;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.legal-footer a {
  font-weight: 700;
  color: #0B5C55;
}

@media (max-width: 600px) {
  .legal-header {
    padding: 56px 0 50px;
  }

  .toc {
    padding: 22px 20px;
  }
}
