:root {
  --bg: #eff3f8;
  --bg-2: #f7f9fc;
  --text: #16202f;
  --muted: #6d7a8c;
  --muted-2: #8793a7;
  --line: rgba(140, 160, 190, 0.18);
  --line-strong: rgba(90, 112, 147, 0.16);
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --primary: #3d7cff;
  --primary-2: #6ea8ff;
  --success: #1eb980;
  --warning: #ffb648;
  --danger: #ff5d6c;
  --shadow: 0 20px 60px rgba(50, 70, 110, 0.12);
  --shadow-soft: 0 10px 30px rgba(70, 90, 130, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 18%, transparent 82%, rgba(255,255,255,.08));
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(117, 164, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(161, 230, 214, 0.18), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(187, 205, 255, 0.18), transparent 25%),
    linear-gradient(180deg, #eef3f8 0%, #f9fbfd 100%);
}

.glass-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.orb-one {
  width: 240px;
  height: 240px;
  top: -70px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, rgba(126, 175, 255, 0.55), rgba(126, 175, 255, 0.12) 60%, transparent 72%);
}

.orb-two {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: 60px;
  background: radial-gradient(circle at 30% 30%, rgba(138, 224, 193, 0.38), rgba(138, 224, 193, 0.10) 60%, transparent 72%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, h4, p, ul, ol { margin-top: 0; }
p, li { color: var(--muted); line-height: 1.75; }
ul, ol { padding-left: 22px; }
strong { color: var(--text); }

.container {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 12px;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-height: 86px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.64);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}


.brand-badge {
  width: 86px;
  height: 56px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.56) 54%, rgba(231, 241, 255, 0.72) 100%);
  border: 1px solid rgba(92, 135, 255, 0.16);
  box-shadow:
    0 14px 28px rgba(61, 124, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-badge::before {
  content: "";
  position: absolute;
  inset: -28%;
  background:
    radial-gradient(circle at 30% 22%, rgba(101, 180, 255, 0.22), transparent 36%),
    radial-gradient(circle at 78% 80%, rgba(57, 210, 192, 0.18), transparent 40%);
  pointer-events: none;
}

.brand-badge img {
  width: 76px;
  height: auto;
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(28, 72, 150, 0.2));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong { font-size: 1rem; }
.brand-copy small {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
  flex-wrap: wrap;
}

.nav a, .footer-links a {
  color: var(--muted);
  transition: color .18s ease;
}

.nav a:hover, .footer-links a:hover { color: var(--text); }

.btn {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 30px rgba(61, 124, 255, .22);
}

.btn-secondary {
  background: rgba(255,255,255,.75);
  border-color: var(--line);
  color: var(--text);
}

.legal-hero {
  padding: 84px 0 28px;
}

.legal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.06em;
}

.hero-text {
  max-width: 760px;
  font-size: 1.08rem;
  margin-bottom: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-card h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hero-card p {
  font-size: .95rem;
  margin-bottom: 0;
}

.quick-links {
  display: grid;
  gap: 10px;
}

.quick-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 700;
}

.quick-links a:hover { color: var(--text); border-color: rgba(61,124,255,.32); }

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0 84px;
}

.legal-toc {
  position: sticky;
  top: 118px;
  padding: 22px;
}

.legal-toc h2 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.legal-toc nav {
  display: grid;
  gap: 8px;
}

.legal-toc a {
  color: var(--muted);
  border-radius: 12px;
  padding: 9px 10px;
  transition: background .18s ease, color .18s ease;
}

.legal-toc a:hover {
  background: rgba(61,124,255,.08);
  color: var(--text);
}

.legal-content {
  padding: 34px;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.legal-section h3 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
}

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

.info-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  padding: 16px;
}

.info-box small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.info-box span,
.info-box a {
  color: var(--text);
  font-weight: 700;
  word-break: break-word;
}

.callout {
  margin: 18px 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(61,124,255,.18);
  background: linear-gradient(135deg, rgba(61,124,255,.09), rgba(110,168,255,.04));
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  margin: 18px 0;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th, td {
  vertical-align: top;
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text);
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

td { color: var(--muted); line-height: 1.65; }

tr:last-child td { border-bottom: 0; }

.meta-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  gap: 10px;
}

.meta-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: 900;
}

.footer {
  padding: 0 0 40px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 90px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 700;
}

.footer-note {
  color: var(--muted);
  font-size: .95rem;
}

@media (max-width: 980px) {
  .legal-hero-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-shell,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-shell .btn {
    width: 100%;
  }

  .legal-hero {
    padding-top: 56px;
  }

  .legal-content {
    padding: 22px;
  }

  .info-grid,
  .legal-toc nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.8rem;
  }
}


@media (max-width: 560px) {
  .brand-badge {
    width: 72px;
    height: 48px;
    border-radius: 17px;
    padding: 8px 9px;
  }

  .brand-badge img {
    width: 64px;
  }
}


/* Multilingual language switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(126, 157, 210, .18);
  box-shadow: 0 8px 22px rgba(56, 88, 140, .08);
  flex: 0 0 auto;
}
.lang-btn {
  border: 0;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #6d7a8c);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.lang-btn:hover {
  color: var(--text, #16202f);
  transform: translateY(-1px);
}
.lang-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #3d7cff), var(--primary-2, #6ea8ff));
  box-shadow: 0 10px 20px rgba(61, 124, 255, .22);
}
@media (max-width: 980px) {
  .header-shell {
    flex-wrap: wrap;
  }
  .language-switcher {
    order: 3;
    margin-left: auto;
  }
}
@media (max-width: 720px) {
  .language-switcher {
    width: 100%;
    justify-content: center;
    order: 5;
  }
  .lang-btn {
    flex: 1;
    max-width: 54px;
  }
}
