/* ==========================================================================
   Shared legal stylesheet — privacy.html and terms-of-service.html
   Loaded WITHOUT css/style.css. Defines its own palette with strong contrast.
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", Times, serif;
  background-color: #F1EFE7;
  color: #292C28;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  line-height: 1.28;
  color: #26221C;
}

p { margin-bottom: 1.05em; }

a { color: #8A5A38; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #26221C; }

/* Legal header — solid background, strong h1 contrast */

.legal-header {
  display: block;
  background-color: #26221C;
  border-bottom: 6px solid #8A5A38;
  padding: 0;
}

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

.legal-header-kicker {
  display: block;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D29A48;
  margin-bottom: 10px;
}

.legal-header h1 {
  color: #F9F5EA;
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.legal-header p {
  color: #E7E2D5;
  max-width: 720px;
  margin-bottom: 0;
}

.legal-header a { color: #F9F5EA; }
.legal-header a:hover { color: #D29A48; }

/* Content container — max-width always paired with auto margin + padding */

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

/* Scope isolation for nested sections */

.legal-content section {
  background-color: transparent;
  padding-bottom: 4px;
}

.legal-intro {
  padding-top: 40px;
  padding-bottom: 8px;
}

.legal-intro p { font-size: 1.02rem; }

.legal-toc {
  background-color: #F9F5EA;
  border: 1px solid #C9C3B4;
  border-left: 8px solid #8A5A38;
  padding: 22px 26px;
  margin: 26px auto 40px;
}

.legal-toc h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  border-bottom: 2px solid #8A5A38;
  padding-bottom: 8px;
}

.legal-toc ol {
  margin-left: 20px;
  columns: 2;
  column-gap: 36px;
}

.legal-toc li { margin-bottom: 6px; font-size: 0.93rem; }

.legal-section {
  margin-bottom: 34px;
  padding-top: 6px;
}

.legal-section h2 {
  font-size: 1.42rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid #8A5A38;
}

.legal-section h3 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
  color: #8A5A38;
}

.legal-section p,
.legal-section li { color: #292C28; }

.legal-section ul,
.legal-section ol {
  margin: 0 0 14px 26px;
}

.legal-section li { margin-bottom: 7px; }

.legal-note {
  background-color: #F9F5EA;
  border: 1px solid #C9C3B4;
  border-left: 8px solid #8A5A38;
  padding: 18px 22px;
  margin: 20px 0;
  color: #292C28;
}

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

.legal-footer {
  background-color: #26221C;
  border-top: 6px solid #8A5A38;
  margin-top: 50px;
}

.legal-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 24px 34px;
}

.legal-footer p,
.legal-footer a {
  color: #E7E2D5;
  font-size: 0.9rem;
}

.legal-footer a { color: #F9F5EA; }
.legal-footer a:hover { color: #D29A48; }

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 16px;
  list-style: none;
}

.legal-footer-links a {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-meta {
  border-top: 1px solid #3A362D;
  padding-top: 16px;
  margin-top: 6px;
}

.legal-meta span { display: block; }

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