/* /terms and /privacy in the website's theme (owner, Oct 3 2026): page black #050506, white text, yellow #ffff06,
   hairlines (white at 15%) instead of cards and grey boxes. Loaded only by templates/legal.html, after cloud.css. */
body.a-legal {
  --page: #050506; --ink: #fff; --text: #fff; --muted: rgba(255, 255, 255, .68); --line: rgba(255, 255, 255, .15);
  --sunk: transparent; --sunk-2: transparent;
  background: #050506; color: #fff;
}
body.a-legal ::selection { background: #ffff06; color: #050506; }
body.a-legal a { color: #fff; text-decoration-color: #ffff06; text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.a-legal :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body.a-legal .skip { background: #ffff06; color: #050506; }

/* top bar: the site's black bar, plain links, the account link in yellow */
body.a-legal .topbar { background: #050506; border-bottom: 1px solid var(--line); }
body.a-legal .lockup { color: #fff; }
body.a-legal .lockup .logo { background: #ffff06; color: #050506; }
body.a-legal .topnav a { min-height: 44px; border-radius: 0; color: rgba(255, 255, 255, .72); text-decoration: none; }
body.a-legal .topnav a:hover, body.a-legal .topnav a[aria-current] { background: none; color: #fff; box-shadow: inset 0 -2px 0 #ffff06; }
body.a-legal .topnav a.topnav-cta { border-radius: 10px; background: #ffff06; color: #050506; box-shadow: none; }

/* the document: no card, one readable column beside the jump list */
body.a-legal .legal-main { max-width: 1240px; }
.lgs-head { max-width: 980px; padding: clamp(24px, 4vw, 56px) 0 clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.lgs-head h1, .lgs-h1 { margin: 0 0 16px; font: 800 clamp(38px, 5.4vw, 72px)/1.02 var(--font); letter-spacing: -.045em; color: #fff; }
.lgs-meta, .lgs-meta p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.lgs-meta strong { color: #fff; font-weight: 600; }
.lgs-also { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.lgs-draft { margin: 20px 0 0; padding: 14px 0 14px 16px; border-left: 3px solid #ffff06; color: #fff; }
.lgs-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.lgs-toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
.lgs-toc summary { display: flex; align-items: center; min-height: 44px; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.lgs-toc summary::-webkit-details-marker { display: none; }
.lgs-toc summary::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid #ffff06; border-bottom: 2px solid #ffff06; rotate: 45deg; translate: 0 -2px; }
.lgs-toc details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.lgs-toc ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lgs-toc a { display: flex; align-items: center; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.35; text-decoration: none; }
.lgs-toc a:hover { color: #fff; }
.lgs-top { margin: 48px 0 0; }
.lgs-top a { display: inline-flex; align-items: center; min-height: 44px; }

/* prose on black */
body.a-legal .prose { max-width: 74ch; color: rgba(255, 255, 255, .86); }
body.a-legal .prose h1, body.a-legal .prose h2, body.a-legal .prose h3, body.a-legal .prose strong, body.a-legal .prose li::marker { color: #fff; }
body.a-legal .prose h2 { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(22px, 2vw, 28px); scroll-margin-top: 20px; }
body.a-legal .prose h2:first-child { margin-top: 0; }
body.a-legal .prose blockquote { border-left: 3px solid #ffff06; border-radius: 0; background: none; color: var(--muted); }
body.a-legal .prose code { background: none; padding: 0; color: #fff; }
body.a-legal .prose th, body.a-legal .prose td { border: 0; border-bottom: 1px solid var(--line); }
body.a-legal .prose th { background: none; color: #fff; }
body.a-legal .prose table { font-size: 14.5px; }

/* the split-flap word on the placeholder page: black tiles, the last one yellow (the site's rule) */
body.a-legal .flap > span { background: #050506; color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
body.a-legal .flap > span:last-child { background: #ffff06; color: #050506; box-shadow: none; }

/* footer */
body.a-legal .foot { border-top: 1px solid var(--line); color: var(--muted); }
body.a-legal .foot a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }

.lgs-toc-h { display: flex; align-items: center; min-height: 44px; margin: 0; color: #fff; font-weight: 700; font-size: 15px; }
.lgs-toc-fold { display: none; }
.lgs-head h1 .tm, .lgs-h1 .tm { font-size: .32em; vertical-align: 1.6em; margin-left: .05em; }
body.a-legal .prose hr { display: none; }
body.a-legal .lgs-doc > h2:first-child, body.a-legal .lgs-doc > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 900px) {
  .lgs-grid { grid-template-columns: minmax(0, 1fr); }
  .lgs-toc { position: static; max-height: none; border-bottom: 1px solid var(--line); }
  .lgs-toc-h, .lgs-toc-wide { display: none; }
  .lgs-toc-fold { display: block; }
}
