/**
 * Legal pages CSS — U.S. Green Magnesium Americana
 * Used by: page.php (privacy, cookies, disclaimer, generic pages)
 * Sections: PAGE HEADER, LEGAL BODY
 */

/* ══════════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════════ */
.page-header {
  padding: 200px 40px 80px;
  border-bottom: 4px solid var(--red-accent);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--blue-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-accent) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-header-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.page-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
}

/* ══════════════════════════════════════════
   LEGAL BODY — accepts the_content() output
   ══════════════════════════════════════════ */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.legal-body h1,
.legal-body h2,
.legal-body h3,
.legal-body h4 {
  font-family: "Oswald", sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 40px 0 16px;
}
.legal-body h1 {
  font-size: 32px;
}
.legal-body h2 {
  font-size: 22px;
}
.legal-body h3 {
  font-size: 18px;
}
.legal-body h4 {
  font-size: 15px;
}
.legal-body h2:first-child,
.legal-body h3:first-child,
.legal-body > *:first-child {
  margin-top: 0;
}
.legal-body p {
  margin-bottom: 16px;
}
.legal-body p:last-child {
  margin-bottom: 0;
}
.legal-body strong {
  color: var(--white);
  font-weight: 600;
}
.legal-body em {
  font-style: italic;
}
.legal-body a {
  color: var(--blue-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(59, 130, 246, 0.4);
}
.legal-body a:hover {
  text-decoration-color: var(--blue-accent);
  opacity: 1;
}
.legal-body ul,
.legal-body ol {
  margin: 0 0 16px 4px;
  padding-left: 0;
  list-style: none;
}
.legal-body ul li,
.legal-body ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 2px;
  background: var(--blue-accent);
}
.legal-body ol {
  counter-reset: legal-item;
}
.legal-body ol li {
  counter-increment: legal-item;
}
.legal-body ol li::before {
  content: counter(legal-item) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  color: var(--blue-accent);
}
.legal-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--navy-card);
  border-left: 3px solid var(--blue-accent);
  font-style: italic;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-header {
    padding: 160px 24px 64px;
  }
  .legal-body {
    padding: 56px 24px;
  }
}
