/* Kelybu legal pages — system fonts only, no trackers. */
:root {
  color-scheme: light;
  --cream: #ffffff;
  --coral: #e45448;
  --text: #16151c;
  --muted: #6d6a78;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  background: #ffffff;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-8rem);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(72ch, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(224, 122, 106, 0.35);
  margin-bottom: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img {
  display: block;
  width: 9.25rem;
  height: auto;
  object-fit: contain;
}

.lede {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.es-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 650;
  line-height: 1.2;
  color: var(--text);
}

.meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.draft-banner {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--coral);
  background: rgba(224, 122, 106, 0.12);
  color: var(--text);
}

article h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
}

article p,
article ul,
article ol {
  margin: 0 0 1rem;
}

article ul,
article ol {
  padding-left: 1.25rem;
}

article li {
  margin-bottom: 0.4rem;
}

article li:last-child {
  margin-bottom: 0;
}

.caps {
  font-size: 0.95rem;
}

a {
  color: var(--coral);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(224, 122, 106, 0.35);
  font-size: 0.95rem;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.related li {
  margin: 0;
}

.related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

footer {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(224, 122, 106, 0.35);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  margin: 0 0 0.35rem;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
}

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

.more-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0 0 1rem;
}

.more-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.more-nav a:hover,
.more-nav a[aria-current="page"] {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.credit,
.draft-line {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.draft-line {
  margin-top: 0.85rem;
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  a {
    color: inherit;
  }

  .skip,
  .legal-nav,
  .more-nav {
    display: none;
  }
}
