/* Shared layout for the reading pages: install, about, alternatives, what's new, 404.
   Builds on the legal page's header, heading, card and footer in legal.css. */
.page-links { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.page-links a { color: #d2d2d7; }
.page-links a:hover, .page-links a[aria-current="page"] { color: #fff; }
.page-links .page-cta { color: #fff; background: #0071e3; padding: 8px 15px; border-radius: 30px; font-weight: 500; }
.page-links .page-cta:hover { background: #0077ed; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; color: #6e6e73; font-size: 12px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #a1a1a6; }
.crumbs a { color: #6e6e73; }
.crumbs a:hover { color: #0066cc; text-decoration: underline; text-underline-offset: 3px; }

.legal-heading .page-lead { max-width: 660px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.page-actions .button { font-size: 15px; padding: 13px 22px; }
.page-actions .page-meta { color: #6e6e73; font-size: 12px; line-height: 1.6; }
.page-actions a:not(.button) { color: #0066cc; font-size: 14px; }
.page-actions a:not(.button):hover { text-decoration: underline; text-underline-offset: 3px; }

.legal-content ul, .legal-content ol { margin: 14px 0 0; padding-left: 22px; color: #595962; font-size: 15px; line-height: 1.8; }
.legal-content li + li { margin-top: 8px; }
.legal-content li strong, .legal-content p strong, .legal-content td strong { color: #1d1d1f; font-weight: 600; }
.legal-content ul + p, .legal-content ol + p, .legal-content .table-wrap + p, .legal-content .callout + p { margin-top: 18px; }
.legal-content code, .legal-content kbd { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1d1d1f; background: #f5f5f7; border: 1px solid #e8e8ed; border-radius: 6px; padding: 2px 6px; }
.legal-content :not(pre) > code { overflow-wrap: anywhere; }
.legal-content pre { max-width: 100%; margin: 16px 0 0; padding: 15px 18px; background: #0b0b0c; border-radius: 14px; overflow-x: auto; }
.legal-content pre code { color: #f5f5f7; background: none; border: 0; padding: 0; font-size: 13px; }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; min-height: 30px; }
.steps > li + li { margin-top: 18px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #1d1d1f; color: #fff; font-size: 13px; font-weight: 600; }

.callout { margin-top: 20px; padding: 18px 20px; background: #f5f8fd; border: 1px solid #dfe9f7; border-radius: 16px; }
.legal-content .callout p { font-size: 14px; line-height: 1.7; }
.callout.is-quiet { background: #f7f7f9; border-color: #e8e8ed; }

.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid #e8e8ed; border-radius: 16px; }
.table-wrap:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.55; text-align: left; }
.data-table caption { caption-side: bottom; padding: 12px 16px; color: #6e6e73; font-size: 11px; line-height: 1.6; text-align: left; border-top: 1px solid #e8e8ed; }
.data-table th, .data-table td { padding: 13px 16px; vertical-align: top; color: #595962; border-top: 1px solid #e8e8ed; }
.data-table thead th { border-top: 0; color: #1d1d1f; font-weight: 600; background: #fafafc; white-space: nowrap; }
.data-table tbody th { color: #1d1d1f; font-weight: 500; min-width: 150px; }
.data-table .is-ours { background: #f3f9f4; }
.data-table thead .is-ours { background: #e9f5eb; }
.data-table .yes { color: #1f6b3a; font-weight: 600; }
.data-table .quiet { color: #6e6e73; }
.compare-wide { min-width: 720px; }
.legal-content .table-hint { display: none; margin-top: 16px; color: #6e6e73; font-size: 12px; }

.release { padding: 32px 0; }
.release + .release { border-top: 1px solid #e8e8ed; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.legal-content .release-head h2 { margin: 0; }
.release-head time { color: #6e6e73; font-size: 13px; }
.release-tag { font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #1f6b3a; background: #e9f5eb; border-radius: 20px; padding: 3px 9px; }

.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; padding: 0 !important; list-style: none; }
.link-grid li { margin: 0 !important; }
.legal-content .link-grid a { display: block; height: 100%; padding: 16px 18px; background: #f7f7f9; border: 1px solid #e8e8ed; border-radius: 14px; color: #1d1d1f; font-size: 14px; font-weight: 500; text-decoration: none; }
.legal-content .link-grid a:hover { background: #f1f6fd; border-color: #dfe9f7; color: #1d1d1f; }
.link-grid small { display: block; margin-top: 4px; color: #6e6e73; font-size: 12px; font-weight: 400; line-height: 1.55; }

.legal-footer-inner.page-footer { align-items: flex-start; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.page-footer p { flex-basis: 100%; color: #5c5c63; }

@media (max-width: 760px) {
  .page-links { gap: 14px; font-size: 11px; }
  .page-links .page-optional { display: none; }
  .page-links .page-cta { padding: 7px 12px; }
}
@media (max-width: 600px) {
  .legal-content ul, .legal-content ol { font-size: 14px; line-height: 1.75; }
  .steps > li { padding-left: 40px; }
  .steps > li::before { width: 26px; height: 26px; font-size: 12px; }
  .link-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 11px 12px; }
  .data-table tbody th { min-width: 118px; }
  .compare-wide { min-width: 640px; }
  .legal-content .table-hint { display: block; }
  .legal-content .table-hint + .table-wrap { margin-top: 8px; }
  .page-actions .button { font-size: 14px; }
}
@media (max-width: 420px) {
  .page-links a:not(.page-cta):not(.page-keep) { display: none; }
}

/* Screenshots and video on the feature, guide and press pages. */
.shot { margin: 22px 0 0; background: #000; border: 1px solid #1d1d1f; border-radius: 18px; overflow: hidden; }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 11px 16px 12px; background: #0b0b0c; color: #a1a1a6; font-size: 12px; line-height: 1.5; }
.legal-content .shot figcaption a { color: #6cb4ff; }
.legal-content .shot + p, .legal-content .shot + ul, .legal-content p + .shot { margin-top: 18px; }
.legal-content .quiet { color: #6e6e73; font-size: 13px; }
.data-table tr.is-ours th, .data-table tr.is-ours td { background: #f3f9f4; }
.legal-content .page-actions { margin-top: 24px; }
@media (max-width: 600px) { .shot { border-radius: 14px; } .shot figcaption { font-size: 11px; padding: 9px 12px 10px; } }

/* Buttons inside an article keep their own colours, not the article's link colour. */
.legal-content a.button, .legal-content a.button:hover { color: #fff; text-decoration: none; }
