/* terms.css: /terms and /es/terms (floor B, the archive).
   The legal text between the LEGAL-TEXT markers is byte-identical to the published v1.0 page, so its own
   classes (.meta, .translation-note) are styled here instead of being renamed. Everything else comes from
   site.css (.prose, .page-head, .floor-sign, .rooftop). */

body[data-floor="archive"] .terms .terms-back {
  margin-block-end: var(--s-4);
  font-size: var(--t-subhead);
}
body[data-floor="archive"] .terms .terms-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: var(--target);
}

/* Measure: at most about 75 characters per line on desktop (the Spanish text ran to 88). Width only, so the
   legal text itself is untouched. */
body[data-floor="archive"] .prose.terms { max-width: min(44rem, 56ch); }

/* Version and effective-date line under the h1. */
body[data-floor="archive"] .terms .meta {
  margin-block: var(--s-2) var(--s-5);
  font-size: var(--t-subhead);
  color: var(--ink-3);
}

/* The h1 sits in the legal block, right after the floor sign. */
body[data-floor="archive"] .terms h1 { margin-block-start: var(--s-2); }

/* ES: the "English prevails" note keeps its own box (site.css .prose .translation-note), spaced from the h1. */
body[data-floor="archive"] .terms .translation-note { margin-block: 0 var(--s-5); }

/* Apple's notice is set in capitals: keep long lines readable on phones. */
body[data-floor="archive"] .terms blockquote :is(p, si-p) {
  margin: 0;
  overflow-wrap: anywhere;
}
