/* Terms of Service and Privacy Policy (2026-10-14). Matched to css/home.css, css/nexus.css,
   css/pages.css and css/blog.css. No italic face. */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(../fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces.woff2) format('woff2'); }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0b0a09; --bg-2: #110f0d; --surface: #161311;
  --line: rgba(255,236,214,.08); --line-2: rgba(255,236,214,.14); --field-line: #706659;
  --text: #f5efe6; --text-2: #c9c0b4; --text-3: #968c80;
  --ember: #ff9d1a; --ember-2: #ff6a00; --ember-line: rgba(255,157,26,.38);
  --radius-lg: 22px; --maxw: 1180px;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --surface-2: #1c1815;
}
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { background: var(--bg); color: var(--text-2); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus and skip link */
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ember); color: #1a0e00; font-weight: 600; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Embers */
.embers { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ember { position: absolute; bottom: -10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px 1px rgba(255,157,26,.6); opacity: 0; animation: rise linear infinite; }
.ember.spark { background: #ffd08a; box-shadow: 0 0 12px 3px rgba(255,140,20,.75); }
@keyframes rise { 0% { transform: translate(0,0); opacity: 0; } 12% { opacity: .8; } 60% { transform: translate(calc(var(--drift, 24px) * .55), -60vh); } 85% { opacity: .25; } 100% { transform: translate(var(--drift, 24px), -100vh); opacity: 0; } }
.embers::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -120px; height: 260px; background: radial-gradient(60% 100% at 50% 100%, rgba(255,106,0,.16), rgba(255,106,0,.05) 55%, transparent 75%); animation: smolder 7s ease-in-out infinite alternate; }
@keyframes smolder { from { opacity: .7; } to { opacity: 1; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 2rem; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.brand span { font-weight: 700; letter-spacing: .22em; font-size: .95rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; font-size: .95rem; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--text); box-shadow: 0 2px 0 var(--ember); }
.menu-btn { display: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--text); background: none; border: 1px solid var(--line-2); border-radius: 9px; padding: .45rem .9rem; cursor: pointer; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: .98rem; font-family: var(--sans); border: 0; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-primary { color: #1a0e00; background: var(--ember); }
.btn-primary:hover { background: #ffb04a; }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ember-line); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; border-radius: 9px; }
.link { color: var(--ember); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ember-line); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-thickness .2s, text-decoration-color .2s; }
.link:hover, .link:focus-visible { text-decoration-color: var(--ember); text-decoration-thickness: 3px; }

/* Type */
h1, h2, h3 { color: var(--text); font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.25; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.26rem); max-width: 52ch; }
.dateline { font-size: .95rem; color: var(--text-3); }
.dateline strong { color: var(--ember); font-weight: 600; }
.copytag { display: inline-block; font: .78rem/1.4 var(--sans); font-style: normal; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: 6px; padding: 2px 8px; vertical-align: middle; }

.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { margin-bottom: 1rem; }
.section-sub { font-size: 1.1rem; max-width: 60ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .92rem; color: var(--text-3); position: relative; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .fl { color: var(--text); font-family: var(--serif); font-size: 1.05rem; margin-bottom: .8rem; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer .tag { max-width: 38ch; margin-top: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 24px; }



/* Legal pages */
.eyebrow { font: 600 .9rem/1.4 var(--sans); color: var(--ember); margin-bottom: .8rem; }
.legal-head { padding: 72px 0 8px; }
.legal-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 1.6rem; background: var(--bg-2); }
.legal-switch a { font: 600 .86rem/1 var(--sans); color: var(--text-2); padding: .6rem 1rem; border-radius: 999px; }
.legal-switch a:hover { color: var(--text); }
.legal-switch a[aria-current] { background: var(--ember); color: #1a0e00; }
.legal-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .9rem; }
.legal-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .92rem; color: var(--text-3); }
.legal-meta strong { color: var(--text-2); font-weight: 600; }
.legal-intro { position: relative; margin-top: 30px; max-width: 820px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px 28px; }
.legal-intro::before { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--ember), transparent); }
.legal-intro .intro-title { font-family: var(--serif); color: var(--text); font-size: 1.4rem; line-height: 1.3; margin-bottom: .45rem; }
.legal-intro a, .legal-body a, .legal-foot a { color: var(--ember); text-decoration: underline; text-decoration-color: var(--ember-line); text-underline-offset: 4px; }
.legal-intro a:hover, .legal-body a:hover, .legal-foot a:hover, .legal-body a:focus-visible { text-decoration-color: var(--ember); text-decoration-thickness: 2px; }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 780px); gap: 64px; padding-top: 44px; padding-bottom: 88px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; font-size: .9rem; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.toc summary { display: none; }
.toc-label { font: 600 .78rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .8rem; }
.toc ol { list-style: none; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: .34rem 0 .34rem 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--ember); }
.toc .toc-part { font: 600 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ember); padding: 1rem 0 .3rem 14px; }
.toc .toc-part a { padding: 0; margin: 0; border: 0; color: inherit; }

.legal-body { font-size: 1.04rem; line-height: 1.76; }
.legal-body > * + * { margin-top: 1em; }
.legal-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.22; margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.legal-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h2 + * { margin-top: .8rem; }
.legal-body h2 .num { color: var(--ember); margin-right: .45rem; font-variant-numeric: tabular-nums; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul { padding-left: 1.3em; }
.legal-body li + li { margin-top: .5em; }
.legal-body li::marker { color: var(--ember); }
.part { margin-top: 3.6rem; padding: 22px 26px; border: 1px solid var(--ember-line); border-radius: 14px; background: linear-gradient(135deg, rgba(255,157,26,.08), rgba(255,157,26,0) 60%), var(--surface); }
.legal-body > .part:first-child { margin-top: 0; }
.part-label { font: 600 .8rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.legal-body .part h2 { margin: .25rem 0 0; padding: 0; border: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.legal-body .part + h2 { margin-top: 2.2rem; padding-top: 0; border-top: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; }
.legal-body table { border-collapse: collapse; width: 100%; font-size: .96rem; line-height: 1.6; }
.legal-body th, .legal-body td { text-align: left; padding: .75rem 1rem; vertical-align: top; }
.legal-body thead th { background: var(--surface-2); color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.legal-body tbody tr + tr td { border-top: 1px solid var(--line); }
.legal-body td:first-child { color: var(--text); width: 34%; }
.legal-foot { margin-top: 3.4rem; padding: 24px 28px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); }
.legal-body .legal-foot h2 { font-size: 1.35rem; margin: 0 0 .4rem; padding: 0; border: 0; }
.legal-foot p + p { margin-top: .6rem; }
.to-top { display: inline-block; margin-top: 1.6rem; font-size: .92rem; color: var(--text-3); }
.to-top:hover { color: var(--text); }

@media (max-width: 1023px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .toc { position: static; max-height: none; overflow: visible; padding: 0; }
  .toc details { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
  .toc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--text); }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .toc details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .toc details[open] summary { border-bottom: 1px solid var(--line); }
  .toc .toc-label { display: none; }
  .toc ol { margin: 10px 18px 14px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav .wrap { gap: 1rem; flex-wrap: wrap; height: auto; min-height: var(--nav-h); }
  html.no-js .nav-links { order: 3; width: 100%; gap: 1.4rem; padding: 0 0 14px; }
  html:not(.no-js) .nav .wrap { height: var(--nav-h); }
  html:not(.no-js) .menu-btn { display: inline-block; }
  html:not(.no-js) .nav-links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  html:not(.no-js) .nav-links.open { display: flex; }
  html:not(.no-js) .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  html:not(.no-js) .nav-links a[aria-current] { box-shadow: none; color: var(--ember); }
  .legal-head { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .legal-intro, .legal-foot { padding: 20px 18px; }
  .legal-intro::before { left: 18px; right: 18px; }
  .part { padding: 18px 18px; }
  .legal-body { font-size: 1rem; }
  .legal-body td:first-child { width: 38%; }
  .legal-body th, .legal-body td { padding: .65rem .75rem; }
  .legal-switch a { padding: .55rem .8rem; }
}
@media (max-width: 420px) { .brand span { letter-spacing: .14em; font-size: .85rem; } .brand img { height: 32px; } .nav .wrap { gap: .6rem; } }
@media (prefers-reduced-motion: reduce) { .ember { display: none; } .embers::after { animation: none; } .btn, .link, .toc summary::after { transition: none; } }

/* Footer social links (Facebook, LinkedIn) */
.footer .social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer .social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-2); }
.footer .social a:hover { color: var(--text); border-color: var(--ember-line); }
.footer .social svg { width: 18px; height: 18px; }
