:root {
  --primary: #0b4a8f;
  --primary-dark: #083666;
  --primary-light: #e8f0fa;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 12px 30px rgba(11, 74, 143, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body {
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
}

.hero {
  padding: 84px 0 64px;
  background: radial-gradient(circle at 20% 15%, rgba(11, 74, 143, 0.16), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(62, 135, 210, 0.2), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 38px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.legal-hero-title {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.2;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
}

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 74, 143, 0.12);
}

.stat-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.card .badge {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 9px;
  font-size: 1.1rem;
}

.card h3 {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--primary), #2267b0 68%);
  color: #fff;
  padding: clamp(28px, 3.5vw, 44px);
  display: grid;
  gap: 14px;
  text-align: center;
}

.cta-band p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
}

.light-btn {
  background: #fff;
  color: var(--primary-dark);
  padding: 12px 18px;
  border-radius: 12px;
  display: inline-flex;
  justify-self: center;
  font-weight: 800;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

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

.policy-wrap,
.contact-wrap,
.download-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
}

.legal-card,
.form-card,
.info-card,
.download-card,
.system-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.legal-card h3,
.system-card h3,
.download-card h3 {
  margin-bottom: 10px;
}

.last-update {
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.form-row label {
  font-weight: 700;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
}

.form-feedback {
  min-height: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-feedback.error {
  color: #b91c1c;
}

.form-feedback.success {
  color: #166534;
}

.contact-info {
  display: grid;
  gap: 12px;
}

.contact-info .line {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0 24px;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-note {
  text-align: center;
  margin: 0 auto 16px;
  color: var(--muted);
  max-width: 700px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 600;
}

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

.copyright {
  text-align: center;
  color: var(--muted);
  margin: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.h5-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.h5-shell .head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.h5-shell .head img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.h5-shell section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.h5-shell h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .hero-grid,
  .policy-wrap,
  .contact-wrap,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .step-wrap,
  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links,
  .header-action {
    display: none;
  }

  .nav-links.open {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 74px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
  }

  .header-action.open {
    display: block;
    position: absolute;
    right: 4%;
    top: 246px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 66px;
  }
}
