/* Legal pages: shared stylesheet for privacy and terms */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background: #F6F6EA;
  color: #3E4036;
  line-height: 1.72;
  overflow-x: hidden;
}

.legal-header {
  background: #2C2C22;
  color: #F6F6EA;
  padding: 26px 0;
  border-bottom: 5px solid #5E8252;
}

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

.legal-header a.legal-brand {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1rem;
  color: #F6F6EA;
  text-decoration: none;
}

.legal-header h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #F6F6EA;
  font-size: 2.1rem;
  margin: 14px 0 6px;
}

.legal-header p {
  margin: 0;
  color: #E0DED0;
  font-size: 0.94rem;
}

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

.legal-content {
  padding: 28px 0 10px;
}

.legal-content section {
  background: transparent !important;
  border-bottom: 1px solid #C9C7B4;
  padding: 26px 0;
}

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

.legal-content h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #2C2C22;
  font-size: 1.4rem;
  margin: 0 0 12px;
  line-height: 1.22;
}

.legal-content h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #3E4036;
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.legal-content p {
  margin: 0 0 14px;
  font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

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

.legal-content a {
  color: #47663D;
  font-weight: 700;
}

.legal-toc {
  background: #E0DED0;
  border: 2px solid #9A9C86;
  border-left: 8px solid #5E8252;
  border-radius: 3px;
  padding: 20px 24px;
  margin: 30px 0 10px;
}

.legal-toc h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  color: #2C2C22;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 7px;
  font-size: 0.94rem;
}

.legal-toc a {
  color: #2C2C22;
  text-decoration: none;
  font-weight: 400;
}

.legal-toc a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-note {
  background: #E0DED0;
  border-left: 8px solid #C67268;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.96rem;
}

.legal-bookend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 30px;
  border-top: 3px solid #2C2C22;
  margin-top: 10px;
}

.legal-bookend a.back {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #F6F6EA;
  background: #5E8252;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 3px;
  border-bottom: 4px solid #47663D;
}

.legal-bookend a.back:hover {
  background: #47663D;
}

.legal-bookend a.plain {
  color: #2C2C22;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-foot {
  background: #2C2C22;
  color: #E0DED0;
  font-size: 0.86rem;
  padding: 20px 0;
}

.legal-foot-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.legal-foot a {
  color: #AAB499;
}

@media (max-width: 700px) {
  .legal-toc ol {
    columns: 1;
  }
  .legal-header h1 {
    font-size: 1.7rem;
  }
}
