
:root {
  color-scheme: light;
  --primary: #e53935;
  --primary-hover: #c62828;
  --secondary: #1e3a8a;
  --secondary-hover: #162d6b;
  --background: #f5f5f5;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --soft-primary: #fff1f1;
  --soft-secondary: #eef2ff;
  --shadow: 0 18px 45px rgb(17 24 39 / 8%);
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgb(229 57 53 / 10%) 0, transparent 30%),
    radial-gradient(circle at top right, rgb(30 58 138 / 9%) 0, transparent 26%),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.page {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 8px 24px rgb(17 24 39 / 5%);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--soft-primary);
  color: var(--primary);
}

.nav-home {
  width: 38px;
  min-width: 38px;
  padding: 9px !important;
}

.nav-home svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.language-selector {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 8px 24px rgb(17 24 39 / 5%);
  backdrop-filter: blur(14px);
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.language-option:hover {
  background: var(--soft-secondary);
  color: var(--secondary);
}

.language-option-active {
  background: var(--secondary);
  color: white;
}

.language-option-active:hover {
  background: var(--secondary-hover);
  color: white;
}

.page {
  padding: 32px 0 56px;
}

.card {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 56px);
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  content: "";
}

.hero {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  box-shadow: 0 14px 26px rgb(229 57 53 / 22%);
  color: white;
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  background: var(--soft-secondary);
  color: var(--secondary);
}

.button-secondary:hover {
  background: #dfe7ff;
}

.legal-document h1,
.support-card h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

.legal-content {
  overflow-wrap: anywhere;
}

.legal-content h2,
.legal-content h3 {
  margin: 34px 0 12px;
  color: var(--text);
  letter-spacing: -0.03em;
}

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

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
}

.site-footer {
  padding: 0 0 32px;
  text-align: center;
}

.site-footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.site-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-separator {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .page {
    width: min(100% - 24px, 1040px);
  }

  .site-header {
    padding: 16px 0;
  }

  .brand {
    width: 100%;
    font-size: 18px;
  }

  .brand::before {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: 46px 1fr 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 8px;
    border-radius: 14px;
    background: var(--surface);
    font-size: 13px;
    text-align: center;
  }

  .nav-home {
    width: auto;
    min-width: 0;
    padding: 10px 8px !important;
  }

  .language-selector {
    width: 100%;
  }

  .language-option {
    flex: 1;
  }

  .page {
    padding: 16px 0 40px;
  }

  .card {
    border-radius: 20px;
    padding: 28px 18px;
  }

  .hero {
    min-height: 360px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: clamp(34px, 14vw, 48px);
    letter-spacing: -0.05em;
  }

  p,
  .legal-content {
    font-size: 16px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer p {
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }

  .footer-separator {
    display: none;
  }

  .language-selector {
    width: 100%;
    justify-content: space-between;
    border-radius: 18px;
  }

  .language-option {
    flex: 1;
    min-height: 38px;
    border-radius: 14px;
  }
}
