/* ProON legal pages — Signal style */
:root {
  --bg: #08090B;
  --bg-elevated: #0E1014;
  --bg-card: #12151A;
  --red: #F12632;
  --red-soft: rgba(241, 38, 50, 0.14);
  --red-line: rgba(241, 38, 50, 0.45);
  --text: #F5F6F7;
  --muted: #969BA5;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: #ff9ea4;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(241, 38, 50, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(241, 38, 50, 0.08), transparent 50%),
    var(--bg);
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 28px 20px 64px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.brand-back:hover {
  text-decoration: none;
  color: #fff;
}
.brand-back svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.back-link:hover {
  color: #ff9ea4;
  text-decoration: none;
}

.lang-switch,
.lang-switch-host {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.lang-flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.lang-flag-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.lang-flag-btn.is-active {
  color: #fff;
  background: var(--red-soft);
}
.lang-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lang-flag-code { line-height: 1; }

.lang-btn {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang-btn:hover {
  border-color: var(--red-line);
  color: var(--text);
}
.lang-btn.active {
  background: var(--red-soft);
  border-color: var(--red-line);
  color: #fff;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.legal-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #ffb4b8;
  margin: 26px 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 246, 247, 0.82);
  margin-bottom: 12px;
}

.legal-card ul {
  margin: 10px 0 14px 1.1rem;
  color: rgba(245, 246, 247, 0.8);
  font-size: 14px;
  line-height: 1.6;
  list-style: disc;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card strong {
  color: #fff;
  font-weight: 600;
}

.contact-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}

.contact-box p {
  margin-bottom: 8px;
}
.contact-box p:last-child {
  margin-bottom: 0;
}

.legal-links {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.legal-lang[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .legal-card {
    padding: 22px 18px 26px;
  }
  .legal-card h1 {
    font-size: 1.2rem;
  }
}
