:root {
  --bg:          #f2f4f7;
  --card:        #ffffff;
  --dark:        #0d1526;
  --border:      #dde3ec;
  --text:        #1c2336;
  --muted:       #5a6a82;
  --accent:      #408FC8;
  --accent-dark: #2f72a3;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'DM Sans', 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.6);
  transition: color .15s;
}
.nav-link:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; padding: .4rem;
}
.nav-toggle i { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.section-tag {
  font-size: .73rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .65rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; letter-spacing: -.04em;
  margin-bottom: .75rem; line-height: 1.1;
}
.section-sub { color: var(--muted); font-size: 1rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff;
  padding: .8rem 1.75rem; border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: scale(.97); }
.btn-primary i { width: 18px; height: 18px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text); border: 1.5px solid var(--border);
  padding: .8rem 1.6rem; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--border); }
.btn-outline i { width: 18px; height: 18px; }

.notfound {
  min-height: calc(100vh - 66px - 91px);
  display: flex; align-items: center;
  padding: 4rem 0;
  text-align: center;
}
.notfound-inner { max-width: 520px; margin: 0 auto; }
.notfound-code {
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  font-weight: 900; color: var(--accent);
  letter-spacing: -.04em; line-height: 1;
  margin-bottom: .5rem;
}
.notfound .section-title { margin-bottom: .5rem; }
.notfound .section-sub { margin-bottom: 2rem; }
.notfound-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

.legal { padding: 3.5rem 0 5rem; max-width: 780px; }
.legal .container { max-width: 780px; }
.legal-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--accent);
  margin-bottom: 1.75rem;
}
.legal-back i { width: 16px; height: 16px; }
.legal-back:hover { color: var(--accent-dark); }
.legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 2.25rem; }
.legal h2 {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
  margin-top: 2.25rem; margin-bottom: .75rem;
}
.legal p, .legal li { color: var(--muted); line-height: 1.75; font-size: .96rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .4rem; }
.legal-link { color: var(--accent); font-weight: 600; }
.legal-link:hover { color: var(--accent-dark); }

.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2.25rem 0;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { height: 28px; width: auto; }
.footer-copy { font-size: .8rem; color: #4a5a6e; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark);
    max-height: 0; overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 220px; }
  .nav-links .nav-link { display: block; padding: .9rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
