/* ------------------------------------------------------------------
   Fonts
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------------ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #000000;
  color: #FFFFFF;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

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

/* ------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 28px;
  height: 28px;
  display: block;
}

.navbar-star {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.navbar-star svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: #FFFFFF;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.navbar-star:hover svg {
  transform: rotate(45deg);
  fill: #ff0000;
}

/* ------------------------------------------------------------------
   Legal hero
   ------------------------------------------------------------------ */

main {
  padding-top: 84px;
}

.legal-hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 60px 40px;
  text-align: center;
}

.legal-tag {
  position: relative;
  z-index: 1;
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.legal-title {
  position: relative;
  z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.legal-updated,
.legal-intro {
  position: relative;
  z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------------
   Legal content
   ------------------------------------------------------------------ */

.legal-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 30px;
  transition: border-color 0.3s ease;
}

.legal-block:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.legal-block h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 33px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  text-transform: lowercase;
}

.legal-block p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-block a:hover {
  color: #FFFFFF;
}

.legal-block--source .legal-source-url {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.3);
  word-break: break-all;
  margin-top: 16px;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 40px 20px;
}

.footer-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 150%;
  color: #707070;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
  .legal-hero {
    padding: 60px 20px 32px;
  }

  .legal-title {
    line-height: 54px;
  }

  .legal-content {
    padding: 0 20px 60px;
    gap: 24px;
  }

  .legal-block {
    padding: 24px;
  }

  .legal-block h2 {
    font-size: 20px;
    line-height: 27px;
  }

  .legal-block p {
    font-size: 16px;
    line-height: 24px;
  }

  .footer {
    gap: 16px;
    flex-wrap: wrap;
  }
}