/* Yema, the legal pages (landing/build.mjs, from docs/legal/): the landing's head and footer (site.css) around one
   column of text that reads well on a phone. The DS tokens, light only. Tables become one card per row on a phone,
   each cell with its column's name (data-label), so nothing scrolls sideways. */

.lg{padding:28px 0 72px}
.lg-wrap{max-width:820px}

/* The four pages, as the app's soft buttons: the one you are on, filled. */
.lg-pages{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.lg-pages a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:9999px;background:var(--surface-raised);box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink);font:700 14px/20px var(--font-sans);text-decoration:none}
.lg-pages a:hover{color:var(--berry)}
.lg-pages a[aria-current="page"]{background:var(--berry-soft);box-shadow:none;color:var(--berry)}

.lg-doc{font-size:17px;line-height:27px;color:var(--ink);text-wrap:pretty}
.lg-head{margin:0 0 20px}
.lg-head .lp-kicker{margin:0 0 10px}
.lg-doc h1{margin:0;font-family:var(--font-display);font-weight:400;font-size:clamp(32px,5vw,50px);line-height:1.1;letter-spacing:-.01em;text-wrap:balance}
.lg-doc h2{margin:44px 0 12px;padding-top:28px;border-top:1px solid var(--line);font-size:24px;line-height:31px;font-weight:700;scroll-margin-top:calc(var(--head) + 12px)}
.lg-doc h3{margin:28px 0 8px;font-size:19px;line-height:26px;font-weight:700;scroll-margin-top:calc(var(--head) + 12px)}
.lg-doc p{margin:0 0 14px}
.lg-doc .lg-meta{margin:0 0 22px;padding:14px 18px;border-radius:var(--radius-lg);background:var(--surface-sunken);font-size:15px;line-height:23px;color:var(--ink-muted)}
.lg-doc .lg-meta strong{color:var(--ink)}
.lg-doc ul,.lg-doc ol{margin:0 0 16px;padding-left:24px}
.lg-doc li{margin:0 0 8px}
.lg-doc li > ul,.lg-doc li > ol{margin:8px 0 0}
.lg-doc li::marker{color:var(--berry);font-weight:700}
.lg-doc a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:2px;overflow-wrap:anywhere}
.lg-doc strong{font-weight:700}
.lg-doc hr{margin:44px 0 0;border:0;border-top:2px solid var(--line)}
.lg-doc hr + h2{border-top:0}
.lg-doc blockquote{margin:0 0 16px;padding:18px 20px;border-radius:var(--radius-lg);background:var(--berry-soft)}
.lg-doc blockquote p:last-child{margin-bottom:0}

/* The contents: two columns where there is room. */
.lg-doc .lg-toc{margin:0 0 8px;padding:0;list-style:none;columns:2 260px;column-gap:28px}
.lg-doc .lg-toc li{margin:0;break-inside:avoid}
.lg-doc .lg-toc a{display:block;padding:5px 0;color:var(--ink);text-decoration:none;font-weight:600;font-size:16px;line-height:22px}
.lg-doc .lg-toc a:hover{color:var(--berry)}
.lg-doc ol.lg-toc{counter-reset:toc}
.lg-doc ol.lg-toc li{counter-increment:toc}
.lg-doc ol.lg-toc a::before{content:counter(toc) ". ";color:var(--berry)}

/* Tables: a card with lines; the first column is the row's name. */
.lg-table{margin:0 0 18px;border-radius:var(--radius-lg);background:var(--surface-raised);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.lg-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:22px}
.lg-table th,.lg-table td{padding:12px 14px;text-align:left;vertical-align:top}
.lg-table th{background:var(--surface-sunken);font-weight:700}
.lg-table tbody tr + tr td{border-top:1px solid var(--line)}
.lg-table td:first-child{font-weight:600}

@media (max-width:719px){
.lg{padding:20px 0 56px}
.lg-pages{margin-bottom:22px}
.lg-pages a{min-height:36px;padding:0 12px;font-size:13px}
.lg-doc{font-size:16px;line-height:25px}
.lg-doc h2{margin-top:36px;padding-top:22px;font-size:21px;line-height:27px}
.lg-doc h3{font-size:17px;line-height:24px}
.lg-doc ul,.lg-doc ol{padding-left:20px}
.lg-table{background:transparent;box-shadow:none;border-radius:0;overflow:visible}
.lg-table table,.lg-table tbody,.lg-table tr,.lg-table td{display:block;width:auto}
.lg-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}
.lg-table tr{margin:0 0 10px;padding:4px 0;border-radius:var(--radius-md);background:var(--surface-raised);box-shadow:inset 0 0 0 1px var(--line)}
.lg-table tbody tr + tr td{border-top:0}
.lg-table td{padding:8px 14px}
.lg-table td + td{border-top:1px solid var(--line)}
.lg-table td[data-label]::before{content:attr(data-label);display:block;margin:0 0 2px;font-size:12px;line-height:16px;font-weight:700;letter-spacing:.02em;color:var(--ink-muted)}
.lg-table td:first-child::before{display:none}
.lg-table td:first-child{font-size:16px;line-height:22px;font-weight:700}
}
