/* discord-legal — static legal pages.
 *
 * One stylesheet shared by all three pages. No framework, no build step,
 * no animation: system font stack, a single accent colour, and a
 * comfortable measure for reading.
 */

:root {
  --bg: #0e1014;
  --bg-elevated: #161a21;
  --bg-sunken: #0a0c0f;
  --border: #262c37;
  --border-strong: #364152;

  --text: #e6e9ef;
  --text-muted: #a2abbb;
  --text-faint: #78839a;

  --accent: #8b9cff;
  --accent-dim: #6b7ce0;

  --measure: 68ch;
  --radius: 10px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  /* Subtle, static top gradient. Purely decorative. */
  background-image: linear-gradient(180deg, #12161d 0, var(--bg) 320px);
  background-repeat: no-repeat;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding: 3rem 0 4rem;
}

.doc {
  max-width: var(--measure);
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunken);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.925rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 650;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  max-width: var(--measure);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

li > ul,
li > ol {
  margin-top: 0.4rem;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dim);
}

strong {
  font-weight: 650;
  color: #f2f4f8;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: #cdd4e2;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---------- Home page ---------- */

.hero {
  padding: 4rem 0 2rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.updated {
  font-size: 0.9rem;
  color: var(--text-faint);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  max-width: none;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.card h2 {
  /* Cards are not document sections — no divider rule. */
  border: 0;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.15rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  flex: 1 1 auto;
}

.card .card-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.card .card-link::after {
  content: " \2192";
}

/* ---------- Closing summary block ---------- */

.summary {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
}

.summary dt {
  font-weight: 650;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.summary dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- Callout for placeholders ---------- */

.note {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-dim);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  max-width: var(--measure);
}

.note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.note strong {
  color: var(--text);
}

/* ---------- Placeholder tokens ---------- */

.ph {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #ffd7a8;
  background: rgba(255, 183, 77, 0.1);
  border: 1px dashed rgba(255, 183, 77, 0.45);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

/* ---------- Table of contents ---------- */

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}

.toc h2 {
  border: 0;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.95rem;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  padding: 1.75rem 0 2.25rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

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

.site-footer a:hover {
  color: var(--accent);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 40rem) {
  body {
    font-size: 0.975rem;
  }

  main {
    padding: 2rem 0 3rem;
  }

  .hero {
    padding: 2.75rem 0 1.5rem;
  }

  .toc ol {
    columns: 1;
  }

  .site-header .wrap,
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* No animations are defined; this is here so that adding one later
     has an obvious place to respect the preference. */
  * {
    transition: none !important;
  }
}
