:root {
  --content-max-width: 960px;
  --nav-height: 72px;
  --color-dark: #151c28;
  --color-mid: #26404f;
  --color-accent: #5b9fd9;
  --color-accent-light: #6bb3e8;
  --color-white: #ffffff;
  --font-nav: 1rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-white);
  overflow-x: hidden;
}
.fixed-gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #151c28 0%, #26404f 50%, #151c28 100%);
  background-size: 400% 400%;
  animation: diagonalFlow 25s ease-in-out infinite;
}
.global-ray-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(91, 159, 217, 0.16) 0, rgba(91, 159, 217, 0.16) 120px, rgba(91, 159, 217, 0.05) 200px, rgba(91, 159, 217, 0) 280px),
    linear-gradient(135deg, rgba(91, 159, 217, 0.2) 0%, rgba(107, 179, 232, 0.08) 50%, rgba(91, 159, 217, 0.2) 100%);
  background-size: 260% 260%;
  animation: diagonalFlow 30s ease-in-out infinite;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}
.page-content { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
@keyframes diagonalFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.nav { width: 100%; height: var(--nav-height); display: flex; align-items: center; justify-content: center; background: rgba(21,28,40,.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(91,159,217,.1); }
.nav.scrolled { background: rgba(21,28,40,.95); border-bottom: 1px solid rgba(91,159,217,.2); }
.nav-inner { width: 100%; max-width: 1200px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.15rem; font-weight: 600; color: var(--color-white); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.nav-logo-mark { width: 34px; height: 34px; object-fit: contain; display: block; flex: 0 0 auto; }
.nav-links { list-style: none; display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; transition: opacity .3s ease, transform .3s ease; }
.nav-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: var(--font-nav); font-weight: 400; padding: 8px 16px; border-radius: 8px; transition: all .25s ease; position: relative; }
body.is-resizing .nav-links { transition: none !important; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(91,159,217,.15); }
.nav-cta { background: linear-gradient(135deg,var(--color-accent),var(--color-accent-light)) !important; color: var(--color-dark) !important; font-weight: 600 !important; padding: 8px 20px !important; text-align: center; line-height: 1.2; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(91, 159, 217, 0.3); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; z-index: 1001; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-white); margin: 5px auto; transition: all .3s ease; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

main { width: 100%; max-width: var(--content-max-width); margin: 0 auto; padding: 72px 30px 40px; }
.legal-card { background: rgba(255,255,255,.92); color: #1e232d; border-radius: 16px; padding: 36px 30px; box-shadow: 0 16px 48px rgba(0,0,0,.18); }
h1 { margin-top: 0; font-size: 2.2rem; color: #111823; }
h2 { margin-top: 28px; color: #1a2433; }
p, li { line-height: 1.7; color: #2f3a4c; }
ul { padding-left: 1.25rem; }
.updated { color: #4f5d73; font-size: .95rem; margin-bottom: 1.2rem; }

.footer { margin-top: auto; padding: 40px 30px; text-align: center; border-top: 1px solid rgba(91, 159, 217, 0.1); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.42); margin: 0; }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 28, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 32px 20px calc(48px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: calc(100vh - var(--nav-height));
  }
  .nav-links.open { opacity: 1; pointer-events: all; transform: translateY(0); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
  .nav-links li { width: min(360px, 88%); }
  .nav-links a {
    font-size: 1.25rem;
    padding: 14px 24px;
    display: block;
    text-align: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a.active { background: rgba(91, 159, 217, 0.2); border-color: rgba(91, 159, 217, 0.3); }
  .nav-links .nav-cta { box-shadow: 0 8px 24px rgba(91, 159, 217, 0.35); }
  .nav-toggle { display: block; }
  main { padding-top: 44px; }
  .legal-card { padding: 28px 20px; }
}
