:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5f6b7a;
  --line: #d8e0e8;
  --line-soft: #e7edf3;
  --accent: #365d7f;
  --accent-dark: #284760;
  --max-width: 920px;
  --radius: 0;
  --shadow: none;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

.section-soft {
  background: transparent;
}

.site-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
  opacity: 0.9;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #f0f4f8;
  border-color: #c8d3de;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.legal-page-hero {
  padding-top: 64px;
  padding-bottom: 28px;
}

.legal-hero-card {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.legal-page-text {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.legal-hero-actions {
  margin-top: 28px;
}

.legal-page-section {
  padding-top: 18px;
  padding-bottom: 72px;
}

.legal-layout {
  display: block;
}

.legal-content {
  max-width: 760px;
}

.legal-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.legal-card + .legal-card {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.legal-card-head {
  margin-bottom: 22px;
}

.legal-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal-copy p,
.legal-copy ul,
.legal-copy ol {
  margin: 0 0 18px;
  font-size: 1rem;
}

.legal-copy p:last-child,
.legal-copy ul:last-child,
.legal-copy ol:last-child {
  margin-bottom: 0;
}

.legal-copy strong {
  font-weight: 600;
}

.legal-copy a {
  word-break: break-word;
}

.legal-copy ul,
.legal-copy ol {
  padding-left: 22px;
}

.legal-copy li + li {
  margin-top: 8px;
}

.legal-copy-tight p {
  margin-bottom: 16px;
}

.legal-agb-section + .legal-agb-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}

.legal-agb-section h3 {
  margin: 0 0 14px;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.4;
}

.legal-bottom-cta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  flex: 0 0 auto;
}

.footer-brand-link {
  margin-bottom: 0;
}

.footer-links-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 560px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links-group a {
  color: var(--text);
  font-size: 0.96rem;
}

.footer-links-group a:hover {
  color: var(--accent);
}

.footer-risk {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-risk-title {
  display: block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-risk p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
  }

  .footer-links-wrap {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .section {
    padding: 42px 0;
  }

  .site-topbar-inner {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .legal-page-hero {
    padding-top: 40px;
    padding-bottom: 18px;
  }

  .legal-page-text {
    font-size: 0.98rem;
  }

  .legal-card + .legal-card {
    margin-top: 42px;
    padding-top: 42px;
  }

  .legal-agb-section + .legal-agb-section {
    margin-top: 28px;
    padding-top: 28px;
  }

  .footer-links-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    padding-top: 42px;
  }
}