/* aria-live.app · document: the reading layout for long copy (FAQ, Guidelines, Appeals, the legal pages). Loaded after global.css by the Document layout. */

.doc { position: relative; padding: 96px 0 112px; }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }

/* contents list: sticky beside the column on desktop */
.doc-toc { position: sticky; top: 88px; }
.doc-toc .kicker { margin-bottom: 16px; }
.doc-toc ol { list-style: none; border-left: 1px solid var(--line-2); }
.doc-toc li { margin: 0; }
.doc-toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13.5px; line-height: 1.4; letter-spacing: -0.008em; color: var(--text-3);
  transition: color .16s ease, border-color .16s ease;
}
.doc-toc a:hover { color: var(--text-1); border-left-color: var(--line-strong); }
.doc-toc a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

/* the reading column */
.doc-body { max-width: 68ch; }
.doc-body .updated { font-size: 13px; color: var(--text-3); letter-spacing: -0.005em; margin-bottom: 44px; }
.doc-section + .doc-section { margin-top: 64px; }
.doc-body h2 {
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.035em;
  margin-bottom: 20px; scroll-margin-top: 88px; text-wrap: balance;
}
.doc-body h3 { font-size: 19px; letter-spacing: -0.022em; margin: 32px 0 10px; }
.doc-body p { font-size: 16px; line-height: 1.65; color: var(--text-2); letter-spacing: -0.011em; text-wrap: pretty; }
.doc-body p + p { margin-top: 14px; }
.doc-body strong { color: var(--text-1); font-weight: 600; }
.doc-body a { color: var(--violet-bright); text-decoration: underline; text-decoration-color: var(--violet-line); text-underline-offset: 3px; transition: text-decoration-color .16s ease; }
.doc-body a:hover { text-decoration-color: var(--violet-bright); }
.doc-body a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 3px; }

/* lists of rules read as ruled rows */
.doc-body ul { list-style: none; margin: 14px 0 0; border-top: 1px solid var(--line-2); }
.doc-body li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; color: var(--text-2); letter-spacing: -0.011em; text-wrap: pretty; }
.doc-body ul + p { margin-top: 18px; }
/* numbered requirements (DMCA notices) keep their numbers, same ruled rows */
.doc-body ol { list-style: decimal outside; margin: 14px 0 0; padding-left: 24px; border-top: 1px solid var(--line-2); }
.doc-body ol li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }
.doc-body ol + p { margin-top: 18px; }

/* anything wide scrolls inside its own box */
.doc-body .table-wrap { overflow-x: auto; margin: 16px 0; }
.doc-body table { border-collapse: collapse; min-width: 100%; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc-body th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

/* FAQ groups inside the column: the shared .faq rules, spaced for a document */
.doc-body .faq { margin-top: 4px; }
.doc-body .faq summary { font-size: 16.5px; }
.doc-body .faq details .body { max-width: none; }
.doc-body .faq details .body + .body { margin-top: 10px; }
.doc-body .faq details ul { margin-top: 12px; margin-bottom: 20px; }
.doc-body .faq details .body:last-child { padding-bottom: 22px; }
.doc-body .faq details ul:last-child { margin-bottom: 22px; }

/* the closing question on the FAQ */
.doc-body .doc-contact p { font-size: 17px; }

/* No scroll-driven entrance on the sections: a document must read in full the moment it is opened, jumped into from the contents list, printed or captured. The hero keeps its rise-in. */
@media (max-width: 960px) {
  .doc { padding: 72px 0 88px; }
  .doc-grid { grid-template-columns: 1fr; gap: 40px; }
  .doc-toc { display: none; }
  .doc-body { max-width: 640px; }
}
@media (max-width: 600px) {
  .doc { padding: 56px 0 72px; }
  .doc-section + .doc-section { margin-top: 48px; }
  .doc-body h2 { font-size: 26px; }
}
