@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-arabic-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-arabic-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-arabic-700.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-sc-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-sc-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-sc-700.woff2") format("woff2");
}

:root {
  --sunset-1: #6e5aa8;
  --sunset-2: #523c85;
  --sunset-3: #3b2a63;
  --sunset-4: #2a1e47;
  --sunset-5: #1b1634;
  --sky-1: #816aaf;
  --sky-2: #b798d4;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #02183f;
  font-family: "Noto Sans", "Noto Sans Arabic", "Noto Sans SC", "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", Tahoma, sans-serif;
  background:
    url("bg.jpg") center center / cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 16px 16px;
  overflow: hidden;
}

body.legal-body-page {
  overflow-y: auto;
}

.page {
  width: min(1100px, 100%);
  padding: 40px 24px 8px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  border-radius: 0 0 28px 28px;
  position: relative;
}

.legal-page {
  gap: 20px;
}

.legal-top {
  display: flex;
  justify-content: flex-end;
}

.legal-body {
  display: grid;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-body p {
  margin: 0;
}

.legal-body h3 {
  margin: 18px 0 6px;
  font-size: 1.05rem;
}

.legal-body h2 {
  margin: 22px 0 8px;
  font-size: 1.15rem;
}

.legal-body ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.legal-body a {
  color: inherit;
}

.page-section {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 0ms linear 240ms;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-section.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 240ms ease;
  height: auto;
  overflow: visible;
  pointer-events: auto;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  margin-bottom: 36px;
  color: #f7ecff;
}

.nav {
  margin-left: 8px;
}

.language-stack {
  margin-left: auto;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.brand,
.brand:visited {
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 150px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: #f7ecff;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  background-image: linear-gradient(rgba(247, 236, 255, 0.9), rgba(247, 236, 255, 0.9));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size 0.35s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background-size: 100% 2px;
}

.language-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  min-width: 0;
  flex-shrink: 0;
}

.language-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  min-width: 0;
}

.language-toggle {
  border-radius: 999px;
  border: 1px solid rgba(247, 236, 255, 0.6);
  background: rgba(27, 22, 52, 0.45);
  color: #f7ecff;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Noto Sans", "Noto Sans Arabic", "Noto Sans SC", "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", Tahoma, sans-serif;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  cursor: pointer;
  white-space: nowrap;
}

.language-toggle::after {
  content: "▼";
  font-size: 0.75rem;
  opacity: 0.75;
  margin-left: auto;
}

.language-menu {
  list-style: none;
  margin: 4px 0 0;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(247, 236, 255, 0.25);
  background: rgba(27, 22, 52, 0.7);
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  max-width: 240px;
  box-shadow: 0 16px 40px rgba(27, 22, 52, 0.3);
  display: none;
  max-height: none;
  overflow-y: visible;
  z-index: 20;
}

.language-picker.open .language-menu {
  display: grid;
  gap: 4px;
}

.language-option {
  padding: 8px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #f7ecff;
  cursor: pointer;
  font-family: "Noto Sans", "Noto Sans Arabic", "Noto Sans SC", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", Tahoma, sans-serif;
}

.language-option img,
.language-toggle img {
  width: 1.05em;
  height: 1.05em;
}

.language-option[aria-selected="true"] {
  background: rgba(247, 236, 255, 0.2);
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(247, 236, 255, 0.14);
}

.hero {
  display: grid;
  gap: 16px;
  padding: 32px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 20px 60px rgba(42, 28, 18, 0.15);
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(42, 28, 18, 0.25);
  background: rgba(42, 28, 18, 0.08);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.cta.primary {
  background: #dab884;
  color: #314e7a;
  border-color: transparent;
}

.cta.primary:hover,
.cta.primary:focus-visible {
  background: #314e7a;
  color: #dab884;
}

.section-title {
  margin: 40px 0 16px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(42, 28, 18, 0.12);
  display: grid;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  line-height: 1.5;
}

.card a {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
  font-size: 0.95rem;
}

.meta ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.meta button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.meta button:hover,
.meta button:focus-visible {
  text-decoration: underline;
}

.meta a {
  color: inherit;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.panel {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(42, 28, 18, 0.12);
}

.panel h3 {
  margin: 0 0 8px;
}

.panel ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
}

.manifesto {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.manifesto blockquote {
  margin: 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(42, 28, 18, 0.12);
  font-size: 1.05rem;
  line-height: 1.6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 28, 18, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.footer {
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.95rem;
  color: #102329;
  display: flex;
  flex-direction: column;
}

.footer-center {
  margin-top: auto;
  padding-top: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: #102329;
}

.footer a:hover,
.footer a:active,
.footer a:focus-visible {
  color: #3b3d63;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 12, 18, 0.45);
  backdrop-filter: blur(6px);
  z-index: 120;
}

.contact-modal.is-open {
  display: flex;
}

.contact-dialog {
  width: min(640px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(27, 22, 52, 0.35);
  display: grid;
  gap: 16px;
  position: relative;
}

.contact-dialog h2 {
  margin: 0;
  font-size: 1.35rem;
}

.contact-dialog p {
  margin: 0;
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(27, 22, 52, 0.2);
  background: rgba(27, 22, 52, 0.08);
  color: #2a1e47;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(27, 22, 52, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.contact-status {
  min-height: 1.2em;
  font-size: 0.95rem;
  color: #3b2a63;
}

.contact-status.is-error {
  color: #8b2c2c;
}

.back-home {
  display: inline-block;
  margin-top: 25px;
  color: #f7ecff;
  position: absolute;
  top: 100%;
  right: 0;
  white-space: nowrap;
}

.back-home.is-hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 700ms ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  body {
    padding: 0 12px 12px;
    overflow-y: auto;
    align-items: stretch;
  }

  .page {
    padding: 24px 16px 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-logo {
    height: 96px;
  }

  .nav {
    margin-left: 0;
    gap: 10px 14px;
  }

  .language-stack {
    margin-left: 0;
    align-items: flex-start;
  }

  .language-picker {
    align-items: flex-start;
  }

  .language-menu {
    right: auto;
    left: 0;
  }

  .back-home {
    position: static;
    margin-top: 8px;
  }

  .hero {
    padding: 20px;
  }

  .section-title {
    margin: 28px 0 12px;
    font-size: 1rem;
  }
}
