/*
  REVALYTICS — LEGAL PAGES
  Shared styles for all 8 legal policy pages (two levels deep).
*/

/* ── Nav clearance ──────────────────────────────────── */
body { padding-top: 100px; }

/* ── Page wrapper ───────────────────────────────────── */
.page {
  max-width: 1920px;
  margin: 0 auto;
}

/* ── Tagline row inside footer-brand ────────────────── */
.footer-tagline-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Hero (legal compact variant) ───────────────────── */
.hero-legal {
  margin: -10px 30px 0;
  border-radius: var(--rev-radius-lg);
  background: url('../../images/hero-section-backgroud-blue-gradient.webp') center center / cover no-repeat;
  color: #fff;
  padding: clamp(80px, 8vw, 120px) clamp(32px, 6vw, 80px);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-legal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 45, 0.40);
  border-radius: inherit;
  pointer-events: none;
}

.hero-legal > * { position: relative; z-index: 1; }

.hero-legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rev-blue-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}


.hero-legal h1 {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.hero-legal h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--rev-blue-300);
}

.hero-legal-sub {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  max-width: 560px;
  margin: 0;
}

.hero-legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--rev-radius-pill);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ── Floating card section ───────────────────────────── */
.section {
  margin: 25px 30px;
  background: #fff;
  border-radius: var(--rev-radius-lg);
  box-shadow: var(--rev-shadow-card);
  overflow: hidden;
}

.section-pad {
  padding: clamp(40px, 6vw, 90px) clamp(28px, 5vw, 73px);
}

/* ── Legal two-column layout ─────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
  min-width: 0;
}

/* ── Table of contents sidebar ───────────────────────── */
.legal-toc {
  position: sticky;
  top: 100px;
  min-width: 0;
}

.legal-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc ol li a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--rev-text-light);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--rev-radius-sm);
  transition: all var(--rev-dur) var(--rev-ease);
  line-height: 1.4;
}

.legal-toc ol li a:hover {
  background: var(--rev-blue-50);
  color: var(--rev-blue);
}

/* ── Legal body typography ───────────────────────────── */
.legal-body {
  max-width: 760px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-body h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  color: var(--rev-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 56px 0 16px;
  padding-top: 56px;
  border-top: 1px solid var(--rev-border);
}

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

.legal-body h3 {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--rev-text);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 36px 0 12px;
}

.legal-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--rev-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 28px 0 10px;
}

.legal-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--rev-text-body);
  margin: 0 0 16px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 0;
  margin: 0 0 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-body li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--rev-text-body);
  padding-left: 24px;
  position: relative;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rev-blue);
}

.legal-body strong {
  font-weight: 700;
  color: var(--rev-text);
}

.legal-body a {
  color: var(--rev-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover { opacity: 0.75; }

/* ── Legal table (CCPA page) ─────────────────────────── */
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border-radius: 12px;
  border: 1px solid var(--rev-blue-100);
}

.legal-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table th {
  background: var(--rev-blue-25);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  border-bottom: 1px solid var(--rev-blue-100);
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rev-blue-100);
  line-height: 1.5;
  color: var(--rev-text-body);
  vertical-align: top;
}

.legal-table tbody tr:last-child td { border-bottom: none; }

/* ── Responsive overrides ────────────────────────────── */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rev-border);
    margin-bottom: 8px;
  }
}

@media (max-width: 720px) {
  .hero-legal {
    margin: 0 12px;
    border-radius: 0;
  }

  .section {
    margin: 16px 12px;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  body { padding-top: 0 !important; }

  .hero-legal { margin-top: 78px !important; }
}

@media (max-width: 480px) {
  .hero-legal {
    margin: 78px 8px 0 !important;
    border-radius: 0 !important;
    padding: 60px 20px !important;
  }

  .section {
    margin: 12px 8px !important;
    border-radius: 0 !important;
  }

  .section-pad {
    padding: 32px 20px !important;
  }

  .legal-body h2 {
    font-size: 20px !important;
  }
}
