/* ============================================================
   Bernard Travel Co. LLC — css/legal.css
   Shared stylesheet for privacy.html and terms-of-service.html
   LIGHT theme: warm cream body, coffee text, leather-brown accent
   ============================================================ */

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

.legal-page {
  background-color: #F8F3EA;
  color: #33271C;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.legal-page a:hover {
  color: #6E4A20;
  text-decoration: underline;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: #241A10;
  line-height: 1.25;
}

/* Any content container with a max-width must center itself and add
   horizontal padding so text never touches the screen edge. */
.legal-header .container,
.legal-content .container,
.legal-footer .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Legal header (a <div>/<header> element with a solid background)
   ============================================================ */

.legal-header {
  background-color: #241A10;
  border-bottom: 4px solid #8B5A2B;
  padding: 28px 0 24px;
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #F8F3EA;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
}

.legal-brand:hover {
  color: #F8F3EA;
  text-decoration: none;
}

.legal-brand-rose {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.legal-brand-rose .ring {
  position: absolute;
  inset: 0;
  border: 2px solid #8B5A2B;
  border-radius: 50%;
}

.legal-brand-rose .star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  background-color: #8B5A2B;
  transform: translate(-50%, -50%) rotate(45deg);
}

.legal-brand-rose .star::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  background-color: #8B5A2B;
  transform: translate(-50%, -50%) rotate(90deg);
}

.legal-header-tag {
  color: #D9C9A8;
  font-size: 15px;
  letter-spacing: 1px;
}

.legal-page-title {
  color: #F8F3EA;
  font-size: 38px;
  font-weight: 700;
  margin-top: 18px;
  letter-spacing: 1px;
}

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

.legal-header-home {
  display: inline-block;
  margin-top: 14px;
  color: #F8F3EA;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid #8B5A2B;
  border-radius: 40px;
  padding: 9px 20px;
}

.legal-header-home:hover {
  background-color: #8B5A2B;
  color: #F8F3EA;
  text-decoration: none;
}

/* ============================================================
   Table of contents (scoped class — never a bare nav selector)
   ============================================================ */

.legal-toc {
  background-color: #F0E6D4;
  border: 1px solid #E2D4BC;
  border-left: 4px solid #8B5A2B;
  border-radius: 6px;
  padding: 24px 28px;
  margin: 34px 0 8px;
}

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

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

.legal-toc li {
  margin-bottom: 8px;
  counter-increment: toc;
  padding-left: 28px;
  position: relative;
}

.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: #8B5A2B;
  font-weight: 700;
  font-size: 14px;
}

.legal-toc a {
  color: #33271C;
  font-weight: 700;
}

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

/* ============================================================
   Legal content
   ============================================================ */

.legal-content .container {
  padding-top: 30px;
  padding-bottom: 64px;
}

/* Scope isolation: legal sections must never paint their own
   background over the shared cream page background. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  margin-top: 42px;
}

.legal-content h2 {
  font-size: 26px;
  color: #241A10;
  margin-bottom: 14px;
  padding-top: 8px;
  scroll-margin-top: 20px;
  position: relative;
}

.legal-content h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background-color: #8B5A2B;
  margin-top: 10px;
}

.legal-content h3 {
  font-size: 19px;
  color: #241A10;
  margin: 20px 0 8px;
}

.legal-content p {
  color: #33271C;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: #33271C;
}

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

.legal-content strong {
  color: #241A10;
}

.legal-content .legal-note {
  background-color: #F0E6D4;
  border: 1px solid #E2D4BC;
  border-left: 4px solid #8B5A2B;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #33271C;
}

.legal-back-top {
  display: inline-block;
  margin-top: 12px;
  color: #8B5A2B;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-back-top:hover {
  color: #6E4A20;
}

/* ============================================================
   Legal footer
   ============================================================ */

.legal-footer {
  background-color: #241A10;
  border-top: 1px solid #E2D4BC;
  padding: 34px 0;
}

.legal-footer .container {
  text-align: center;
}

.legal-footer p {
  color: #D9C9A8;
  font-size: 15px;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #D9C9A8;
  text-decoration: underline;
  text-decoration-color: #8B5A2B;
  text-underline-offset: 4px;
}

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

.legal-footer-phone {
  color: #F8F3EA !important;
  font-weight: 700;
}

.legal-footer-phone a {
  color: #F8F3EA;
}

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

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 720px) {
  .legal-page-title {
    font-size: 28px;
  }

  .legal-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

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

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