/* ==========================================================================
   BambooWhisper — legal.css
   Shared stylesheet for privacy.html and terms-of-service.html
   These pages load ONLY this stylesheet, never style.css
   ========================================================================== */

.legal-page {
  background-color: #F8FAF4;
  color: #5C6B57;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

img {
  max-width: 100%;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: #5F8F4E;
}

/* ---------------- legal header ---------------- */

.legal-header {
  background-color: #5F8F4E;
  padding: 56px 24px 48px;
}

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

.legal-back {
  display: inline-block;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 26px;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.legal-date {
  color: #EAF2E4;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ---------------- table of contents ---------------- */

.toc {
  background-color: #FFFFFF;
  border-bottom: 1px solid #D8E4CE;
  padding: 34px 0 30px;
}

.toc-title {
  color: #1E2A1C;
  font-size: 18px;
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
}

.toc-list li a {
  color: #5F8F4E;
  font-size: 15px;
  text-decoration: none;
  font-weight: 600;
}

.toc-list li a:hover {
  text-decoration: underline;
  color: #4A703C;
}

.toc-list .sec-num {
  color: #5F8F4E;
  font-weight: 700;
  margin-right: 4px;
}

/* ---------------- legal content ---------------- */

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

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

.legal-content section {
  padding: 34px 0;
  border-bottom: 1px solid #EAF2E4;
}

.legal-content section:last-child {
  border-bottom: none;
}

.legal-content h2 {
  color: #1E2A1C;
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.legal-content h3 {
  color: #1E2A1C;
  font-size: 19px;
  margin-bottom: 10px;
}

.legal-content .sec-num {
  color: #5F8F4E;
  margin-right: 8px;
  font-weight: 700;
}

.legal-content p {
  color: #5C6B57;
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  color: #5C6B57;
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #5F8F4E;
  font-weight: 600;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
  color: #4A703C;
}

.legal-content strong {
  color: #1E2A1C;
}

/* ---------------- legal footer ---------------- */

.legal-footer {
  background-color: #FFFFFF;
  border-top: 1px solid #D8E4CE;
  padding: 34px 0;
}

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

.legal-footer-brand {
  color: #1E2A1C;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-footer-links {
  margin-bottom: 12px;
}

.legal-footer-links a {
  color: #5F8F4E;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.legal-footer-addr {
  color: #5C6B57;
  font-size: 13px;
  margin-bottom: 10px;
}

.legal-footer-copy {
  color: #5C6B57;
  font-size: 13px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 32px;
  }

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

  .legal-content h2 {
    font-size: 22px;
  }
}
