/* Victos Digital legal pages — shared design.
   Fonts are self-hosted (no requests to Google or other third parties). */
@font-face { font-family: "Outfit"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("/fonts/outfit-variable.woff2") format("woff2"); }

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --line: #1a2133;
  --text: #e8ecf4;
  --body: #c3cad8;   /* body copy: lighter than the marketing grey for long legal reading (contrast ≈ 11:1) */
  --muted: #8a94a8;
  --accent: #3dd9eb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Outfit", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.7; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; height: 69px; background: rgba(10, 14, 23, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--text); text-decoration: none; }
.brand-name { font-weight: 500; font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-by { font-weight: 300; font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: #aeb6c6; text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .btn { background: var(--accent); color: var(--bg); font-weight: 500; padding: 9px 18px; border-radius: 8px; }
.nav .btn:hover { color: var(--bg); filter: brightness(1.08); }

/* Main */
main { max-width: 760px; margin: 0 auto; padding: 74px 24px 83px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 15px; font-weight: 300; margin: 0 0 28px; }
.intro { color: var(--body); font-size: 17px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.actions a, .actions button { font: inherit; font-size: 14px; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; }
.actions a:hover, .actions button:hover { border-color: var(--accent); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 0 0 48px; }
.toc h2 { margin: 0 0 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; font-size: 15px; line-height: 1.9; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--accent); }

section { padding-top: 8px; }
section h2 { font-size: 18px; font-weight: 500; color: var(--text); margin: 40px 0 10px; }
section h3 { font-size: 16px; font-weight: 500; color: var(--text); margin: 24px 0 6px; }
p, li { color: var(--body); font-weight: 400; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--accent); }
.back { margin-top: 48px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: #aeb6c6; text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .brand-by, .nav .home { display: none; }
  .toc ol { columns: 1; }
  main { padding-top: 48px; }
}

/* Print / "Save as PDF": plain, light, full text */
@media print {
  :root { --text: #000; --body: #111; --muted: #444; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .actions, .toc, .skip, .back, .site-footer nav { display: none !important; }
  main { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  li::marker { color: #000; }
  section { break-inside: auto; }
  h2 { break-after: avoid; }
  .site-footer { border-top: 1px solid #999; }
  .site-footer .wrap { color: #444; padding: 12px 0 0; }
}
