* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(74, 144, 226, 0.12), transparent 30%),
    linear-gradient(180deg, #050a20 0%, #06102a 100%);
  color: #c5d7ff;
  overflow-x: hidden;
  padding-top: 84px;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10,23,64,0.85);
  border-bottom: 1px solid rgba(74,144,226,0.4);
  box-shadow: 0 0 15px rgba(74,144,226,0.4);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  z-index: 17;
  user-select: none;
}

header .logo {
  font-size: 28px;
  font-weight: 800;
  color: #4a90e2;
  margin-right: 50px;
  letter-spacing: 1px;
  cursor: default;
  text-shadow: 0 0 8px rgba(74,144,226,0.75);
}

nav.main-nav {
  display: flex;
  gap: 30px;
  user-select: none;
}

nav.main-nav a {
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: #aaccee;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 1;
  display: inline-block;
}

nav.main-nav a > span {
  position: relative;
  z-index: 2;
}

nav.main-nav a .svg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

nav.main-nav svg rect {
  stroke: #4a90e2;
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter:
    drop-shadow(0 0 6px #4a90e2)
    drop-shadow(0 0 12px #76b3ff)
    drop-shadow(0 0 20px #76b3ff);
  stroke-dasharray: 312;
  stroke-dashoffset: 312;
  transition: stroke-dashoffset 0.6s ease;
}

nav.main-nav a:hover svg rect,
nav.main-nav a:focus svg rect,
nav.main-nav a.active svg rect {
  stroke-dashoffset: 0;
}

nav.main-nav a:hover,
nav.main-nav a:focus,
nav.main-nav a.active {
  color: #76b3ff;
  text-shadow:
    0 0 8px #4a90e2,
    0 0 16px #76b3ff,
    0 0 24px #76b3ff;
  outline: none;
}

nav.main-nav a:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 3px;
}

/* BURGER */
#burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 20;
}

.burger-line {
  display: block;
  width: 28px;
  height: 3px;
  background: #76b3ff;
  margin: 5px 0;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(118,179,255,0.8);
}

/* SIDEBAR */
#sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: rgba(10,23,64,0.98);
  border-left: 1px solid rgba(74,144,226,0.35);
  box-shadow: -8px 0 25px rgba(74,144,226,0.18);
  z-index: 30;
  transition: right 0.35s ease;
  padding: 90px 22px 20px;
}

#sidebar.open {
  right: 0;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-menu a {
  color: #cfe2ff;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(5,10,32,0.35);
  border: 1px solid rgba(74,144,226,0.2);
}

.sidebar-menu a:hover {
  color: #ffffff;
  background: rgba(74,144,226,0.2);
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 25;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* HERO */
.hero {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(74,144,226,0.18), transparent 45%),
    linear-gradient(180deg, rgba(10,23,64,0.9), rgba(5,10,32,1));
  box-shadow: inset 0 -50px 60px -30px rgba(10,23,64,0.95);
}

.hero .content {
  max-width: 900px;
  text-shadow: 0 0 20px rgba(74,144,226,0.7);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #e0f0ff;
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #aaccee;
}

/* MAIN CONTENT */
.legal-page {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

.legal-intro,
.legal-card {
  background: rgba(10,23,64,0.6);
  border: 1px solid rgba(74,144,226,0.35);
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(74,144,226,0.35);
}

.legal-intro {
  padding: 28px 24px;
  margin-bottom: 28px;
}

.legal-intro h2,
.legal-card h2 {
  color: #76b3ff;
  text-shadow: 0 0 12px rgba(118,179,255,0.75);
}

.legal-intro h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.legal-intro p {
  color: #bddaff;
  line-height: 1.65;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.legal-contents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-link {
  display: block;
  text-decoration: none;
  color: #cfe2ff;
  background: rgba(5,10,32,0.55);
  border: 1px solid rgba(74,144,226,0.3);
  padding: 14px 16px;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  font-weight: 600;
  line-height: 1.35;
}

.legal-link:hover,
.legal-link:focus {
  color: #e0f0ff;
  background: rgba(74,144,226,0.22);
  box-shadow: 0 0 14px rgba(74,144,226,0.7);
  transform: translateY(-2px);
  outline: none;
}

.legal-section {
  margin-bottom: 22px;
  scroll-margin-top: 110px;
}

.legal-card {
  padding: 26px 24px;
}

.legal-card h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
}

.legal-card p {
  color: #bddaff;
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

/* FOOTER */
.site-footer {
  background-color: rgba(10, 23, 64, 0.85);
  border-top: 1px solid rgba(74, 144, 226, 0.4);
  box-shadow: 0 -2px 12px rgba(74, 144, 226, 0.5);
  padding: 18px 40px;
  color: #aaccee;
  user-select: none;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  max-width: 1150px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #76b3ff;
  text-shadow: 0 0 8px rgba(74, 144, 226, 0.7);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 0.9rem;
  color: #aaccee;
  font-weight: 500;
  text-shadow: none;
}

.footer-right {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer-link {
  font-size: 1.8rem;
  color: #aaccee;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-link:hover,
.footer-link:focus {
  color: #76b3ff;
  transform: scale(1.15);
  outline: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  header {
    padding: 12px 20px;
  }

  header .logo {
    font-size: 22px;
    margin-right: 18px;
  }

  nav.main-nav {
    gap: 14px;
  }

  nav.main-nav a {
    font-size: 15px;
    padding: 6px 10px;
  }

  .legal-contents {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .legal-intro h2,
  .legal-card h2 {
    font-size: 1.4rem;
  }

  .legal-card p,
  .legal-intro p {
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  body {
    padding-top: 76px;
  }

  header {
    padding: 10px 16px;
    gap: 12px;
  }

  header .logo {
    margin-right: 0;
    font-size: 20px;
  }

  nav.main-nav {
    display: flex;
    gap: 0;
    margin-left: auto;
  }

  nav.main-nav a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .legal-page {
    padding: 26px 14px 54px;
  }

  .legal-intro,
  .legal-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .site-footer {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-right {
    gap: 18px;
  }
}
