/* ORVX — legal pages.
   Loaded after resources.css, which already provides the prose, the note
   callout and the table. Only the three things a legal page adds are here:
   the language switcher, the contents list, and the footer link pair.

   Everything is written with logical properties — inline-start, inline-end —
   because these pages exist in Arabic and mirror wholesale. There is not one
   [dir="rtl"] override in this file, and there should never need to be. */

/* ---- language switcher --------------------------------------------------- */
.legal-langs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  max-width: 68ch; margin: 0 0 30px;
  padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
.legal-langs-label {
  font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.legal-langs-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legal-langs-list a {
  font-size: 14.5px; color: var(--text-dim);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--accent-line);
}
.legal-langs-list a:hover { color: var(--text); text-decoration-color: var(--text); }

/* ---- contents ------------------------------------------------------------ */
/* A legal document is read by jumping to the clause you came for, so the list
   of clauses is part of the document rather than a nicety. */
.legal-toc {
  margin: 0 0 40px; padding: 16px 18px;
  border: 1px solid var(--line); border-inline-start: 3px solid var(--accent-line);
  border-radius: var(--r); background: var(--surface);
}
.legal-toc-label {
  display: block; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.legal-toc-list { display: grid; gap: 7px; }
.legal-toc-list a {
  font-size: 14.5px; line-height: 1.45; color: var(--text-dim);
  text-decoration: none;
}
.legal-toc-list a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .legal-langs { flex-direction: column; gap: 8px; }
}
