/* ============================================================
   AMBITION BREW CO, LLC — Legal pages stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html.
   Dark tasting-room theme, self-contained (never loads style.css).
   Palette:
   TASTING-ROOM  #14100C  body background (near-black warm brown)
   HEAD-FOAM     #F7F0E3  headline tone
   BREW-AMBER    #D08B36  accent (h2 headings)
   KETTLE-COPPER #B4692A  deeper accent
   BARREL-PLANK  #221A12  raised panels
   CELLAR-DEEP   #2C2117  deeper panels
   MALT-CREAM    #D4C9B8  body text
   HOP-VINE GREEN #6E7F3E tertiary
   HAIRLINE      #3A2D1F  thin separators
   ============================================================ */

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

.legal-page {
  background-color: #14100C;
  color: #F2EBE0;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Harden text color against any inherited rule from browsers */
.legal-page,
.legal-page .legal-content,
.legal-page .legal-content p,
.legal-page .legal-content ul,
.legal-page .legal-content ol,
.legal-page .legal-content div,
.legal-page .legal-content span {
  color: #D4C9B8;
}

.legal-page a {
  color: #D08B36;
  text-decoration: none;
}

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

/* Scope isolation: any content section inside the legal body
   must keep a transparent background so the page background
   stays consistent. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ===================== LEGAL HEADER ===================== */
.legal-header {
  background-color: #221A12;
  border-bottom: 1px solid #3A2D1F;
  padding: 26px 24px 22px;
}

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

.legal-header .legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #F7F0E3;
  margin-bottom: 10px;
}

.legal-header .legal-brand span {
  color: #D08B36;
}

.legal-header .legal-kicker {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D08B36;
  margin-bottom: 6px;
}

.legal-header h1 {
  color: #F7F0E3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
}

.legal-header .legal-updated {
  color: #8F7A5A;
  font-size: 13px;
  margin-top: 8px;
}

/* ===================== CONTENT ===================== */
.legal-content {
  padding: 40px 24px 60px;
}

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

.legal-toc {
  background-color: #221A12;
  border: 1px solid #3A2D1F;
  border-radius: 6px;
  padding: 26px 30px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  color: #D08B36;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}

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

.legal-toc ol li::before {
  content: counter(toc, decimal-leading-zero) " ";
  color: #6E7F3E;
  font-weight: 700;
  margin-right: 8px;
}

.legal-toc a {
  color: #D4C9B8;
  font-size: 15px;
}

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

.legal-content h2 {
  color: #D08B36;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-top: 12px;
  border-top: 1px solid #3A2D1F;
}

.legal-content h2:first-child {
  margin-top: 0;
  border-top: none;
}

.legal-content h3 {
  color: #F7F0E3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  margin: 22px 0 10px;
}

.legal-content p {
  color: #D4C9B8;
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  color: #D4C9B8;
  font-size: 16px;
  margin: 0 0 16px 26px;
}

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

.legal-content strong {
  color: #F7F0E3;
  font-weight: 700;
}

.legal-content .intro-note {
  background-color: #2C2117;
  border-left: 4px solid #D08B36;
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.legal-content .intro-note p {
  margin-bottom: 8px;
}

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

.legal-contact-block {
  background-color: #221A12;
  border: 1px solid #3A2D1F;
  border-radius: 6px;
  padding: 22px 24px;
  margin-top: 18px;
}

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

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

/* ===================== LEGAL FOOTER ===================== */
.legal-footer {
  background-color: #1A130D;
  border-top: 1px solid #3A2D1F;
  padding: 30px 24px 28px;
  text-align: center;
}

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

.legal-footer .legal-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 14px;
  padding: 0;
}

.legal-footer .legal-footer-links a {
  color: #D4C9B8;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.legal-footer .legal-footer-note {
  color: #8F7A5A;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.legal-footer .legal-footer-note a {
  color: #8F7A5A;
}

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 600px) {
  .legal-header h1 {
    font-size: 27px;
  }

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

@media print {
  .legal-page {
    background-color: #ffffff;
    color: #000000;
  }
}
