/* ==========================================================================
   LEGAL PAGES STYLESHEET
   Used ONLY by privacy.html and terms-of-service.html
   Exhibit-hall ivory light theme, booth-carpet terracotta headings
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

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

/* Scope isolation so legal content never inherits stray backgrounds */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* --------------------------------------------------------------------------
   LEGAL HEADER — plain header with strong contrast title
   -------------------------------------------------------------------------- */

.legal-header {
  background-color: #2A2620;
  padding: 44px 24px;
  position: relative;
}

.legal-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background-image: radial-gradient(circle at 9px 5px, #B4552D 4px, transparent 5px);
  background-size: 20px 10px;
  background-repeat: repeat-x;
}

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

.legal-kicker {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #E09A3E;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 38px;
  letter-spacing: 1px;
  color: #FDFCF8;
  margin-bottom: 12px;
}

.legal-header .legal-company {
  color: #D8D2C4;
  font-size: 15px;
}

.back-home {
  display: inline-block;
  margin-top: 20px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #E09A3E;
  border-bottom: 1px solid #E09A3E;
  padding-bottom: 2px;
}

.back-home:hover {
  color: #FDFCF8;
  border-color: #FDFCF8;
}

/* --------------------------------------------------------------------------
   LEGAL CONTENT LAYOUT
   -------------------------------------------------------------------------- */

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

.legal-page .legal-content {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* The instruction requires any max-width container to center itself */
.legal-page .legal-content .container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Table of contents */
.legal-toc {
  background-color: #FDFCF8;
  border: 2px solid #2E475F;
  padding: 28px 32px;
  margin-bottom: 44px;
}

.legal-toc h2 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2E475F;
  margin-bottom: 16px;
}

.legal-toc ol {
  padding-left: 20px;
}

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

.legal-toc a {
  color: #B4552D;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-toc a:hover {
  color: #8C3B22;
}

/* Sections */
.legal-content section {
  margin-bottom: 40px;
  padding-bottom: 8px;
}

.legal-content h2 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 24px;
  color: #8C3B22;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #E2DDD2;
  padding-top: 26px;
}

.legal-content h3 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 18px;
  color: #2E475F;
  margin: 22px 0 10px 0;
}

.legal-page .legal-content p {
  color: #44403A;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
  color: #44403A;
}

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

.legal-content strong {
  color: #2A2620;
}

.legal-content a {
  color: #B4552D;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.legal-updated {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: #777065;
  text-transform: uppercase;
  margin-bottom: 34px;
}

/* Callout boxes inside legal text */
.legal-note {
  background-color: #FDFCF8;
  border-left: 4px solid #E09A3E;
  padding: 16px 20px;
  margin: 18px 0;
  color: #44403A;
}

.legal-note strong {
  color: #8C3B22;
}

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

.legal-footer {
  background-color: #2A2620;
  color: #D8D2C4;
  padding: 44px 24px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.legal-footer .legal-brand {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #E09A3E;
  margin-bottom: 18px;
  font-weight: 700;
}

.legal-footer .legal-line {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-footer a {
  color: #E09A3E;
}

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

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

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

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

  .legal-toc {
    padding: 20px 24px;
  }
}

@media print {
  .legal-header,
  .legal-footer {
    background-color: #F8F7F2;
    color: #2A2620;
  }
}
