:root {
  --navy: #03162d;
  --navy-2: #061b35;
  --ink: #f5f7fb;
  --muted: #aeb9c9;
  --orange: #f2a340;
  --line: rgba(157, 184, 216, 0.16);
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(720px 440px at 82% 0%, rgba(30, 93, 158, 0.2), transparent 64%),
    linear-gradient(180deg, #021226, #04182f 45%, #031327);
  font-family: "Manrope", system-ui, sans-serif;
}
a { color: inherit; }
.page-wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(2, 18, 38, 0.78);
  backdrop-filter: blur(16px);
}
.site-header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-crop { width: 132px; }
.logo-crop img { display: block; width: 100%; height: auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dce5f1;
  font: 700 13px "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.back-link:hover { color: var(--orange); }
.page-hero { padding: 74px 0 42px; }
.eyebrow {
  color: var(--orange);
  font: 700 13px "Rajdhani", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: "Rajdhani", sans-serif; }
h1 { max-width: 800px; margin-top: 12px; font-size: clamp(42px, 7vw, 68px); line-height: 0.98; }
.lead { max-width: 720px; margin: 22px 0 0; color: #c9d3e1; font-size: 16px; line-height: 1.75; }
.updated { margin-top: 18px; color: #8495aa; font-size: 12px; }
.legal-content { display: grid; gap: 16px; padding-bottom: 72px; }
.legal-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 31, 60, 0.78), rgba(4, 20, 40, 0.86));
}
.legal-card h2 { font-size: 29px; }
.legal-card h3 { margin-top: 22px; font-size: 21px; }
.legal-card p, .legal-card li { color: #c3cedc; font-size: 14px; line-height: 1.75; }
.legal-card p { margin: 13px 0 0; }
.legal-card ul { margin: 13px 0 0; padding-left: 21px; }
.legal-card a { color: var(--orange); text-underline-offset: 3px; }
.legal-card address { color: #c3cedc; font-size: 14px; font-style: normal; line-height: 1.75; }
.notice {
  border-left: 3px solid var(--orange);
  background: rgba(242, 163, 64, 0.07);
}
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: #8797aa; font-size: 11px; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--orange); }

.error-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.error-main { display: grid; place-items: center; padding: 64px 0; text-align: center; }
.error-code {
  color: transparent;
  background: linear-gradient(135deg, #fff 12%, var(--orange) 50%, #fff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  font: 700 clamp(110px, 25vw, 260px)/0.8 "Rajdhani", sans-serif;
  letter-spacing: -0.07em;
  filter: drop-shadow(0 0 34px rgba(242, 163, 64, 0.14));
}
.error-main h1 { margin-top: 28px; font-size: clamp(36px, 6vw, 58px); }
.error-main p { max-width: 570px; margin: 18px auto 28px; color: #b8c4d3; line-height: 1.7; }
.error-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #06162b;
  background: var(--orange);
  border: 1px solid var(--orange);
  font: 700 13px "Rajdhani", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}
.button.secondary { color: #fff; background: transparent; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }

@media (max-width: 620px) {
  .site-header-inner { min-height: 78px; }
  .logo-crop { width: 96px; }
  .page-hero { padding-top: 54px; }
  .legal-card { padding: 22px; }
  .site-footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
