/* Flechix legal site: lightweight, accessible, mobile-first. No external fonts, scripts or trackers. */
:root {
  --bg: #fff4e8;
  --surface: #fff9f3;
  --text: #352a38;
  --muted: #6b5a63;
  --border: #dec8bc;
  --accent: #ff7a59;
  --link: #a63a1f;
  --focus: #352a38;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1a24;
    --surface: #2a1f2b;
    --text: #f5ede6;
    --muted: #cdbfc4;
    --border: #4a3a48;
    --accent: #ff8a6b;
    --link: #ffb08f;
    --focus: #ffd479;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 2px solid var(--focus);
  border-radius: 0.5rem;
  z-index: 1;
}

.skip:focus {
  top: 0.5rem;
}

header.site,
footer.site,
main {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 4px solid var(--accent);
}

.brand {
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand::before {
  content: "\279C\00a0";
  color: var(--accent);
}

header.site nav a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1rem 1.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

h2 {
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.3125rem;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.125rem;
}

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

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.375rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.choices {
  list-style: none;
  padding: 0;
}

.choices a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

footer.site {
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

footer.site p {
  margin: 0.25rem 0;
}

[aria-current="page"] {
  font-weight: 700;
}

@media (min-width: 40rem) {
  body {
    font-size: 1.125rem;
  }

  article {
    padding: 2rem 2.25rem 2.25rem;
  }

  h1 {
    font-size: 2.125rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  header.site nav,
  footer.site nav,
  .skip {
    display: none;
  }

  article {
    border: 0;
    padding: 0;
  }
}
