:root {
  color-scheme: light;
  --page: #f5f9ff;
  --surface: #ffffff;
  --ink: #10213d;
  --muted: #61708a;
  --line: #d7e3f2;
  --blue: #075bd8;
  --blue-deep: #0647a8;
  --yellow: #ffd84d;
  --red: #ee5d5d;
  --shadow: 0 20px 48px rgba(6, 71, 168, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; }
a { color: var(--blue-deep); text-underline-offset: 0.2em; }
.no-break { white-space: nowrap; }

h1, h2, h3 { text-wrap: balance; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav,
.wrap {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { width: 38px; height: 38px; border-radius: 8px; }
.nav-links { display: flex; gap: 20px; min-width: 0; font-size: 14px; font-weight: 700; }
.nav-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }

.hero {
  min-height: 540px;
  display: grid;
  place-items: center;
  padding: 76px 20px 88px;
  text-align: center;
  background: var(--blue);
  color: white;
}

.hero-inner { width: min(800px, 100%); }
.hero-icon { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 22px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 12px; color: #a4caff; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { margin: 0; font-size: clamp(52px, 10vw, 88px); line-height: 1; letter-spacing: 0; }
.hero .lead { max-width: 680px; margin: 26px auto 0; color: #eaf3ff; font-size: clamp(18px, 2.5vw, 23px); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; padding: 10px 18px; border: 1px solid rgba(255,255,255,.62); border-radius: 8px; color: white; font-weight: 750; text-decoration: none; }
.button.primary { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }

.section { padding: 76px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.section.alt { background: var(--page); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2, .doc h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: 0; }
.section-head p { color: var(--muted); }

.point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.point { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.point:last-child { border-right: 0; }
.point .number { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; background: var(--blue); color: white; font-weight: 800; }
.point:nth-child(2) .number { background: var(--red); }
.point:nth-child(3) .number { background: #9b7600; }
.point h3 { margin: 0; font-size: 20px; }
.point p { margin: 9px 0 0; color: var(--muted); }

.screen-wrap { width: min(420px, 82vw); margin: 0 auto; box-shadow: var(--shadow); }
.screen-wrap img { width: 100%; }

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; padding: 64px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 10px; }
.toc a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.doc { min-width: 0; }
.doc > p:first-of-type { color: var(--blue); font-weight: 800; }
.doc h2 { margin: 42px 0 12px; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; letter-spacing: 0; }
.doc p, .doc li { color: var(--muted); }
.doc p, .doc li { text-wrap: pretty; }
.notice { margin: 28px 0; padding: 18px 20px; border-left: 4px solid #c69a00; background: #fff9df; color: var(--ink); }

.footer { padding: 28px 0; background: var(--ink); color: #c9d6e8; font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer a { color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 720px) {
  .nav { min-height: 62px; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; font-size: 13px; }
  .point-grid { grid-template-columns: 1fr; }
  .point { border-right: 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 42px; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
  }

  .doc h1 {
    font-size: 26px;
  }
}

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