/* ═══════════════════════════════════════════════════════════════════════
   VOL8HUB — Legal & Static Page Styles
   Applies to: disclaimer.html, tos.html, privacy.html, about.html
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── PAGE HERO ──────────────────────────────────────────────────────── */
.legal-hero {
  background: var(--navy);
  padding: 4.5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,76,129,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,76,129,0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-pan 20s linear infinite;
}
@keyframes grid-pan {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
.legal-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
}
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.legal-hero-meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ─── LEGAL BODY ─────────────────────────────────────────────────────── */
.legal-body {
  background: var(--off-white);
  padding: 3rem 2rem 5rem;
}
.legal-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.25rem;
}

/* ─── CONTENT CARD ───────────────────────────────────────────────────── */
.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

/* Section heading inside card */
.legal-card h2 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-1);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.legal-card h3 {
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-1);
  margin: 1.25rem 0 0.5rem;
}
.legal-card h3:first-child { margin-top: 0; }

.legal-card p {
  font-size: 0.9rem; color: var(--text-2);
  line-height: 1.75; margin-bottom: 0.75rem;
}
.legal-card p:last-child { margin-bottom: 0; }

.legal-card ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.legal-card ul li {
  font-size: 0.9rem; color: var(--text-2);
  line-height: 1.7;
  padding-left: 1.1rem; position: relative;
}
.legal-card ul li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--blue-light); font-size: 0.8rem;
}
.legal-card ul li strong { color: var(--text-1); }

/* Numbered sections (TOS) */
.legal-card .section-num {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); display: block;
  margin-bottom: 0.25rem;
}

/* Warning / responsibility callout */
.legal-callout {
  background: rgba(15,76,129,0.05);
  border: 1px solid rgba(15,76,129,0.15);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin: 0.75rem 0;
}
.legal-callout p {
  font-size: 0.88rem; color: var(--text-1);
  line-height: 1.65; margin: 0;
  font-weight: 500;
}

/* Contact line */
.legal-contact {
  font-size: 0.9rem; color: var(--text-2); line-height: 1.7;
}
.legal-contact a {
  color: var(--blue); text-decoration: none; font-weight: 500;
}
.legal-contact a:hover { text-decoration: underline; }

/* Data table (privacy) */
.data-table {
  width: 100%; border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.88rem;
}
.data-table th {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 0.6rem 0.75rem;
  color: var(--text-2); line-height: 1.55;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }

/* ─── ABOUT PAGE SPECIFICS ───────────────────────────────────────────── */
.about-sources {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin: 0.75rem 0;
}
.source-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.source-badge {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 4px;
  flex-shrink: 0; margin-top: 1px;
}
.source-badge.rtp  { background: var(--blue-pale); color: var(--blue); border: 1px solid var(--blue-light); }
.source-badge.sub  { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(180,83,9,0.25); }
.source-badge.pt   { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.source-text { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; }
.source-text strong { color: var(--text-1); }

/* Not official warning */
.not-official {
  background: var(--amber-bg);
  border: 1px solid rgba(180,83,9,0.2);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin: 0.75rem 0;
}
.not-official p {
  font-size: 0.88rem; color: #7C3D12;
  line-height: 1.65; margin: 0; font-weight: 500;
}

/* About CTA block */
.about-cta {
  background: var(--navy);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}
.about-cta h2 {
  font-size: 1.15rem; font-weight: 700;
  color: #fff; margin-bottom: 0.5rem;
}
.about-cta p {
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem; line-height: 1.65;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .legal-body { padding: 1.75rem 1rem 4rem; }
  .legal-card  { padding: 1.25rem; }
  .data-table th, .data-table td { padding: 0.5rem; font-size: 0.82rem; }
  .about-cta { padding: 1.5rem; }
}
