/* legal.css — shared styles for /privacy, /terms, /cookies, /contact */

:root { --red: #cc0000; --red-hot: #ff2b2b; --ink: #0a0d12; }
html, body { background: #ffffff; }
body { font-family: Roboto, sans-serif; color: #0a0d12; }
.mono { font-family: 'JetBrains Mono', monospace; }
.headline { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
.condensed-caps {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(10,13,18,0.55);
}
.label-red { color: #cc0000; }

/* Panel + HUD ticks */
.panel { background: #ffffff; border: 1px solid rgba(10,13,18,0.10); position: relative; }
.tick { position: absolute; width: 14px; height: 14px; border-color: #cc0000; border-style: solid; border-width: 0; pointer-events: none; }
.tick.tl { top:-1px; left:-1px; border-top-width:2px; border-left-width:2px; }
.tick.tr { top:-1px; right:-1px; border-top-width:2px; border-right-width:2px; }
.tick.bl { bottom:-1px; left:-1px; border-bottom-width:2px; border-left-width:2px; }
.tick.br { bottom:-1px; right:-1px; border-bottom-width:2px; border-right-width:2px; }

/* Buttons */
.btn-red {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #e40000, #a30000);
  box-shadow: 0 10px 40px rgba(204,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  color: white;
  transition: all .3s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-red::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left .6s;
}
.btn-red:hover::before { left: 140%; }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 20px 60px rgba(204,0,0,0.55); }

/* Hero strip */
.hero-strip {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(204,0,0,0.10) 0%, transparent 60%),
    #ffffff;
  border-bottom: 1px solid rgba(10,13,18,0.08);
  overflow: hidden;
}
.hero-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,13,18,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,13,18,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 10%, transparent 80%);
  pointer-events: none;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ LEGAL ARTICLE TYPOGRAPHY ============ */
.legal-body {
  font-family: 'Roboto', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(10,13,18,0.82);
}
.legal-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: #0a0d12;
  margin-top: 56px;
  margin-bottom: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(10,13,18,0.10);
  position: relative;
  scroll-margin-top: 100px;
}
.legal-body h2::before {
  content: counter(legal-h2, decimal-leading-zero) ' /';
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #cc0000;
  margin-bottom: 8px;
  font-weight: 500;
}
.legal-body { counter-reset: legal-h2; }
.legal-body h2 { counter-increment: legal-h2; }
.legal-body h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.legal-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #0a0d12;
  margin-top: 28px;
  margin-bottom: 10px;
  scroll-margin-top: 100px;
}
.legal-body p { margin-bottom: 14px; }
.legal-body a { color: #cc0000; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-body a:hover { color: #a30000; }
.legal-body ul, .legal-body ol { margin: 12px 0 18px 0; padding-left: 24px; }
.legal-body ul li, .legal-body ol li { margin-bottom: 8px; }
.legal-body ul li::marker { color: #cc0000; }
.legal-body ol li::marker { color: rgba(10,13,18,0.5); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.legal-body strong { color: #0a0d12; font-weight: 600; }
.legal-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: rgba(10,13,18,0.05);
  padding: 1px 6px;
  border-radius: 0;
  color: #0a0d12;
}
.legal-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: rgba(204,0,0,0.04);
  border-left: 3px solid #cc0000;
  font-size: 14.5px;
  color: rgba(10,13,18,0.75);
}
.legal-body blockquote p:last-child { margin-bottom: 0; }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
}
.legal-body table th,
.legal-body table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(10,13,18,0.08);
  vertical-align: top;
}
.legal-body table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10,13,18,0.55);
  font-weight: 500;
  background: rgba(10,13,18,0.025);
}
.legal-body table tbody tr:hover td { background: rgba(10,13,18,0.015); }
.legal-body .definition {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cc0000;
  font-weight: 500;
}

/* TOC */
.toc {
  position: sticky;
  top: 100px;
  font-size: 13px;
}
.toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #cc0000;
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: rgba(10,13,18,0.65);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all 0.15s;
  line-height: 1.4;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(10,13,18,0.35);
  flex-shrink: 0;
}
.toc a:hover {
  color: #0a0d12;
  border-left-color: rgba(204,0,0,0.3);
}
.toc a.active {
  color: #cc0000;
  border-left-color: #cc0000;
}
.toc a.active::before { color: #cc0000; }

/* Meta strip (last updated, etc) */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(10,13,18,0.10);
  border-bottom: 1px solid rgba(10,13,18,0.10);
  margin-bottom: 40px;
}
.meta-strip > div { flex: 0 1 auto; }
.meta-strip .label { margin-bottom: 4px; }
.meta-strip .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0a0d12;
}
.meta-strip .value.mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; }

/* Page-cross links */
.cross-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 60px;
}
@media (min-width: 768px) {
  .cross-links { grid-template-columns: repeat(2, 1fr); }
}
.cross-link {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 26px;
  border: 1px solid rgba(10,13,18,0.10);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
}
.cross-link:hover {
  border-color: #cc0000;
  background: rgba(204,0,0,0.02);
}
.cross-link .ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(204,0,0,0.4);
  background: rgba(204,0,0,0.05);
  display: flex; align-items: center; justify-content: center;
}
.cross-link .ico svg { width: 16px; height: 16px; color: #cc0000; }
.cross-link .arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 16px; height: 16px;
  color: rgba(10,13,18,0.3);
  transition: all 0.2s;
}
.cross-link:hover .arrow { color: #cc0000; transform: translate(2px, -2px); }
.cross-link .crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(10,13,18,0.5);
  margin-bottom: 4px;
}
.cross-link .title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; color: #0a0d12; }
.cross-link .desc { font-size: 13px; color: rgba(10,13,18,0.6); margin-top: 4px; line-height: 1.5; }
