/* ============================================================
   Yes We Can Drinks Inc. - css/legal.css
   Shared stylesheet for privacy.html and terms-of-service.html
   DARK espresso-near-black theme, loaded in isolation (never style.css)
   ============================================================ */

.legal-page {
  background-color: #16100C;
  color: #EDE0D2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

/* ------------------------------------------------------------
   Legal header (a <header>, never a <section>)
   ------------------------------------------------------------ */
.legal-header {
  background-color: #16100C;
  border-bottom: 1px solid #3A2C1C;
  padding: 36px 24px 30px;
  text-align: center;
}

.legal-header .legal-brand {
  display: inline-block;
  color: #F7F0E6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

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

.legal-header .legal-brand-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #E4682E;
  transform: rotate(45deg);
  margin-right: 12px;
}

.legal-header h1 {
  color: #F7F0E6;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.legal-header .legal-updated {
  color: #9C856C;
  font-size: 14px;
  margin-top: 10px;
}

/* ------------------------------------------------------------
   Layout container (max-width always centered with side padding)
   ------------------------------------------------------------ */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content {
  padding: 56px 0 20px;
}

/* Scope isolation: legal sections never inherit any page background */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ------------------------------------------------------------
   Table of contents
   ------------------------------------------------------------ */
.legal-toc {
  background-color: #241A12;
  border: 1px solid #3A2C1C;
  border-radius: 10px;
  margin: 0 auto 56px;
  padding: 28px 34px;
}

.legal-toc h2 {
  color: #F7F0E6;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: legaltoc;
  columns: 2;
  column-gap: 36px;
}

.legal-toc li {
  counter-increment: legaltoc;
  margin-bottom: 9px;
  break-inside: avoid;
}

.legal-toc li::before {
  content: counter(legaltoc, decimal-leading-zero) "  ";
  color: #E4682E;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.legal-toc a {
  color: #CFC0AC;
}

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

/* ------------------------------------------------------------
   Content typography
   ------------------------------------------------------------ */
.legal-content h2 {
  color: #F7F0E6;
  font-size: 26px;
  font-weight: 700;
  border-bottom: 2px solid #E4682E;
  padding-bottom: 12px;
  margin: 48px 0 18px;
}

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

.legal-content h3 {
  color: #F7F0E6;
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.legal-content p {
  color: #CFC0AC;
  margin-bottom: 16px;
}

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

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

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

.legal-content a {
  color: #E4682E;
}

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

/* ------------------------------------------------------------
   Legal footer (links back to the homepage)
   ------------------------------------------------------------ */
.legal-footer {
  background-color: #241A12;
  border-top: 1px solid #3A2C1C;
  margin-top: 56px;
  padding: 28px 24px;
  text-align: center;
}

.legal-footer p {
  color: #9C856C;
  font-size: 14px;
}

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

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

.legal-footer .legal-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .legal-toc {
    padding: 22px;
  }

  .legal-toc ol {
    columns: 1;
  }

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