/* AceStat Legal Pages — Dark Minimal Design */

:root {
  --bg:        #121212;
  --surface:   #1E1E1E;
  --surface2:  #2C2C2C;
  --border:    #2C2C2C;
  --accent:    #CCFF00;
  --accent-dim: rgba(204,255,0,.12);
  --accent-dim2: rgba(204,255,0,.06);
  --text:      #FFFFFF;
  --text-sec:  rgba(255,255,255,.6);
  --text-muted:rgba(255,255,255,.35);
  --error:     #CF6679;
  --error-dim: rgba(207,102,121,.12);
  --max:       820px;
  --r:         10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,18,18,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo img { height: 68px; display: block; }
.header-nav { margin-left: auto; display: flex; gap: 1.5rem; }
.header-nav a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: color .15s;
}
.header-nav a:hover,
.header-nav a[aria-current] { color: var(--accent); }

/* ── Page hero ── */
.page-hero {
  padding: 5rem 1.5rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero .eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.page-hero .lead {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .3rem .85rem;
}
.page-meta span + span::before {
  content: '·';
  margin-right: .5rem;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: var(--max);
  margin: 0 auto;
}

/* ── TOC ── */
.toc-wrap {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}
.toc-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .25rem .75rem;
}
.toc-grid a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: .875rem;
  padding: .2rem 0;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  transition: color .15s;
}
.toc-grid a:hover { color: var(--accent); }
.toc-grid a .num {
  font-size: .7rem;
  color: var(--text-muted);
  min-width: 1.2rem;
}

/* ── Main content ── */
main {
  max-width: var(--max);
  margin: 3.5rem auto 5rem;
  padding: 0 1.5rem;
}

/* ── Sections ── */
.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.section p {
  color: var(--text-sec);
  margin-bottom: .9rem;
}
.section p:last-child { margin-bottom: 0; }
.section p strong { color: var(--text); font-weight: 600; }
.section a { color: var(--accent); text-decoration: none; }
.section a:hover { text-decoration: underline; }

.section ul, .section ol {
  padding-left: 1.25rem;
  margin-bottom: .9rem;
  color: var(--text-sec);
}
.section li { margin-bottom: .35rem; }
.section li strong { color: var(--text); }

.section h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 .6rem;
}

/* ── Callout boxes ── */
.callout {
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .15rem; }
.callout-body { font-size: .875rem; color: var(--text-sec); line-height: 1.65; }
.callout-body strong { color: var(--text); display: block; margin-bottom: .2rem; }
.callout-body a { color: var(--accent); }

.callout-accent  { background: var(--accent-dim);  border: 1px solid rgba(204,255,0,.2); }
.callout-warning { background: var(--error-dim);   border: 1px solid rgba(207,102,121,.2); }
.callout-neutral { background: var(--surface);     border: 1px solid var(--border); }

/* ── Data table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .875rem;
}
.data-table th {
  background: var(--surface2);
  color: var(--text-sec);
  padding: .65rem 1rem;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.data-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-sec);
  vertical-align: top;
}
.data-table td strong { color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Badge ── */
.badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .12rem .5rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .05em;
  vertical-align: middle;
}
.badge-sensitive { background: rgba(207,102,121,.2); color: var(--error); }
.badge-optional  { background: var(--accent-dim); color: var(--accent); }

/* ── Index page ── */
.index-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}
.index-hero .eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.index-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.index-hero h1 span { color: var(--accent); }
.index-hero p {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 480px;
  line-height: 1.65;
}

.doc-cards {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.doc-card:hover {
  border-color: rgba(204,255,0,.35);
  background: var(--accent-dim2);
}
.doc-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: .25rem;
}
.doc-card h2 { font-size: 1.05rem; font-weight: 700; }
.doc-card p  { font-size: .875rem; color: var(--text-sec); line-height: 1.55; flex: 1; }
.doc-card .card-link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .03em;
  margin-top: .25rem;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: .78rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: .78rem; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-hero, .toc-wrap, main { padding-left: 1.1rem; padding-right: 1.1rem; }
  .toc-grid { grid-template-columns: 1fr; }
  .data-table { font-size: .8rem; }
  .data-table th, .data-table td { padding: .5rem .75rem; }
  .header-nav { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
