/* These tokens are copied from src/styles/globals.css: the static legal pages
   cannot import the app's stylesheet, so a palette change there must be mirrored here. */
:root {
  color: #101916;
  background: #f2efe7;
  font-family:
    "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Arial,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #101916;
  --ink-soft: #53615b;
  --paper: #f2efe7;
  --line: rgb(16 25 22 / 16%);
  --focus: #1a63d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.legal-header {
  display: flex;
  align-items: center;
  padding: 1.5rem max(24px, calc((100vw - 800px) / 2));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 44px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 6px;
  background: var(--ink);
}

.legal-main {
  padding: 3.5rem max(24px, calc((100vw - 800px) / 2)) 5rem;
}

.legal-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal-meta {
  margin: 0 0 3rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.legal-lead {
  margin: 0 0 3rem;
}

.legal-main section {
  margin-bottom: 2.75rem;
}

.legal-main h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.legal-main p {
  margin: 0 0 1rem;
}

.legal-main ul,
.legal-main ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.legal-main li {
  margin-bottom: 0.5rem;
}

.legal-main dl {
  margin: 0 0 1.5rem;
}

.legal-main dt {
  margin-top: 1rem;
  font-weight: 700;
}

.legal-main dd {
  margin: 0.25rem 0 0;
}

.legal-footer {
  padding: 2.5rem max(24px, calc((100vw - 800px) / 2));
  color: rgb(255 255 255 / 58%);
  background: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 1.5rem;
  color: white;
  font-weight: 700;
}

.legal-footer p {
  margin: 0.5rem 0 0;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
}
