@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito+Sans:wght@500;600;700;800;900&display=swap");

:root {
  --midnight: #100b3a;
  --ink: #21164f;
  --paper: #fbfaff;
  --cyan: #25d9f5;
  --pink: #ff4ccf;
  --font-display: "omnes-pro", "Omnes", "Fredoka", Arial, sans-serif;
  --font-body: "omnes-pro", "Omnes", "Nunito Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 700;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.skipLink {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--midnight);
  background: white;
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skipLink:focus {
  transform: translateY(0);
}

.legalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 112px;
  padding: 18px max(28px, calc((100vw - 1320px) / 2));
  color: white;
  background: #080622;
}

.legalLogo {
  width: 210px;
}

.legalLogo picture,
.legalLogo img {
  display: block;
  width: 100%;
}

.homeLink {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.homeLink:hover,
.homeLink:focus-visible {
  color: var(--midnight);
  background: white;
}

.legalHero {
  position: relative;
  overflow: hidden;
  padding: 100px max(28px, calc((100vw - 1120px) / 2)) 94px;
  color: white;
  background:
    radial-gradient(circle at 84% 30%, rgba(37, 217, 245, 0.22), transparent 26%),
    radial-gradient(circle at 12% 100%, rgba(255, 76, 207, 0.28), transparent 30%),
    linear-gradient(135deg, #100b3a, #2b176d 62%, #101c58);
}

.legalKicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legalHero h1 {
  max-width: 950px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.legalHero p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  color: #ddd6f3;
  font-size: 1.05rem;
  line-height: 1.7;
}

.languageNav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid #e7e0f0;
  background: rgba(251, 250, 255, 0.95);
  backdrop-filter: blur(14px);
}

.languageNav a {
  padding: 10px 15px;
  border: 1px solid #ddd5ea;
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.languageNav a:hover,
.languageNav a:focus-visible {
  border-color: var(--pink);
  color: white;
  background: var(--pink);
}

.legalMain {
  width: min(calc(100% - 56px), 1040px);
  margin: 0 auto;
  padding: 82px 0 110px;
}

.languageSection,
.legalSection {
  scroll-margin-top: 90px;
}

.languageSection + .languageSection {
  margin-top: 90px;
  padding-top: 80px;
  border-top: 2px solid #e9e3f1;
}

.languageSection > h2,
.legalSection > h2 {
  margin: 0 0 26px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

.legalSection + .legalSection {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid #e6e0ee;
}

.languageSection h3 {
  margin: 46px 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.languageSection p,
.legalSection p {
  margin: 0 0 16px;
  color: #554b6e;
  font-size: 1rem;
  line-height: 1.75;
}

.languageSection .legalNotice {
  padding: 20px 22px;
  border-left: 5px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  color: var(--ink);
  background: #effcff;
  font-weight: 800;
}

@media (max-width: 620px) {
  .legalHeader {
    min-height: 90px;
    padding-inline: 20px;
  }

  .legalLogo {
    width: 155px;
  }

  .homeLink {
    padding: 10px 13px;
    font-size: 0.78rem;
  }

  .legalHero {
    padding: 74px 24px 72px;
  }

  .legalHero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .languageNav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .legalMain {
    width: calc(100% - 40px);
    padding: 62px 0 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
