/* Red Point — legal pages (same neon-violet system as home) */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #0a0420;
  --bg-mid: #0f0630;
  --bg-panel: rgba(28, 12, 74, 0.55);
  --text: #ece7ff;
  --text-muted: #a99fcb;
  --violet: #8a3dff;
  --violet-soft: #b57cff;
  --red: #ff2a3d;
  --border: rgba(181, 124, 255, 0.18);
  --radius: 16px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(138, 61, 255, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 5% 95%, rgba(255, 42, 61, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
  background-color: var(--bg);
  min-height: 100vh;
  line-height: 1.65;
}

a {
  color: var(--violet-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--text-muted);
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button.lang-btn-active {
  background: linear-gradient(135deg, var(--violet), #5b21d6);
  color: #fff;
  box-shadow: 0 0 14px rgba(138, 61, 255, 0.45);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 2px;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo a,
.logo a:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(138, 61, 255, 0.45);
}

.nav-inline {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav-inline a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-inline a:hover {
  color: #fff;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: #fff;
}

.legal-page h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: #fff;
  letter-spacing: -0.015em;
}

.legal-page h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px 1px rgba(255, 42, 61, 0.7);
  vertical-align: middle;
}

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

.legal-page strong {
  color: #fff;
}

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

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

.legal-page li::marker {
  color: var(--violet-soft);
}

.legal-page .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  backdrop-filter: blur(10px);
}

.legal-page code {
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: rgba(138, 61, 255, 0.2);
  color: #d9c2ff;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer .nav-inline {
  justify-content: center;
  margin-bottom: 0.75rem;
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
