:root {
  --bg: #070912;
  --panel: rgba(12, 16, 31, 0.88);
  --panel-soft: rgba(18, 23, 42, 0.78);
  --border: rgba(168, 181, 218, 0.18);
  --text: #f7f2e8;
  --muted: #aeb6cc;
  --gold: #e4b85f;
  --gold-light: #fff0bd;
  --green: #72d5a5;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(7, 9, 18, 0.32), rgba(7, 9, 18, 0.78)),
url("file:///Macintosh HD/Users/cb/Downloads/images-v2/chat-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: var(--font-ui);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(228, 184, 95, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  top: -190px;
  left: -130px;
}

body::after {
  right: -180px;
  bottom: -210px;
  width: 440px;
  height: 440px;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.container {
  width: min(1180px, calc(100% - 36px));
  max-width: none;
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  min-height: 66px;
  margin-bottom: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 30px;
  height: 30px;

  display: block;
  flex: 0 0 30px;
  object-fit: contain;

  filter:
    drop-shadow(
      0 0 13px rgba(228, 184, 95, 0.30)
    );
}

.nav-link {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(228, 184, 95, 0.36);
  border-radius: 11px;
  color: var(--gold-light);
  background: rgba(228, 184, 95, 0.05);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(228, 184, 95, 0.11);
}

.hero {
  max-width: 860px;
  margin: 0 auto 44px;
  text-align: center;
}

.kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 13px 0 15px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-shadow: 0 0 34px rgba(228, 184, 95, 0.12);
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 20px;
  padding: 7px 13px;
  border: 1px solid rgba(228, 184, 95, 0.28);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(228, 184, 95, 0.07);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.notice {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 17px 19px;
  border: 1px solid rgba(114, 213, 165, 0.17);
  border-radius: 14px;
  color: #c1c9db;
  background: rgba(114, 213, 165, 0.035);
  font-size: 0.9rem;
  line-height: 1.7;
}

.layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(8, 11, 22, 0.76);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(168, 181, 218, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}

.toc a:last-child {
  border-bottom: 0;
}

.toc a:hover {
  padding-left: 12px;
  color: var(--gold-light);
  background: rgba(228, 184, 95, 0.045);
}

main {
  min-width: 0;
}

.card {
  margin: 0 0 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(25, 31, 56, 0.78), rgba(9, 13, 27, 0.9));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.23);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card:target {
  border-color: rgba(228, 184, 95, 0.56);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.23),
    0 0 0 3px rgba(228, 184, 95, 0.07);
}

.card h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  color: #b9c1d3;
  font-size: 0.94rem;
  line-height: 1.78;
}

.card p:first-of-type {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 10px 0 17px;
  padding-left: 1.25rem;
}

.card li + li {
  margin-top: 8px;
}

.card li::marker {
  color: var(--gold);
}

.card strong {
  color: var(--gold-light);
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding: 20px 3px 0;
  border-top: 1px solid var(--border);
  color: #788298;
  font-size: 0.66rem;
  line-height: 1.6;
  text-align: left;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.footer a,
.footer a:visited {
  color: #aeb6c7;
  font-weight: 700;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--gold-light);
  text-decoration: none !important;
  text-shadow: 0 0 12px rgba(228, 184, 95, 0.3);
}

@media (max-width: 560px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 24px, 700px);
    padding-top: 10px;
  }

  .topbar {
    margin-bottom: 38px;
    padding-inline: 4px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  .toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 20px, 560px);
    padding-bottom: 48px;
  }

  .topbar {
    min-height: 60px;
    margin-bottom: 30px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

   .brand-mark {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .nav-link {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.73rem;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4rem);
  }

  .hero p {
    font-size: 0.91rem;
  }

  .notice {
    padding: 15px;
    font-size: 0.82rem;
  }

  .toc {
    grid-template-columns: 1fr;
    max-height: 290px;
    overflow-y: auto;
  }

  .card {
    padding: 21px 18px;
    border-radius: 17px;
  }

  .card p,
  .card li {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
