:root {
  color-scheme: light dark;
  --background: #f3f5f7;
  --surface: #ffffff;
  --surface-muted: #e9edf1;
  --text: #15191f;
  --muted: #59616c;
  --line: #cbd2da;
  --blue: #006edc;
  --red: #d83232;
  --green: #087f5b;
  --focus: #f0a500;
  --header: rgba(255, 255, 255, 0.96);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101318;
    --surface: #1a1f26;
    --surface-muted: #242b34;
    --text: #f3f5f7;
    --muted: #b7c0cb;
    --line: #3b4551;
    --blue: #55aaff;
    --red: #ff6b6b;
    --green: #63d6aa;
    --focus: #ffd166;
    --header: rgba(16, 19, 24, 0.96);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  transform: translateY(-150%);
}

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

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}

.intro {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #17202b;
  background-image: url("/assets/hero.jpg");
  background-position: center 62%;
  background-size: cover;
  isolation: isolate;
}

.intro::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 10, 17, 0.62);
  content: "";
}

.intro-content {
  max-width: 720px;
  padding: 48px;
  color: #ffffff;
}

.intro h1 {
  margin: 12px 0 10px;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: 0;
}

.intro p {
  max-width: 640px;
  margin: 0;
  font-size: 19px;
  font-weight: 650;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.intro .eyebrow {
  color: #8fc8ff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  background: #ffffff;
  color: #12161c;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: rgba(5, 10, 17, 0.72);
  color: #ffffff;
}

.section {
  padding: 52px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2 {
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1.25;
}

h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card-index {
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.card p,
.contact p,
.privacy-help p,
.legal p,
.legal li {
  color: var(--muted);
}

.card p {
  margin: 0;
}

.faq {
  display: grid;
  gap: 10px;
}

details {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
}

.privacy-help,
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.privacy-help > div,
.contact > div {
  max-width: 760px;
}

.text-link {
  flex: 0 0 auto;
  font-weight: 800;
}

.contact .button {
  flex: 0 0 auto;
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.legal {
  max-width: 860px;
  padding-top: 54px;
  padding-bottom: 70px;
}

.legal h1 {
  margin: 8px 0 4px;
  font-size: 48px;
  line-height: 1.15;
}

.legal h2 {
  margin: 42px 0 12px;
  font-size: 24px;
}

.legal p,
.legal li {
  overflow-wrap: anywhere;
}

.updated {
  margin-top: 0;
  font-size: 14px;
}

.legal-lead {
  margin: 28px 0 42px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.legal ul {
  padding-left: 1.35em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .intro {
    min-height: 390px;
    background-position: center 56%;
  }

  .intro-content {
    padding: 28px 22px;
  }

  .intro h1 {
    font-size: 42px;
  }

  .intro p {
    font-size: 17px;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .privacy-help,
  .contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal h1 {
    font-size: 38px;
  }
}

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