/* ============================================================
   BJS Rental Enterprises LLC - Legal Pages Stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html.
   Palette mirrors the yard theme with strong contrast.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #EFEAE0;
  color: #2A2D31;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 14px;
  line-height: 1.25;
  color: #2A2D31;
}

p {
  margin: 0 0 16px;
}

ul, ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: #2F5C8C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: #1D232B;
}

/* ---------- Legal header ---------- */
.legal-header {
  background-color: #1D232B;
  border-bottom: 5px solid #2F5C8C;
  padding: 26px 0;
}

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

.legal-header-brand {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F8F4EA;
  margin-bottom: 8px;
}

.legal-header h1 {
  color: #F8F4EA;
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 8px;
}

.legal-header-meta {
  color: #F8F4EA;
  font-size: 14px;
  margin: 0;
}

.legal-header a {
  color: #F8F4EA;
  font-weight: 700;
}

.legal-header a:hover,
.legal-header a:focus {
  color: #2F5C8C;
}

/* ---------- Legal content wrapper ---------- */
.legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content {
  background-color: #EFEAE0;
  color: #2A2D31;
  padding: 42px 0 30px;
}

/* Scope isolation: any section inside legal content keeps page colors */
.legal-content section {
  background-color: transparent !important;
  color: #2A2D31;
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 900;
  border-left: 8px solid #2F5C8C;
  padding-left: 14px;
  margin-top: 34px;
  margin-bottom: 14px;
  color: #2A2D31;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 22px;
  color: #2A2D31;
}

.legal-intro {
  background-color: #F8F4EA;
  border: 3px solid #5C646C;
  padding: 22px 24px;
  margin-bottom: 30px;
  color: #2A2D31;
}

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

/* ---------- Table of contents ---------- */
.legal-toc {
  background-color: #F8F4EA;
  border: 3px solid #5C646C;
  padding: 22px 24px;
  margin-bottom: 34px;
}

.legal-toc-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5C646C;
  margin: 0 0 14px;
}

.legal-toc ol {
  columns: 2;
  column-gap: 34px;
  margin: 0;
  padding-left: 20px;
}

.legal-toc li {
  margin-bottom: 7px;
  break-inside: avoid;
}

.legal-toc a {
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Legal footer ---------- */
.legal-footer {
  background-color: #1D232B;
  border-top: 5px solid #5C646C;
  padding: 30px 0;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  color: #F8F4EA;
}

.legal-footer-inner p {
  margin: 0 0 10px;
  font-size: 14px;
}

.legal-footer-links {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer-links a {
  color: #F8F4EA;
  font-weight: 700;
  font-size: 14px;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus {
  color: #2F5C8C;
}

.legal-footer-flag {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid #BE4A38;
  margin-right: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .legal-toc ol {
    columns: 1;
  }
  .legal-header h1 {
    font-size: 26px;
  }
}
