:root {
  color-scheme: light;
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #20242a;
  --muted: #606873;
  --border: #dfe3e8;
  --accent: #d95745;
  --accent-dark: #b93f31;
  --teal: #287f78;
  --focus: #1267c4;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

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

.site-header,
main,
footer {
  width: calc(100% - 32px);
  max-width: 880px;
  margin-inline: auto;
}

.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

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

.brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

main {
  padding-block: 56px 72px;
}

section + section {
  margin-top: 48px;
}

.intro {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.35;
}

h1 {
  margin-bottom: 16px;
  font-size: 36px;
}

h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.35em;
}

li + li {
  margin-top: 8px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

details {
  border-bottom: 1px solid var(--border);
}

summary {
  cursor: pointer;
  padding: 20px 4px;
  font-weight: 700;
}

details p {
  max-width: 720px;
  padding: 0 4px 20px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.contact h2,
.contact p {
  margin-bottom: 0;
}

.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.policy section:not(.intro) {
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.policy section + section {
  margin-top: 30px;
}

.link-list a {
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  nav {
    gap: 14px;
  }

  main {
    padding-block: 40px 56px;
  }

  h1 {
    font-size: 30px;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .primary-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  footer {
    flex-direction: column;
  }
}
