:root {
  color-scheme: light;
  --bg: #fdfbf7;
  --panel: rgba(17, 17, 17, 0.035);
  --panel-strong: #ffffff;
  --line: rgba(17, 17, 17, 0.09);
  --ink: #111111;
  --muted: #6b6b6b;
  --accent: #ff6b22;
  --accent-strong: #b93600;
  --focus: #9f2f00;
  --shadow: 0 24px 70px rgba(72, 42, 18, 0.1);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

:root.dark {
  color-scheme: dark;
  --bg: #080706;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: #11100f;
  --line: rgba(255, 255, 255, 0.11);
  --ink: #fafafa;
  --muted: #a3a3a3;
  --accent: #ff7a3d;
  --accent-strong: #ff9a6b;
  --focus: #ff9a6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 5%, rgba(255, 107, 34, 0.1), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(127, 91, 58, 0.11) 0.55px, transparent 0.55px);
  background-size: 6px 6px;
  content: '';
  opacity: 0.22;
  pointer-events: none;
}

::selection {
  background: rgba(255, 107, 34, 0.22);
}

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 107, 34, 0.2);
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.2em;
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-180%);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel-strong);
  color: var(--ink);
  padding: 0.65rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  width: calc(100% - 2rem);
  max-width: 70rem;
  min-height: 4rem;
  margin: 1rem auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 12px 45px rgba(40, 20, 8, 0.1);
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.8rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  padding: 0.6rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: var(--panel);
  color: var(--ink);
}

.nav-links a:active,
.theme-toggle:active {
  transform: scale(0.97);
}

.theme-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--line);
  background: var(--panel-strong);
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-sun,
:root.dark .icon-moon {
  display: none;
}

:root.dark .icon-sun {
  display: block;
}

.legal-layout {
  display: grid;
  width: calc(100% - 2rem);
  max-width: 70rem;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(5rem, 11vw, 8.5rem) 0 6rem;
}

.wrap {
  min-width: 0;
  max-width: 47rem;
}

.page-header {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.meta {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-header h1 {
  max-width: 12ch;
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.85rem, 7.5vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.96;
  text-wrap: balance;
}

.page-header .lede {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.document h2 {
  scroll-margin-top: 7rem;
  margin: 3.5rem 0 1rem;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-wrap: balance;
}

.document a {
  overflow-wrap: anywhere;
}

.document h2:first-of-type {
  margin-top: 0;
}

.document p,
.document li {
  color: color-mix(in srgb, var(--ink) 86%, var(--muted));
}

.document p {
  max-width: 65ch;
  margin: 0 0 1.15rem;
}

.document ul {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.document li {
  position: relative;
  padding-left: 1.4rem;
}

.document li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
  content: '';
}

.document strong {
  color: var(--ink);
  font-weight: 700;
}

.page-index {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

.page-index p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-index a {
  display: block;
  border-radius: 0.45rem;
  color: var(--muted);
  margin: 0.15rem 0;
  padding: 0.35rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-index a:hover {
  color: var(--ink);
  transform: translateX(0.2rem);
}

.support-layout {
  grid-template-columns: minmax(0, 1fr) 19rem;
  align-items: start;
}

.contact-card {
  position: sticky;
  top: 6.5rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.contact-card .contact-mark {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 2.5rem;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--accent);
  color: #111;
  font-size: 1.2rem;
  font-weight: 800;
}

.contact-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.contact-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  padding: 0.7rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s ease;
}

.button:hover {
  transform: translateY(-0.15rem);
  background: #ff814a;
  color: #111;
}

.button:active {
  transform: translateY(0);
}

.topic-list {
  margin-top: 0.5rem;
}

.topic {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.65rem;
}

.topic:last-child {
  border-bottom: 1px solid var(--line);
}

.topic-number {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topic h2 {
  margin: -0.25rem 0 0.4rem;
  font-size: 1.1rem;
}

.topic p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem max(1rem, calc((100% - 70rem) / 2)) 3rem;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-copy {
  max-width: 34rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-meta {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.76rem;
}

@media (max-width: 780px) {
  .site-nav {
    top: 0.65rem;
    width: calc(100% - 1.25rem);
    margin-top: 0.65rem;
    border-radius: 1.35rem;
  }

  .nav-links a:not([aria-current='page']) {
    display: none;
  }

  .nav-links a[aria-current='page'] {
    padding-inline: 0.7rem;
  }

  .legal-layout,
  .support-layout {
    width: calc(100% - 2.5rem);
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4.5rem;
  }

  .page-index {
    display: none;
  }

  .contact-card {
    position: static;
    grid-row: 2;
  }

  .page-header {
    margin-bottom: 3rem;
  }

  .footer-main {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand span {
    display: none;
  }

  .site-nav {
    min-height: 3.65rem;
  }

  .page-header h1 {
    font-size: clamp(2.65rem, 15vw, 4rem);
  }

  .topic {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .site-footer {
    padding-inline: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
