:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --text: #f4f4f4;
  --muted: #b9b9b9;
  --line: #2c2c2c;
  --accent: #c82e20;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

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

.logo-wrap {
  width: min(88vw, 760px);
}

.logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.site-footer {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8d8d8;
  font-size: 0.85rem;
  line-height: 1;
  background: rgba(5, 5, 5, 0.78);
  padding: 10px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .divider { color: #777; }

.legal-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 110px;
}

.brand-link {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.brand-link:hover,
.brand-link:focus-visible { color: #fff; }

.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

h1 {
  margin: 0 0 30px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

h2 {
  margin: 36px 0 12px;
  font-size: 1.15rem;
}

p, li {
  color: #d7d7d7;
  line-height: 1.7;
}

address {
  color: #d7d7d7;
  font-style: normal;
  line-height: 1.7;
}

.legal-card a {
  color: #fff;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.note {
  margin-top: 36px;
  color: #9f9f9f;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .home-main { padding: 20px 14px 96px; }
  .logo-wrap { width: min(96vw, 600px); }
  .site-footer {
    right: 50%;
    transform: translateX(50%);
    bottom: 12px;
    width: max-content;
    max-width: calc(100vw - 20px);
    justify-content: center;
    font-size: 0.8rem;
  }
  .legal-main { width: min(100% - 24px, 920px); padding-top: 30px; }
  .legal-card { border-radius: 14px; }
}
