/* Shared styles for Thor legal pages */
:root {
  --bg: #0A0A0A;
  --surface: #111318;
  --surface-2: #15181F;
  --border: #1E2535;
  --text: #FFFFFF;
  --text-dim: #8A9BB0;
  --text-faint: #566576;
  --accent: #2D7EF8;
  --accent-hover: #4A91FF;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--accent-hover); }

.container { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ====== NAV (matches landing) ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: #fff;
}
.logo-mark { width: 26px; height: 26px; display: grid; place-items: center; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ====== PAGE HEADER ====== */
.legal-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.legal-header h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
}
.legal-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-meta span strong {
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 6px;
}

/* ====== BODY CONTENT ====== */
.legal-body {
  padding-bottom: 120px;
}
.legal-body h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 56px;
  margin-bottom: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-body p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-body p strong,
.legal-body li strong {
  color: var(--text);
  font-weight: 600;
}
.legal-body ul {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
}
.legal-body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.legal-body .callout {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 20px 0 24px;
}
.legal-body .callout p { margin-bottom: 0; color: var(--text-dim); }
.legal-body .callout strong { color: #fff; }

/* ====== CROSS-LINK BANNER ====== */
.cross-link {
  margin-top: 60px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cross-link .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.cross-link .title-row {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}
.cross-link a.btn { text-decoration: none; }

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
}
.footer-inner a { color: var(--text-faint); }
.footer-inner a:hover { color: var(--text-dim); }
.footer-inner .links { display: flex; gap: 28px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 700px) {
  .container, .container-wide { padding: 0 22px; }
  .legal-header { padding: 56px 0 32px; margin-bottom: 40px; }
  .legal-body h2 { font-size: 21px; flex-direction: column; gap: 4px; }
  .cross-link { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 14px; }
}
