/* Privacy and Terms. Header, type, and color come from home-atlas.css.
   This sheet only makes the document a solid readable card. */
.legal-page { background: var(--atlas-paper, var(--ed-paper)); }
.legal-doc {
  width: min(760px, calc(100% - 48px));
  margin: 8px auto 64px;
  padding: 40px 44px 52px;
  border: 1px solid var(--ed-rule);
  border-radius: 28px;
  background: var(--atlas-paper, var(--ed-paper));
  box-shadow: 0 10px 30px #0c0a070a;
}
.legal-doc h1 {
  max-width: 18ch;
  margin-top: 8px;
  color: var(--ed-ink);
  font: 400 clamp(40px, 5vw, 64px)/1.12 var(--ed-display);
  letter-spacing: -.03em;
}
.legal-kicker { margin-bottom: 12px; }
.legal-updated { margin-top: 12px; font-size: 14px; }
.legal-lead { max-width: 62ch; margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ed-ink); }
.legal-section { max-width: 68ch; padding-block: 22px; border-top: 1px solid var(--ed-rule); }
.legal-section h2 { margin-bottom: 8px; color: var(--ed-ink); font: 600 1.35rem/1.4 var(--ed-sans); letter-spacing: 0; }
.legal-section p { font-size: 16.5px; line-height: 1.65; }
.legal-section p + p { margin-top: 12px; }
.legal-section ul { margin: 10px 0 0; padding-inline-start: 1.25rem; }
.legal-section li { margin-block: 6px; color: var(--ed-muted); line-height: 1.6; }
.legal-section a { color: var(--ed-link); }
.legal-page :is(.ed-nav, .ed-mobile-menu) a[aria-current="page"] {
  color: var(--ed-link);
  text-decoration: underline;
  text-underline-offset: 5px;
}
html[lang="ar"] .legal-page {
  --ed-sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --ed-display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[lang="ar"] .legal-doc h1 { letter-spacing: 0; line-height: 1.35; font-weight: 650; font-size: clamp(34px, 6vw, 52px); }
html[lang="ar"] .legal-section h2 { letter-spacing: 0; line-height: 1.45; }
@media (max-width: 599px) {
  .legal-doc { width: min(760px, calc(100% - 32px)); padding: 28px 22px 40px; }
  .legal-doc h1 { font-size: 34px; }
  .legal-lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.legal-page) { scroll-behavior: auto; }
  .legal-page :is(.ed-nav a, .ed-nav a::after) { transition: none; }
}

/* Phone menu: the language rules show each visible link as inline-flex, which ran the links together on one line over the page.
   A column flex container stacks them (hidden-language links keep display: none). */
.ed-mobile-menu nav { display: flex; flex-direction: column; align-items: stretch; }
