/* ============================================================
   RAMENGARDEN — LEGAL PAGES SHARED STYLESHEET
   Applies to privacy.html and terms-of-service.html ONLY.
   LIGHT legal theme on a slightly whiter paper than the homepage.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #FAF7F2;
  color: #22301F;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- LEGAL HEADER ---------- */

.legal-header {
  background-color: #1E4D2B;
  padding: 54px 24px 46px;
  text-align: center;
}

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

.legal-eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #EFE5D4;
}

.legal-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  color: #FFFBF3;
  margin-top: 10px;
  line-height: 1.15;
}

.legal-updated {
  margin-top: 12px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #C9BFA8;
}

/* ---------- CONTENT ---------- */

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 34px;
}

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

.legal-content section {
  margin-bottom: 34px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E2D7C2;
}

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

.legal-content h2 {
  font-size: 26px;
  line-height: 1.3;
  color: #1E4D2B;
  margin-bottom: 14px;
  scroll-margin-top: 20px;
}

.legal-content p {
  margin-bottom: 14px;
  color: #33422E;
}

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

.legal-content a {
  color: #3F6B3A;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-content a:hover {
  color: #8A5A33;
}

/* ---------- TABLE OF CONTENTS ---------- */

.toc {
  background-color: #FFFBF3;
  border: 1px solid #E2D7C2;
  border-left: 4px solid #3F6B3A;
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 38px;
}

.toc-title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8A5A33;
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  columns: 2;
  column-gap: 34px;
}

.toc li {
  margin-bottom: 8px;
  font-size: 15px;
  break-inside: avoid;
}

.toc a {
  color: #3F6B3A;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- BACKLINK ---------- */

.legal-backlink {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 2px solid #1E4D2B;
}

.legal-backlink a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
}

/* ---------- LEGAL FOOTER ---------- */

.legal-footer {
  background-color: #EFE5D4;
  border-top: 3px solid #3F6B3A;
  padding: 30px 24px 28px;
  text-align: center;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

.legal-footer-links a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #3F6B3A;
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: #1E4D2B;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal-footer-links span {
  color: #8A5A33;
  margin: 0 10px;
}

.legal-footer p {
  color: #33422E;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 32px;
  }
  .toc ol {
    columns: 1;
  }
  .legal-content h2 {
    font-size: 22px;
  }
}
