/*
  ABA Public Website — Privacy / Terms structural drafts (checkpoint G).
  Values from the approved Privacy / Terms desktop and mobile designs (sources: implementation/DESIGN-CONTRACT.txt);
  class names renamed only. Contents: sticky on desktop, collapsible (<details>) at <= 960px.
  Removed from public content: the boards' review badge, review notes, review highlight, reserved-topic tag, draft-status badge and the
  t5 contents-label suffix. Draft status is carried by the intro and pending prose.
  Not on the boards (functional): aria-current on the active contents entry, with a 2px bar on desktop and an underline in the
  collapsed mobile list (shape cues, not colour only).
*/
html { background: var(--aba-ground-legal); }
body.legal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--aba-ivory-100);
  background: radial-gradient(ellipse at 65% 0, rgba(185, 145, 86, .12), rgba(185, 145, 86, 0) 48%), var(--aba-ground-legal);
}
.legal a { color: #DFC69F; }
.legal a:hover { color: var(--aba-champagne-light); }

.legal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 6%; border-bottom: 1px solid rgba(174, 140, 85, .2); }
.legal-mark { display: block; width: 92px; line-height: 0; }
.legal-mark svg { width: 100%; height: auto; }
.legal .legal-back { display: flex; align-items: center; min-height: 44px; font-size: 10.5px; letter-spacing: .2em; font-weight: 500; color: #DDC199; text-decoration: none; }

.legal-wrap { flex: 1 0 auto; display: grid; grid-template-columns: 240px minmax(0, 700px); gap: 88px; justify-content: center; padding: 56px 6% 96px; }
.legal-toc { position: sticky; top: 32px; align-self: start; }
.legal-toc-h { margin: 0 0 16px; font-size: 10px; letter-spacing: .26em; font-weight: 500; color: #C9AC7C; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(171, 142, 91, .25); }
.legal .legal-toc li a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font-size: 12.5px; line-height: 1.45; font-weight: 400; color: #BFB5A3; text-decoration: none; }
.legal .legal-toc li a:hover { color: #EFD2A2; }
.legal .legal-toc li a[aria-current] { border-left-color: var(--aba-champagne); box-shadow: inset 1px 0 0 var(--aba-champagne); color: var(--aba-champagne-light); }
.legal-toc details { display: none; }

.legal-h1 { margin: 22px 0 0; font-family: var(--aba-font-serif); font-size: 48px; font-weight: 400; color: #E7CDA5; }
.legal-intro { margin: 22px 0 0; padding: 0 0 28px; border-bottom: 1px solid rgba(173, 141, 86, .22); font-size: 16px; line-height: 1.85; font-weight: 400; color: #D9D0C0; }
.legal-sec { margin-top: 40px; scroll-margin-top: 24px; }
.legal-h2 { margin: 0; font-family: var(--aba-font-serif); font-size: 25px; line-height: 1.3; font-weight: 400; color: #E2CBA6; }
.legal-sec p { margin: 14px 0 0; font-size: 15px; line-height: 1.85; font-weight: 400; color: #CDC4B4; }
.legal-sec a { text-underline-offset: 3px; }
.legal-framed { padding: 22px 24px 24px; border: 1px dashed rgba(225, 194, 150, .55); background: rgba(225, 194, 150, .04); }
.legal-sec ul { margin: 12px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.8; color: #CDC4B4; }  /* approved list style (was the framed section's) */

.legal-foot { padding: 24px 24px 28px; border-top: 1px solid rgba(173, 141, 86, .2); }
.legal-foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px; } /* wraps only below 320 CSS px */
.legal .legal-foot a { display: flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .06em; color: #C5B79F; text-decoration: none; }

@media (max-width: 960px) {
  body.legal { min-height: 0; }
  .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 32px 22px 40px; }
  .legal-toc { position: static; order: 1; margin: 0 0 28px; }
  .legal-toc .legal-toc-h, .legal-toc > ol { display: none; }
  .legal-toc details { display: block; border: 1px solid rgba(171, 142, 91, .32); padding: 0 16px; }
  .legal-toc summary { min-height: 48px; display: flex; align-items: center; font-size: 11px; letter-spacing: .24em; font-weight: 500; color: #C9AC7C; cursor: pointer; }
  .legal-toc details ol { border: 0; padding-bottom: 10px; }
  .legal .legal-toc details li a { padding-left: 0; min-height: 44px; display: flex; align-items: center; font-size: 14px; border: 0; }
  .legal .legal-toc details li a[aria-current] { box-shadow: none; color: var(--aba-champagne-light); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
  .legal-body { order: 2; }
  .legal-bar { padding: 18px 22px; }
  .legal-mark { width: 70px; }
  .legal-h1 { font-size: 38px; }
  .legal-intro { font-size: 15.5px; line-height: 1.8; }
  .legal-h2 { font-size: 22px; }
  .legal-sec { margin-top: 34px; }
  .legal-sec p, .legal-sec ul { font-size: 15.5px; line-height: 1.8; }
  .legal-framed { padding: 18px 16px 20px; }
  .legal .legal-foot a { font-size: 13px; }
}
