/* ==========================================================
   Legal document pages — IamPalski
   Shared styling for the privacy / terms pages.
   Type + colour match the main site (Host Grotesk, ink #252525).
   ========================================================== */

:root {
  --ink: #252525;
  --mist: #808080;
  --hairline: rgba(37, 37, 37, .12);
}

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: "Host Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

/* Skip link ------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* Document prose ------------------------------------------- */
.lprose { max-width: 760px; }

.lprose .lead {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.lprose h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 3rem 0 1rem;
}

.lprose h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 1.75rem 0 .5rem;
}

.lprose p,
.lprose li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4a4a4a;
}

.lprose p { margin-bottom: 1.125rem; }

.lprose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.lprose li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .625rem;
}

.lprose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 6px;
  height: 1px;
  background: var(--mist);
}

.lprose strong { color: var(--ink); font-weight: 500; }

.lprose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 37, 37, .35);
  transition: text-decoration-color .2s ease;
}
.lprose a:hover { text-decoration-color: var(--ink); }

/* Document switch (Privacy <-> Terms) ---------------------- */
.lswitch {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}

.lswitch > * {
  font-size: .9375rem;
  font-weight: 500;
  padding: .5rem 1.125rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}

.lswitch [aria-current="page"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.lswitch a {
  color: var(--mist);
  transition: color .2s ease, border-color .2s ease;
}
.lswitch a:hover { color: var(--ink); border-color: var(--ink); }

/* Focus visibility ----------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark a:focus-visible,
.on-dark button:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
