/* Shared legal stylesheet for privacy.html and terms-of-service.html.
   Legal pages load ONLY this file; it defines its own page colors.
   CHAMBER-MARBLE #E2E4EA ground, ROD-DEEP #382224 text,
   ASSEMBLY-BLUE #404874 accents, SEAL-GILT #E0B256 rules, SEAT-CARD #D6DEFA panels.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  color: #382224;
  line-height: 1.22;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: #404874;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #9694B0;
}

/* ---------- LEGAL HEADER ---------- */
.legal-header {
  background-color: #382224;
  border-bottom: 4px solid #404874;
  color: #E2E4EA;
}

.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-header-brand {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #E2E4EA;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.legal-header-brand:hover {
  color: #E2E4EA;
}

.legal-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #9694B0;
  display: inline-block;
}

.legal-header-back {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E2E4EA;
  text-decoration: none;
  border: 2px solid #E0B256;
  border-radius: 4px;
  padding: 6px 12px;
}

.legal-header-back:hover {
  background-color: #E0B256;
  color: #382224;
}

/* ---------- LEGAL TITLE BLOCK ---------- */
.legal-title {
  max-width: 900px;
  margin: 0 auto;
  padding: 46px 24px 8px;
}

.legal-title h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.legal-title-kicker {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #404874;
  margin: 0 0 10px;
}

.legal-title p {
  font-size: 1rem;
  max-width: 60em;
}

/* ---------- TABLE OF CONTENTS ---------- */
.legal-toc {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 24px 20px;
}

.legal-toc-box {
  background-color: #D6DEFA;
  border: 3px solid #404874;
  border-radius: 6px;
  padding: 22px 24px;
}

.legal-toc-box h2 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 2px solid #404874;
  padding-bottom: 8px;
}

.legal-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 34px;
}

.legal-toc-list li {
  margin: 0 0 7px;
  break-inside: avoid;
  font-size: 0.94rem;
}

.legal-toc-list a {
  color: #382224;
  text-decoration: none;
  border-bottom: 1px solid #404874;
}

.legal-toc-list a:hover {
  color: #404874;
  border-bottom-color: #9694B0;
}

/* ---------- LEGAL CONTENT ---------- */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

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

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

.legal-content h2 {
  font-size: 1.42rem;
  margin-bottom: 10px;
  scroll-margin-top: 20px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 18px;
  margin-bottom: 6px;
}

.legal-content p {
  font-size: 1rem;
  margin-bottom: 1em;
}

.legal-content ul {
  margin: 0 0 1em;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.legal-callout {
  background-color: #D6DEFA;
  border-left: 6px solid #4C9A6A;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 12px 0 6px;
}

.legal-callout p {
  margin: 0;
}

.legal-contact {
  background-color: #E0B256;
  border-radius: 6px;
  padding: 20px 22px;
  margin-top: 12px;
}

.legal-contact p {
  margin: 0 0 6px;
}

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

/* ---------- LEGAL FOOTER ---------- */
.legal-footer {
  border-top: 3px solid #382224;
  padding: 26px 24px 40px;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.legal-footer-links {
  margin: 0 0 16px;
  padding: 0;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 14px;
}

.legal-footer-links a {
  color: #382224;
  text-decoration: none;
  border-bottom: 1px solid #382224;
  margin: 0 8px;
}

.legal-footer-links a:hover {
  color: #404874;
  border-bottom-color: #9694B0;
}

.legal-footer-line {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 12px;
  color: #382224;
  margin: 0 0 6px;
}

.legal-footer-brand {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #382224;
  margin: 0 0 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .legal-toc-list {
    columns: 1;
  }

  .legal-title h1 {
    font-size: 1.9rem;
  }
}
