/* ==========================================================================
   The Realverse — terms, privacy and takedown (terms.html)
   --------------------------------------------------------------------------
   Loaded after style.css and built from its tokens alone. There is not one
   colour written in this file: every ground, every line of type and every
   border is a custom property of style.css, so a change of palette there
   reaches this page with nothing to remember, and the contrast measured for
   those tokens (tests/terms.test.js) is the contrast of this page.

   The site's rules hold here as they do on the first page: dark end to end,
   one face, square corners, depth as a step in ground or a solid offset
   block. The page has no motion of its own. Legal text is there when the page
   is, and does not arrive.
   ========================================================================== */

/* ---------------------------------------------------------------- head */

/* The deepest ground, like the hero it stands in for, with the same room
   under the fixed nav. */
.legal-head {
  background: var(--night);
  padding: calc(var(--nav-h) + 72px) 0 72px;
}

/* style.css fades every eyebrow up as its page opens. This one is the
   version of the terms, which is part of what a person agrees to: it is
   simply there. */
.legal-head .eyebrow { animation: none; }

.legal-title {
  color: var(--head); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.08; letter-spacing: -.04em;
  margin: 0 0 24px;
}

.legal-lead { color: var(--body); max-width: 640px; }

/* The five sections, one to a line, set as the footer sets its links. */
.legal-toc { list-style: none; margin: 32px 0 0; padding: 0; }
.legal-toc li { margin: 0 0 4px; }
.legal-toc a { font-size: 12px; letter-spacing: .1em; text-transform: lowercase; }

/* ---------------------------------------------------------------- text */

.legal .section-title { margin-bottom: 48px; }

.legal h3 {
  color: var(--head); font-size: 17px; font-weight: 700;
  margin: 40px 0 12px;
}

.legal p, .legal li { font-size: 15px; max-width: 680px; }

/* A square in the cap's blue where a bullet would be: state, not action, as
   everywhere on the site. Drawn the way the eyebrow draws its orange one, and
   sat on the middle of the item's first line: 1.75 is the line height the
   body sets for the whole site, so 1.75em is one line of this type. */
.legal ul { list-style: none; padding-left: 0; margin: 0 0 16px; }
.legal li { position: relative; padding-left: 26px; margin: 0 0 12px; }
.legal li::before {
  content: ""; position: absolute; left: 0; top: calc((1.75em - 10px) / 2);
  width: 10px; height: 10px; background: var(--blue);
}

/* The name a list item opens with: upright, bold and in the heading colour,
   a small heading run into its own line. */
.legal em { font-style: normal; font-weight: 700; color: var(--head); }

/* A link inside a sentence is underlined, so it is not told from the words
   around it by colour alone. Under the pointer it steps up to the heading
   colour: style.css darkens a hovered link, and the darker orange is under
   the 4.5:1 a line of text needs on all three grounds (4.41 on night, 4.03
   on slate, 3.75 on deep). */
.legal p a, .legal li a, .legal-lead a { text-decoration: underline; text-underline-offset: 3px; }
.legal a, .legal-head a { transition: color .2s ease; }
.legal a:hover, .legal-head a:hover { color: var(--head); }

/* On the blue ground the grey the site sets labels in is 4.71:1, under the
   5:1 the site keeps to, so nothing in this section is set in it: copy and
   labels alike are the body colour (7.96:1). */
.section-deep.legal { color: var(--body); }

/* ---------------------------------------------------------------- form */

/* One column: a question, its control, the next question. The browser's own
   controls are asked to draw themselves for a dark page, so an empty radio
   and the corner the text area is resized by are not light patches on it. */
.request-form {
  max-width: 680px; margin-top: 40px;
  display: grid; gap: 12px;
  color-scheme: dark;
}

.request-form label, .request-kind legend {
  font-size: 12px; font-weight: 700; line-height: 1.6;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--body);
}
/* A question sits nearer its own control than the one above it. */
.request-form > label { margin-top: 12px; }

/* The border is what says "field", so it is the control edge and not the
   faint line the site rules its tables with. Browsers round text controls by
   themselves; the radius is put back to nothing. */
.request-form input[type=text], .request-form textarea {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--head); background: var(--night);
  border: 2px solid var(--edge); border-radius: 0;
  padding: 14px 16px;
}
.request-form textarea { resize: vertical; }

/* Three choices, each a block of its own. The radio stays the browser's, in
   the action colour; the chosen block takes the same colour on its border. */
.request-kind {
  border: 0; padding: 0; margin: 0; min-width: 0;
  display: grid; gap: 8px;
}
.request-kind legend { padding: 0; margin-bottom: 8px; }
.request-kind label {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--edge);
  padding: 12px 16px; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.request-kind input { flex: none; margin: 0; accent-color: var(--orange); }
.request-kind label:has(input:checked) { border-color: var(--orange); color: var(--head); }

/* The button keeps to the left edge with everything else, with room under it
   for its offset block. */
.request-form .btn { justify-self: start; margin-top: 12px; }

/* Switched off, it says so and keeps still. The page is written with the
   button off, and js/terms.js switches it on, and off again for as long as a
   request is on its way. style.css lifts every solid button under the pointer
   and sinks it under a press, a switched-off one included, and a button that
   moves when it is pointed at looks like one that can be pressed. So in both
   poses this one stays as it stands at rest: on the offset block style.css
   gives `.btn-solid` (tests/terms.test.js holds the two equal). */
.request-form .btn:disabled { opacity: .6; cursor: default; }
.request-form .btn:disabled:hover,
.request-form .btn:disabled:active { transform: none; box-shadow: 6px 6px 0 var(--blue); }

/* The height is kept so the form does not jump when the first answer comes. */
.request-form .form-note {
  min-height: 24px; margin: 12px 0 0;
  font-size: 14px; font-weight: 700; line-height: 1.6;
  color: var(--head);
}

/* ------------------------------------------------------------ responsive */

/* Sections keep the padding style.css gives every `.section` at each width;
   only the head, which is this page's own, steps down with them. */
@media (max-width: 680px) {
  .legal-head { padding: calc(var(--nav-h) + 40px) 0 48px; }
}
