:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-accent: #e8eef7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #d9e2ee;
  --text: #102033;
  --muted: #516174;
  --link: #0f5ea8;
  --link-hover: #0b4b86;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.08);
  --radius: 22px;
  --max-width: 900px;
}

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

html {
  background:
    radial-gradient(circle at top left, rgba(15, 94, 168, 0.08), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.selector-shell {
  padding-top: 26px;
}

.hero,
.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  margin-bottom: 20px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7fafd;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.page-nav-link:hover {
  color: var(--text);
  border-color: #b9c9db;
  background: #eef4fb;
  transform: translateY(-1px);
}

.page-nav-link[aria-current='page'] {
  background: #102033;
  color: #ffffff;
  border-color: #102033;
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.logo {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.12);
  background: #eef4fb;
}

.hero-copy {
  min-width: 0;
}

.content {
  padding: 24px 28px;
  margin-top: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 70ch;
}

.hero-actions {
  margin-top: 20px;
}

.selector-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #102033;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease;
}

.app-link.secondary {
  background: #eef4fb;
  color: var(--text);
  border: 1px solid var(--border);
}

.app-link.secondary:hover {
  color: var(--text);
  background: #e4ecf6;
}

.app-link:hover {
  color: #ffffff;
  background: #18324d;
  transform: translateY(-1px);
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.policy-section + .policy-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.policy-section h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.policy-section p {
  margin: 0 0 12px;
}

.policy-section ul,
.policy-section ol {
  margin: 0 0 12px;
  padding-inline-start: 1.3rem;
}

.meta-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 16px 0;
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  word-break: break-word;
}

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

.language-card {
  display: block;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  text-decoration: none;
  color: var(--text);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.language-card:hover {
  color: var(--text);
  border-color: #b9c9db;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16, 32, 51, 0.08);
}

.language-card strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.language-card span {
  display: block;
  color: var(--muted);
  font-size: 0.97rem;
}

.switch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4fb;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding: 14px 0 28px;
  }

  .selector-shell {
    padding-top: 12px;
  }

  .hero,
  .content {
    padding: 20px;
    border-radius: 18px;
  }

  .page-nav {
    margin-bottom: 14px;
  }

  .hero-head {
    align-items: flex-start;
  }

  .logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .content {
    margin-top: 14px;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }
}
