:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --panel: rgba(14, 14, 14, 0.56);
  --panel-strong: rgba(18, 18, 18, 0.74);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
  --radius-card: 22px;
  --radius-pill: 999px;
  --hot: #ff2f73;
  --hot-dark: #ff5a47;
}

.light-mode {
  color-scheme: light;
  --bg: #f8f8f8;
  --text: #1f1f1f;
  --muted: rgba(31, 31, 31, 0.68);
  --border: rgba(20, 20, 20, 0.14);
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 42px rgba(28, 28, 28, 0.08);
  --shadow-soft: 0 12px 28px rgba(28, 28, 28, 0.06);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 10px 16px 22px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html.light-mode,
body.light-mode {
  background-color: #f8f8f8;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 0 12px;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-bottom: 26px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  color: var(--text);
}

header {
  text-align: center;
  margin-bottom: 28px;
}

h1 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.intro {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.55;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.04);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-grid {
  display: grid;
  align-items: stretch;
  gap: 14px;
}

.legal-section {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008)),
    rgba(9,9,11,0.975);
  box-shadow:
    var(--shadow),
    0 8px 24px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.08);
  opacity: 0;
  animation: fadeDown 0.78s ease-out both;
}

.light-mode .legal-section {
  border-color: rgba(17,24,39,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,246,247,0.95)),
    rgba(255,255,255,0.98);
  box-shadow:
    0 18px 42px rgba(15,23,42,0.1),
    0 0 0 1px rgba(17,24,39,0.045),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: rgba(245,245,245,0.9);
}

.legal-icon i {
  display: block;
  font-size: 0.86rem;
  line-height: 1;
}

.light-mode .legal-icon {
  color: rgba(31,31,31,0.78);
}

p {
  color: var(--muted);
  line-height: 1.6;
}

p + p {
  margin-top: 10px;
}

.contact-link {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  text-underline-offset: 3px;
}

.light-mode .section-label {
  border-color: rgba(20,20,20,0.16);
  background: rgba(255,255,255,0.5);
}

.updated {
  margin-top: 24px;
  color: rgba(245,245,245,0.48);
  font-size: 0.82rem;
  text-align: center;
}

@media (min-width: 720px) {
  body {
    padding: 16px 32px 32px;
  }

  .legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .legal-section {
    display: flex;
    width: auto;
    margin-bottom: 0;
  }

  .legal-section.wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  body {
    padding: 10px 14px 24px;
  }

  .legal-section {
    padding: 18px 18px 16px;
  }

}

.back-link {
  opacity: 0;
  animation: fadeDown 0.78s ease-out 0.1s both;
}

header {
  opacity: 0;
  animation: fadeDown 0.78s ease-out 0.22s both;
}

.legal-section:nth-child(1) { animation-delay: 0.34s; }
.legal-section:nth-child(2) { animation-delay: 0.4s; }
.legal-section:nth-child(3) { animation-delay: 0.46s; }
.legal-section:nth-child(4) { animation-delay: 0.52s; }
.legal-section:nth-child(5) { animation-delay: 0.58s; }
.legal-section:nth-child(6) { animation-delay: 0.64s; }
.legal-section:nth-child(7) { animation-delay: 0.7s; }

@media (min-width: 720px) {
  .legal-section:nth-child(1),
  .legal-section:nth-child(2) { animation-delay: 0.34s; }

  .legal-section:nth-child(3),
  .legal-section:nth-child(4) { animation-delay: 0.46s; }

  .legal-section:nth-child(5),
  .legal-section:nth-child(6) { animation-delay: 0.58s; }

  .legal-section:nth-child(7) { animation-delay: 0.7s; }
}

.updated {
  opacity: 0;
  animation: fadeDown 0.78s ease-out 0.78s both;
}

.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.page-top .back-link {
  margin-bottom: 0;
}

.language-switcher {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
}

.language-current {
  width: 50px;
  height: 50px;
  position: relative;
  display: grid;
  grid-template-rows: 17px 13px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.24s ease, background 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.language-current i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
}

.language-current span {
  display: block;
  line-height: 1;
  text-indent: 0.08em;
}
.language-switcher.is-open .language-current {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 3px rgba(255,255,255,0.08);
}

.language-current.is-pressed {
  opacity: 1;
}

.language-current:active {
  opacity: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 108px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(9,9,11,0.96);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.language-switcher.is-open .language-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


.language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.language-menu a span {
  font-size: 0.68rem;
  letter-spacing: 0;
  font-weight: 800;
  text-transform: none;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.light-mode .language-current {
  background: rgba(255,255,255,0.72);
}

.light-mode .language-current.is-pressed,
.light-mode .language-current:active {
  background: rgba(255,255,255,0.88);
}

.light-mode .language-switcher.is-open .language-current {
  box-shadow: 0 12px 28px rgba(15,15,15,0.14), inset 0 1px 0 rgba(255,255,255,0.82), 0 0 0 3px rgba(20,20,20,0.14);
}

.light-mode .language-switcher.is-open .language-current.is-pressed,
.light-mode .language-switcher.is-open .language-current:active {
  box-shadow: 0 12px 28px rgba(15,15,15,0.14), inset 0 1px 0 rgba(255,255,255,0.82), 0 0 0 3px rgba(20,20,20,0.14);
}

.light-mode .language-menu {
  border-color: rgba(20,20,20,0.14);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 42px rgba(28,28,28,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}

.light-mode .language-menu a:hover,
.light-mode .language-menu a[aria-current="true"] {
  background: rgba(20,20,20,0.07);
}

footer {
  position: relative;
  z-index: 50;
  isolation: isolate;
  pointer-events: auto;
  margin-top: 56px;
  padding: 28px 0 5px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: rgba(255,255,255,0.54);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 8px;
}

.legal-note {
  position: relative;
  z-index: 51;
  pointer-events: auto;
  color: inherit;
}

.legal-note a {
  position: relative;
  z-index: 52;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  pointer-events: auto;
}

.legal-note a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-age {
  color: inherit;
  line-height: 1.45;
}

.light-mode footer {
  color: rgba(31,31,31,0.56);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


