/* Readable legal documents; no app-height shell or sign-in prerequisite. */
.legal-heading { padding:12px 0; }
.legal-page .learn-header { flex-wrap:nowrap; }
.legal-page .learn-header nav { width:auto; }
.legal-heading h1 { margin:4px 0 8px; }
.legal-review { margin-bottom:24px; padding:12px 16px; border-left:4px solid var(--gold); background:var(--study-sheet); border-radius:0 12px 12px 0; }
.legal-review p { font-size:14px; margin:4px 0 0; }
.legal-layout { display:grid; grid-template-columns:220px minmax(0,1fr); align-items:start; gap:32px; }
.legal-contents { display:grid; position:sticky; top:12px; gap:2px; max-height:calc(100dvh - 24px); overflow:auto; }
.legal-mobile-contents { display:none; }
.legal-contents a { min-height:44px; display:flex; align-items:center; padding:8px 10px; font-size:14px; line-height:1.35; border-radius:8px; text-decoration:none; }
.legal-contents a:hover { background:var(--shade); }
.legal-layout article { min-width:0; }
.legal-layout section { scroll-margin-top:16px; margin-bottom:28px; }
.legal-layout section h2 { font-size:23px; }
.legal-layout section p { font-size:16px; line-height:1.65; }
.legal-choices { border:1px solid var(--shade); border-radius:16px; padding:18px; background:var(--study-sheet); }
.legal-choice-actions,.legal-contact,.legal-links { display:flex; flex-wrap:wrap; gap:4px 12px; align-items:center; }
.legal-choice-actions button { min-height:44px; border:1px solid var(--discovery-navy); border-radius:10px; padding:10px 14px; font:inherit; font-weight:700; color:var(--discovery-navy); background:transparent; cursor:pointer; transition:background-color .18s; }
.legal-choice-actions button:hover:not(:disabled),.legal-choice-actions button[aria-pressed=true] { background:var(--study-key-soft); }
.legal-choice-actions button:disabled { opacity:.6; cursor:default; }
.legal-choice-actions button:focus-visible { outline:3px solid var(--study-rule-blue); outline-offset:3px; }
.legal-choices #privacy-status { font-size:14px; margin:12px 0 0; }
.legal-contact a,.legal-links a { display:inline-flex; align-items:center; min-height:44px; overflow-wrap:anywhere; }
.legal-page .learn-footer { display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between; }
@media(max-width:760px) {
 .legal-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
 .legal-layout > .legal-contents { display:none; }
 .legal-mobile-contents { display:block; margin-bottom:16px; border-block:1px solid var(--shade); }
 .legal-mobile-contents summary { min-height:44px; padding:12px 8px; cursor:pointer; }
 .legal-mobile-contents summary:focus-visible { outline:3px solid var(--study-rule-blue); outline-offset:2px; }
 .legal-mobile-contents .legal-contents { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:none; padding-bottom:12px; }
}
@media(max-width:380px) { .legal-contents { grid-template-columns:minmax(0,1fr); } .legal-choices { padding:14px; } }
@media(prefers-reduced-motion:reduce) { .legal-choice-actions button { transition:none; } }
