*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1a1f2e;
  --text-muted: #5c6478;
  --accent: #208aef;
  --accent-dark: #1565c0;
  --border: #e3e8f0;
  --max-width: 760px;
  --page-width: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --surface: #171d27;
    --text: #eef2f8;
    --text-muted: #9aa4b8;
    --border: #2a3344;
  }
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner,
.page-shell,
.site-footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #208aef, #63b3ff);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.page[hidden] {
  display: none !important;
}

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

.section-title {
  margin-top: 0;
}

.muted {
  color: var(--text-muted);
}

.muted.small {
  font-size: 0.95rem;
}

.page-bottom {
  margin-bottom: 3rem;
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(32, 138, 239, 0.08);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.link-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.link-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.legal-meta {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 0.92rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.legal-page h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.legal-page p,
.legal-page li {
  color: var(--text);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page li + li {
  margin-top: 0.35rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.highlight-box {
  border-color: var(--accent);
  background: rgba(32, 138, 239, 0.06);
}

.highlight-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.highlight-box li + li {
  margin-top: 0.5rem;
}


.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
}
