:root {
  color-scheme: light dark;
  --bg: #070b14;
  --panel: #101827;
  --text: #f7f8fb;
  --muted: #9ca7bb;
  --accent: #36e2dc;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

body.shell {
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
}

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.app-icon-mark {
  display: grid;
  gap: 18px;
  justify-items: center;
  color: var(--text);
}

.app-icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.protected-logo {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.app-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.legal-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  margin-top: 28px;
  font-size: 1.05rem;
}

p, li {
  color: var(--muted);
}

ul {
  padding-left: 20px;
}

.meta {
  margin-top: 0;
  color: var(--muted);
}

.footer {
  width: min(900px, calc(100% - 32px));
  margin: auto auto 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-card {
    padding: 22px;
    border-radius: 14px;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --panel: #ffffff;
    --text: #121725;
    --muted: #4f5a6f;
    --accent: #08716e;
    --line: rgba(18, 23, 37, 0.12);
  }
}
