:root {
  color-scheme: light;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #17191d;
  --muted: #616975;
  --line: #dfe4ec;
  --accent: #1677ff;
  --content: 68rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

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

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 4px;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
}

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

.brand {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

main {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.hero {
  max-width: 52rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.document h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.feature-list {
  margin: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: minmax(10rem, 0.65fr) 1.35fr;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

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

.feature p {
  color: var(--muted);
}

.statement {
  max-width: 44rem;
  margin-bottom: 4rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 650;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.document {
  max-width: 50rem;
}

.document-intro {
  margin-bottom: 3.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.policy-section {
  padding-block: 1.8rem;
  border-top: 1px solid var(--line);
}

.policy-section p:last-child,
.policy-section ul:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  padding-left: 1.4rem;
}

.faq {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.4rem;
  content: "+";
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 43rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.contact {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.mail-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.55rem;
  font-weight: 650;
  text-decoration: none;
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 42rem) {
  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 2rem), var(--content));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding-block: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
  }

  main {
    padding-block: 3.5rem;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

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