:root {
  color-scheme: dark;
  --wy-background-primary: #0E1424;
  --wy-background-secondary: #0B1020;
  --wy-surface-card: rgba(20, 27, 52, .78);
  --wy-surface-elevated: rgba(28, 37, 72, .70);
  --wy-text-primary: #F5F7FF;
  --wy-text-secondary: #A8B0D6;
  --wy-text-muted: #6C739B;
  --wy-accent-action: #FF4FA3;
  --wy-accent-info: #8FA7FF;
  --wy-accent-social: #FF8A7A;
  --wy-border: rgba(245, 247, 255, .12);
  --wy-border-strong: rgba(245, 247, 255, .18);
  --wy-radius-card: 18px;
  --wy-radius-sheet: 28px;
  --wy-radius-pill: 999px;
  --wy-shadow-card: 0 32px 110px rgba(2, 4, 12, .52);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--wy-text-primary);
  background:
    radial-gradient(900px 640px at 12% -8%, rgba(255, 79, 163, .16), transparent 58%),
    radial-gradient(820px 620px at 96% 2%, rgba(143, 167, 255, .16), transparent 56%),
    linear-gradient(135deg, var(--wy-background-primary), var(--wy-background-secondary) 52%, rgba(14, 20, 36, .96));
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -18% -30% -18%;
  height: 48vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(143, 167, 255, .13), transparent 72%);
  opacity: .70;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(245, 247, 255, .30) 0 1px, transparent 1.4px);
  background-size: 42px 42px;
  opacity: .10;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .92), rgba(0, 0, 0, .32) 64%, transparent);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .92), rgba(0, 0, 0, .32) 64%, transparent);
}

a {
  color: var(--wy-text-primary);
  text-decoration: none;
}

a:hover { text-decoration: none; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.legal-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 18px 22px 42px;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid var(--wy-border);
  border-radius: var(--wy-radius-card);
  background: rgba(20, 27, 52, .38);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(2, 4, 12, .22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 28px rgba(2, 4, 12, .30));
}

.brand-logo {
  display: block;
  width: auto;
  height: 76px;
  max-width: min(214px, 44vw);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: var(--wy-radius-pill);
  border: 1px solid var(--wy-border);
  background: rgba(20, 27, 52, .54);
  color: var(--wy-text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.pill:hover {
  border-color: var(--wy-border-strong);
  background: rgba(28, 37, 72, .72);
  transform: translateY(-1px);
}

.pill.social {
  background: rgba(255, 138, 122, .10);
  border-color: rgba(255, 138, 122, .22);
}

.pill.active {
  background: rgba(255, 79, 163, .14);
  border-color: rgba(255, 79, 163, .38);
}

.legal-panel {
  width: 100%;
  border: 1px solid var(--wy-border);
  background: linear-gradient(180deg, rgba(20, 27, 52, .72), rgba(20, 27, 52, .46));
  border-radius: 30px;
  padding: clamp(28px, 4vw, 54px);
  box-shadow: var(--wy-shadow-card), inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.legal-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.back-link,
.effective-date,
.legal-intro,
.legal-section p {
  color: rgba(168, 176, 214, .84);
}

.back-link {
  font-weight: 850;
  color: var(--wy-text-primary);
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  width: 208px;
  flex: 0 0 208px;
  padding: 0 6px 0 13px;
  border-radius: var(--wy-radius-pill);
  background: rgba(20, 27, 52, .54);
  border: 1px solid var(--wy-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .18s ease, background .18s ease;
}

.language-picker:hover,
.language-picker:focus-within {
  border-color: var(--wy-border-strong);
  background: rgba(28, 37, 72, .72);
}

.language-icon {
  position: static;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--wy-text-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: .9;
}

.language-select {
  min-height: 38px;
  width: 162px;
  min-width: 128px;
  max-width: 220px;
  padding: 8px 34px 8px 0;
  border: 0;
  border-radius: var(--wy-radius-pill);
  background: transparent;
  color: var(--wy-text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  outline: none;
  appearance: auto;
  color-scheme: dark;
}

.language-select option {
  background: #101A2B;
  color: var(--wy-text-primary);
}

h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.effective-date {
  margin: 12px 0 0;
  font-size: 14px;
}

.legal-intro {
  max-width: none;
  width: 100%;
  margin: 14px 0 26px;
  font-size: 17px;
  line-height: 1.58;
  text-align: justify;
  text-justify: inter-word;
}

.legal-section {
  padding: 18px 0;
  border-top: 1px solid rgba(245, 247, 255, .10);
}

.legal-section h2 {
  margin: 0 0 9px;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -.01em;
}

.legal-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 16px 2px 0;
  border-top: 1px solid var(--wy-border);
  color: rgba(168, 176, 214, .92);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--wy-text-primary);
  text-decoration: none;
  font-weight: 850;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal-error {
  color: rgba(168, 176, 214, .84);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .legal-wrap { padding: 14px 12px 28px; }
  .legal-panel { border-radius: 22px; padding: 20px; }
  .legal-top { margin-bottom: 24px; }
  .brand-mark { width: 52px; height: 52px; }
  .brand-logo { height: 64px; max-width: min(188px, 58vw); }
  .nav { width: 100%; justify-content: flex-start; gap: 8px; }
  .pill {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }
  .language-picker {
    min-height: 38px;
    width: 199px;
    flex-basis: 199px;
    padding-left: 12px;
  }
  .language-select {
    width: 154px;
    min-width: 118px;
    max-width: 180px;
    font-size: 13px;
  }
  .legal-top,
  .legal-actions { align-items: flex-start; }
  .site-footer { align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  h1 { font-size: 40px; line-height: 1.06; }
  .legal-section h2 { font-size: 19px; }
}

.legal-copyright {
  color: rgba(234, 241, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 18px 0 0;
}


/* Unified Wayonara legal layout refinement */
.legal-panel::before {
  content: "";
  display: block;
  height: 1px;
  margin: calc(clamp(28px, 4vw, 54px) * -1) calc(clamp(28px, 4vw, 54px) * -1) 24px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
}
.legal-section {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid rgba(245,247,255,.10);
}
.legal-section h2 { margin-top: 0; }
.legal-section p {
  width: 100%;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
}
.site-footer {
  width: 100%;
  margin-top: 26px;
  padding: 20px 2px 0;
}
@media (max-width: 760px) {
  .legal-wrap { padding-left: 12px; padding-right: 12px; }
  .legal-top { padding: 10px; }
  .legal-panel { border-radius: 24px; }
  .legal-section { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .legal-intro,
  .legal-section p { text-align: left; }
}
