/* =============================================================
   TGH CAFE — css/legal.css
   Shared stylesheet for privacy.html and terms-of-service.html.
   DARK themed: cafe-at-dusk #171210 with crema-copper accents.
   Loaded ONLY on legal pages, never style.css.
   ============================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", "Segoe UI", serif;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Full-page wrapper carries the dark theme for every legal page. */
.legal-page {
  background-color: #171210;
  color: #F0EBE6;
  min-height: 100vh;
}

body.legal-page {
  background-color: #171210;
}

/* Scope isolation: never let any generic section rule show through. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Any container with a max-width must center and pad horizontally. */
.legal-content .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header (element, solid background, high contrast) ---------- */
.legal-page .legal-header {
  background-color: #211A15;
  border-bottom: 4px solid #33291F;
  color: #F0EBE6;
}

.legal-header .container {
  padding-top: 34px;
  padding-bottom: 26px;
}

.legal-page .legal-header .legal-brand a {
  color: #F0EBE6;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 18px;
}

.legal-page .legal-header h1 {
  color: #F0EBE6; /* strong contrast on bar-top background */
  font-size: 36px;
  font-weight: normal;
  letter-spacing: 1px;
  margin: 16px 0 10px;
}

.legal-page .legal-header .legal-meta {
  color: #CCC2BA;
  font-size: 15px;
}

/* ---------- Body text colors (strong contrast on dark) ---------- */
.legal-page .legal-content {
  padding: 40px 0 10px;
}

.legal-page .legal-content p,
.legal-page .legal-content li {
  color: #CCC2BA;
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-page .legal-content h2 {
  color: #D99A6C; /* crema-copper lightened for contrast */
  font-size: 25px;
  margin: 42px 0 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid #33291F;
}

.legal-page .legal-content h3 {
  color: #F0EBE6;
  font-size: 19px;
  margin: 26px 0 10px;
  font-weight: bold;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  padding-left: 26px;
  margin-bottom: 16px;
}

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

.legal-page .legal-content a {
  color: #D99A6C;
  text-decoration: underline;
}

.legal-page .legal-content a:hover {
  color: #F0EBE6;
}

.legal-page .legal-content strong {
  color: #F0EBE6;
}

.legal-page .legal-content em {
  color: #CCC2BA;
}

/* Tables for dates and contact detail if used on legal pages */
.legal-page .legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.legal-page .legal-content th,
.legal-page .legal-content td {
  border: 1px solid #33291F;
  padding: 10px 12px;
  color: #CCC2BA;
  text-align: left;
  vertical-align: top;
}

.legal-page .legal-content th {
  background-color: #211A15;
  color: #F0EBE6;
  font-weight: bold;
}

/* Intro lead paragraph */
.legal-page .legal-content .lead {
  font-size: 18px;
  color: #CCC2BA;
  font-style: italic;
}

/* Callout boxes */
.legal-page .legal-content .callout {
  background-color: #211A15;
  border-left: 6px solid #C98A5C;
  padding: 16px 18px;
  border-radius: 4px;
  margin: 22px 0;
  color: #CCC2BA;
}

.legal-page .legal-content .callout p {
  margin-bottom: 4px;
}

/* ---------- Table of contents ---------- */
nav.toc {
  background-color: #2A211B;
  border: 1px solid #33291F;
  border-radius: 6px;
  padding: 20px 22px;
  margin: 26px 0 10px;
}

nav.toc .toc-heading {
  color: #F0EBE6;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

nav.toc ul {
  list-style: none;
  padding-left: 0;
  columns: 2;
  column-gap: 28px;
}

@media (max-width: 640px) {
  nav.toc ul {
    columns: 1;
  }
}

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

nav.toc ul a {
  color: #D99A6C;
  text-decoration: none;
  font-size: 15px;
}

nav.toc ul a:hover {
  color: #F0EBE6;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.legal-page .legal-footer {
  background-color: #211A15;
  border-top: 4px solid #33291F;
  margin-top: 46px;
  padding: 30px 0 20px;
  position: relative;
}

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

.legal-footer .footer-brand {
  color: #F0EBE6;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 18px;
}

.legal-footer .footer-copy {
  color: #CCC2BA;
  font-size: 15px;
  line-height: 1.7;
  margin-top: 6px;
}

.legal-footer .footer-copy a {
  color: #D99A6C;
  text-decoration: none;
}

.legal-footer .footer-copy a:hover {
  color: #F0EBE6;
  text-decoration: underline;
}

.legal-footer .footer-legal {
  margin-top: 18px;
  border-top: 1px solid #33291F;
  padding-top: 14px;
  color: #CCC2BA;
  font-size: 14px;
  font-family: Georgia, serif;
}

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

.legal-footer .footer-links a {
  margin-right: 20px;
}

.legal-footer .separator {
  color: #5A7A8C;
}

/* Small print */
.legal-page .small-print {
  color: #CCC2BA;
  font-size: 14px;
  margin-top: 40px;
  border-top: 1px solid #33291F;
  padding-top: 16px;
}
