:root {
  --legal-bg: #252c36;
  --legal-surface: #2d3541;
  --legal-line: rgba(255, 255, 255, .09);
  --legal-text: #eef2f7;
  --legal-muted: #a7b0bc;
  --legal-accent: #55a7ff;
  --legal-width: 860px;
}

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

html { scroll-behavior: smooth; }

body.legal-page {
  margin: 0;
  min-height: 100vh;
  background: var(--legal-bg);
  color: var(--legal-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.legal-skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--legal-accent);
  color: #102235;
  font-weight: 700;
}

.legal-skip:focus { top: 16px; }

.legal-header {
  border-bottom: 1px solid var(--legal-line);
  background: rgba(37, 44, 54, .96);
}

.legal-header-inner,
.legal-footer-inner {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header-inner { min-height: 78px; }

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--legal-text);
  text-decoration: none;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.legal-brand span { display: grid; }
.legal-brand strong { font-size: 15px; line-height: 1.2; }
.legal-brand small { color: var(--legal-muted); font-size: 10px; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.legal-nav a,
.legal-footer a {
  color: var(--legal-muted);
  font-size: 12px;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--legal-accent);
}

.legal-main {
  width: min(calc(100% - 40px), var(--legal-width));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--legal-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legal-main h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.legal-version {
  margin: 14px 0 40px;
  color: var(--legal-muted);
  font-size: 13px;
}

.legal-intro {
  margin: 0 0 42px;
  padding: 22px 24px;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: var(--legal-surface);
  color: #d7dde5;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--legal-line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

.legal-section p {
  margin: 0 0 12px;
  color: #cbd3dc;
  font-size: 15px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section .legal-notice {
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--legal-accent);
  color: var(--legal-accent);
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 21px;
  color: #cbd3dc;
}

.legal-section li { margin: 7px 0; }

.legal-contact {
  color: var(--legal-accent);
  overflow-wrap: anywhere;
}

.legal-footer {
  border-top: 1px solid var(--legal-line);
  background: #20262f;
}

.legal-footer-inner {
  min-height: 96px;
  color: var(--legal-muted);
  font-size: 12px;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 720px) {
  .legal-header-inner,
  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  .legal-nav,
  .legal-footer-links { justify-content: flex-start; }
  .legal-main { padding: 52px 0 64px; }
  .legal-intro { padding: 18px; }
}

/* StudioBoard — logo oficial e assinatura visual */
.legal-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: #02050e;
  border: 1px solid rgba(78, 137, 255, .38);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(40, 83, 255, .14);
}
.legal-brand strong {
  display: inline-flex;
  font-size: 16px;
  letter-spacing: -.025em;
}
.legal-brand .brand-studio { color: #fff; }
.legal-brand .brand-board {
  color: transparent;
  background: linear-gradient(110deg, #00c7ff 0%, #1687ff 34%, #4057ff 63%, #8a2cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.legal-brand small { color: #9ba9bd; text-transform: uppercase; letter-spacing: .14em; }


/* StudioBoard v7 — logo oficial circular, sem fundo quadrado. */
.legal-brand img {
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: 0 0 18px rgba(40, 83, 255, .16);
}
