/* WAValt legal pages. Same night-studio identity as the splash, laid out for
   reading instead of for a single centred card: one measured column, left
   aligned, generous line height, and nothing that needs JavaScript.

   Deliberately self-contained rather than layered on styles.css. The splash
   centres everything inside a 33rem card, which is exactly wrong for a long
   document, and fighting those rules from a second file is how a stylesheet
   rots. The palette and the type stack are the same values. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #f5f5f7;
  --ink-soft: rgba(245, 245, 247, 0.78);
  --ink-faint: rgba(245, 245, 247, 0.5);
  --line: rgba(255, 255, 255, 0.1);
  --violet: #a78bfa;
  --sky: #7dd3fc;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(52rem 30rem at 50% 0%, rgba(124, 58, 237, 0.09), transparent 65%),
    radial-gradient(44rem 26rem at 85% 90%, rgba(14, 165, 233, 0.05), transparent 70%),
    #050507;
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
}

::selection { background: rgba(124, 58, 237, 0.45); }

a { color: var(--sky); }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Header: wordmark left, the five policies as a wrapping row beneath. */
.legal-top {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-home {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.legal-home .wav { color: var(--violet); }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .legal-home .wav {
    background: linear-gradient(100deg, #7c3aed 10%, #0ea5e9 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.legal-home .alt { font-weight: 400; color: #eceff4; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.legal-nav a {
  color: var(--ink-faint);
  text-decoration: none;
}

.legal-nav a:hover { color: var(--ink); }

.legal-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* The document itself. */
.legal-doc {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal-doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-summary {
  margin-top: 0.875rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.legal-dates {
  margin-top: 0.75rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.legal-doc section { margin-top: 2.5rem; }

.legal-doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

/* The one-line gloss under a heading: what the section is about, in a
   breath. Quieter than the body so a skimmer's eye runs down them. */
.legal-gloss {
  margin-bottom: 0.75rem;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

.legal-doc p + p { margin-top: 0.875rem; }

/* The gloss carries its own gap, so the first body line must not add one. */
.legal-gloss + p { margin-top: 0; }

.legal-doc section p { color: var(--ink-soft); }

.legal-doc ul {
  margin-top: 0.875rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.legal-doc li { margin-top: 0.375rem; }

/* /legal: the index of all five. */
.legal-index {
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.legal-card {
  display: block;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.legal-card:hover {
  border-color: rgba(148, 104, 245, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.legal-card-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-card-summary {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
}

.legal-card-date {
  display: block;
  margin-top: 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.legal-foot {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.legal-foot p + p { margin-top: 0.375rem; }

@media (max-width: 30rem) {
  .legal-top { padding-top: 1.5rem; }
  .legal-doc { padding-top: 2rem; }
  .legal-doc section { margin-top: 2rem; }
}
