* { box-sizing: border-box; }
:root {
  --ink: #111827;
  --text: #243042;
  --muted: #64748b;
  --line: #dbe3ef;
  --accent: #4f46e5;
  --accent-dark: #3730a3;
}
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(250, 204, 21, .13), transparent 30%),
    linear-gradient(250deg, rgba(14, 165, 233, .10), transparent 34%),
    linear-gradient(20deg, rgba(251, 113, 133, .08), transparent 38%),
    #fffdf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 227, 239, .9);
  backdrop-filter: blur(14px);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .12));
}
.brand-name-gradient {
  background: linear-gradient(135deg, #6366f1, #06b6d4 46%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.back {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}
.language-select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 9px;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: #c4cfdd;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, .22);
}
.btn.primary:hover {
  background: var(--accent-dark);
  color: #fff;
}
main.wrap { width: min(900px, calc(100% - 40px)); }
main { padding: 64px 0 78px; }
.panel {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
}
h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}
h2 {
  margin: 30px 0 10px;
  color: #111827;
  font-size: 20px;
}
p, li {
  color: #475569;
  line-height: 1.75;
}
ul { padding-left: 20px; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 28px;
}
.legal-content th,
.legal-content td {
  padding: 4px 12px 4px 0;
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
}
.legal-content th {
  width: 180px;
  color: var(--ink);
  font-weight: 800;
}
.legal-content td {
  color: var(--text);
}
.legal-content a {
  color: #0f766e;
  font-weight: 800;
}
.muted { color: #64748b; }
footer {
  padding: 48px 0 28px;
  color: #64748b;
  font-size: 14px;
  background: rgba(255,255,255,.92);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(150px, .65fr) minmax(150px, .65fr) minmax(250px, .95fr);
  gap: 28px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}
.footer-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, .10));
}
.footer-brand p {
  margin: 0;
  max-width: 360px;
  line-height: 1.65;
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer-col h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-col a {
  color: #475569;
  font-weight: 700;
}
.footer-col a:hover { color: var(--accent); }
.footer-support {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .88)),
    #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}
.footer-support h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}
.footer-support p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}
.footer-support a:not(.footer-login-btn) {
  color: #0f766e;
  font-weight: 900;
}
.footer-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  box-shadow: 0 14px 26px rgba(79, 70, 229, .22);
}
.footer-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(15, 118, 110, .20);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 680px) {
  .nav {
    height: auto;
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }
  .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .back {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
}
