:root {
  --radius: 20px;
}

html[data-theme='dark'],
body[data-theme='dark'] {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --panel: rgba(30, 41, 59, 0.76);
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  --nav-bg: rgba(15, 23, 42, 0.92);
  --footer-bg: rgba(0, 0, 0, 0.24);
}

html[data-theme='light'],
body[data-theme='light'] {
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --text-2: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  --nav-bg: rgba(248, 250, 252, 0.92);
  --footer-bg: rgba(226, 232, 240, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.18) 0%, transparent 70%),
    var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand__logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand__logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 18%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav__actions a,
.back-link {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  padding: 68px 0 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero p {
  max-width: 70ch;
  color: var(--text-2);
  line-height: 1.75;
}

main {
  padding-bottom: 72px;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: 22px;
}

.legal-card h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.legal-card h3 {
  font-size: 1rem;
  margin: 24px 0 10px;
}

.legal-card p,
.legal-card li {
  color: var(--text-2);
  line-height: 1.75;
}

.legal-card ul {
  padding-left: 20px;
}

.note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
}

.footer__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
}

.footer__meta,
.footer__links a {
  color: var(--text-2);
  font-size: 13px;
}

.footer__links {
  display: flex;
  gap: 20px;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 46px;
  }

  .legal-card {
    padding: 22px;
  }

  .nav__inner,
  .footer__inner {
    align-items: flex-start;
  }
}
