/* Privacy Policy and Terms of Use: Read mode inside the Toybox world */

.legal .bar__nav { background: rgba(23, 19, 58, .7); }
.legal .bar__nav a[aria-current="page"] { background: var(--cream); color: var(--ink); box-shadow: 0 3px 0 var(--cream-lip); }

.lhead { position: relative; overflow: hidden; background: var(--sky); padding: 140px var(--gutter) 84px; }
.lhead--terms { background: var(--grass); }
.lhead__in { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.lhead h1 { font-size: clamp(52px, 8vw, 120px); }
.lhead__meta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 5px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: .95rem; box-shadow: 0 4px 0 rgba(23, 19, 58, .18); }
.chip--ink { background: var(--ink); color: var(--cream); }
.lhead .stoy { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: var(--w); min-width: 48px; height: auto; transform: rotate(var(--r)); pointer-events: none; }

.ldoc { max-width: 1180px; margin: 0 auto; padding: 64px var(--gutter) 120px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }

.toc { position: sticky; top: 92px; }
.toc h2 { font-size: 1.35rem; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 12px 5px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .96rem; line-height: 1.3; color: var(--ink-soft); transition: background .2s, color .2s; }
.toc a:hover { background: rgba(63, 169, 245, .14); color: var(--ink); }
.toc a.is-here { background: var(--ink); color: var(--cream); }

.prose { max-width: 70ch; font-size: 1.06rem; line-height: 1.7; color: var(--ink); }
.prose > section { scroll-margin-top: 96px; }
.prose > section + section { margin-top: 64px; }
.prose h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1; margin-bottom: 18px; }
.prose h3 { font-size: 1.4rem; line-height: 1.1; margin: 30px 0 8px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + .table, .prose .table + p { margin-top: 14px; }
.prose ul { margin: 0; padding-left: 1.3em; }
.prose li { padding-left: .2em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--sky); }
.prose strong { font-weight: 800; }
.prose a { color: #1A6FB0; font-weight: 800; }
.prose a:hover { color: var(--ink); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; background: rgba(31, 26, 77, .07); padding: .1em .35em; border-radius: 6px; }

.short { padding: 30px 34px 32px; border-radius: 32px; margin-bottom: 72px; }
.short h2 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 18px; }
.short ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.short li { position: relative; padding-left: 42px; }
.short li::before { content: ""; position: absolute; left: 0; top: .1em; width: 28px; height: 28px; background: url("../assets/toys/coin.svg") center / contain no-repeat; }
.short li + li { margin-top: 0; }

.table { overflow-x: auto; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 var(--cream-lip), 0 18px 30px rgba(31, 26, 77, .1); }
.table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; min-width: 560px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 18px; }
.table th { font-family: var(--display); font-weight: 800; font-size: 1.05rem; background: var(--ink); color: var(--cream); }
.table tr + tr td { border-top: 1px solid rgba(31, 26, 77, .1); }
.table td:first-child { font-weight: 800; white-space: nowrap; }

.note { margin-top: 18px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 201, 64, .28); font-size: .98rem; }

@media (max-width: 900px) {
  .ldoc { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .lhead { padding: 116px var(--gutter) 64px; }
  .short { padding: 24px 22px 26px; border-radius: 26px; }
}
