/* GroundZero Legal Pages — Shared Styles
   Matches app design: dark mode, gold accent, new-science font */

@import url("https://use.typekit.net/nyc8ipu.css");

:root {
  --bg: #09090B;
  --surface: #0E1019;
  --surface-hover: #141620;
  --text-primary: #ffffff;
  --text-secondary: #c4c9d4;
  --text-muted: #9aa4b2;
  --text-disabled: rgba(255, 255, 255, 0.5);
  --brand-gold: #F1410C;
  --brand-gold-hover: #ff5722;
  --brand-gold-dim: rgba(241, 65, 12, 0.15);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --font: "new-science", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 820px;
  --transition: 120ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--brand-gold) var(--bg);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: rgba(241, 65, 12, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold);
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Top Bar --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-logo {
  height: 36px;
  width: auto;
}

.topbar-nav {
  display: flex;
  gap: 24px;
}

.topbar-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--brand-gold);
}

/* --- Hero --- */
.hero {
  margin-top: 56px;
  padding: 64px 32px 48px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(241, 65, 12, 0.06) 0%, transparent 70%);
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.hero .effective-date {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* --- Content Container --- */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* --- Table of Contents --- */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.toc li {
  counter-increment: toc;
}

.toc li a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-gold);
  min-width: 20px;
}

.toc li a:hover {
  color: var(--text-primary);
}

/* --- Sections --- */
.section {
  margin-bottom: 40px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-gold);
  background: var(--brand-gold-dim);
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.section p {
  margin-bottom: 12px;
}

.section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--brand-gold);
  border-radius: 50%;
}

.section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.section .caps {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* --- Tables --- */
.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--line);
}

.legal-table th {
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
}

.legal-table td {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

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

.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Numbered sub-items --- */
.sub-item {
  margin-bottom: 12px;
}

.sub-item .num {
  color: var(--brand-gold);
  font-weight: 700;
  margin-right: 4px;
}

/* --- Info callout --- */
.callout {
  background: var(--surface);
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 13px;
}

/* --- Contact Card --- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 16px;
}

.contact-card p {
  margin-bottom: 6px;
  font-size: 13px;
}

.contact-card .email {
  color: var(--brand-gold);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.contact-card .email:hover {
  color: var(--brand-gold-hover);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}

.footer a {
  color: var(--brand-gold);
  text-decoration: none;
}
.footer a:hover {
  color: var(--brand-gold-hover);
}

/* --- Annex Header --- */
.annex-divider {
  margin: 60px 0 40px;
  padding: 32px 0;
  text-align: center;
  border-top: 2px solid var(--line-strong);
}

.annex-divider h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.annex-divider p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Links --- */
a {
  color: var(--brand-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--brand-gold-hover);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .content { padding: 0 20px 60px; }
  .toc ol { grid-template-columns: 1fr; }
  .topbar { padding: 0 20px; }
  .topbar-nav { gap: 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 20px 32px; }
  .topbar-nav a { font-size: 12px; }
  .legal-table th, .legal-table td { padding: 8px 12px; font-size: 12px; }
}
