:root {
  --bg: #08090c;
  --bg-elevated: #111319;
  --bg-panel: #161922;
  --border: rgba(201, 164, 92, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text: #edeae2;
  --text-muted: #b6b1a6;
  --gold: #c9a45c;
  --gold-bright: #e0bf7b;
  --gold-soft: rgba(201, 164, 92, 0.11);
  --warning-bg: rgba(201, 164, 92, 0.09);
  --radius: 10px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(201, 164, 92, 0.08), transparent 52%),
    linear-gradient(180deg, #08090c 0%, #0b0d12 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-bright);
  color: #08090c;
  font-weight: 700;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 6px;
}

a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #f3dba4;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.15rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.92);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-block: 1.15rem;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  background: var(--gold-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  border-color: var(--gold);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-weight: 600;
}

main {
  padding-block: 2rem 3.5rem;
}

.doc-hero {
  padding: 1.5rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.doc-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.24;
  color: var(--text);
}

.doc-meta {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.doc-lead {
  margin: 0.9rem 0 0;
  color: var(--text);
  max-width: 72ch;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.toc-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.toc-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
  list-style: none;
}

.toc-details summary::-webkit-details-marker {
  display: none;
}

.toc-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.toc-list {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.42rem;
  font-size: 0.92rem;
}

.toc-list a {
  text-decoration: none;
  color: var(--text-muted);
}

.toc-list a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.doc-article {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
}

.legal-section + .legal-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.35;
  color: var(--gold-bright);
}

.legal-section h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.02rem;
  color: var(--text);
}

.legal-section p {
  margin: 0 0 0.85rem;
  max-width: 72ch;
}

.legal-section ul,
.legal-section ol {
  margin: 0.35rem 0 0.95rem;
  padding-left: 1.3rem;
  max-width: 70ch;
}

.legal-section li + li {
  margin-top: 0.38rem;
}

.callout {
  margin: 1rem 0;
  padding: 0.95rem 1.05rem;
  background: var(--warning-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  max-width: 72ch;
}

.callout strong {
  color: var(--gold-bright);
}

.info-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

.info-table th,
.info-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.info-table th {
  background: var(--bg-panel);
  color: var(--gold-bright);
  font-weight: 600;
}

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

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hub-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: var(--gold-bright);
}

.hub-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.btn-link {
  display: inline-block;
  align-self: flex-start;
  padding: 0.52rem 0.95rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn-link:hover {
  background: rgba(201, 164, 92, 0.2);
}

.cross-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.94rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #06070a;
  padding-block: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  color: #f3dba4;
}

@media (min-width: 720px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .doc-hero,
  .doc-article {
    padding: 1.9rem 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 920px) {
  .layout-grid {
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 1.75rem;
  }

  .toc-box {
    position: sticky;
    top: 1.25rem;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  .site-header,
  .toc-box,
  .cross-links {
    display: none;
  }

  .doc-hero,
  .doc-article {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .legal-section h2,
  a {
    color: #111111;
  }
}

