@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-base: #080B12;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.05);
  --accent-cyan: #00F5FF;
  --accent-purple: #7B5CF0;
  --text-primary: #F0F4FF;
  --text-secondary: rgba(240, 244, 255, 0.6);
  --text-muted: rgba(240, 244, 255, 0.35);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-md: 12px;
  --radius-lg: 20px;
  --blur-glass: blur(16px);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

::selection {
  background: rgba(0, 245, 255, 0.2);
  color: var(--accent-cyan);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover { color: #fff; }

.policy-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.policy-nav .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--accent-cyan);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
}

.nav-back:hover {
  color: var(--accent-cyan);
}

.policy-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.policy-hero .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.app-tag svg {
  width: 14px;
  height: 14px;
}

.policy-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.policy-hero h1 span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.policy-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.policy-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.policy-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.policy-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.toc {
  background: var(--bg-surface);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
  opacity: 0.6;
}

.toc-list a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
}

.toc-list a:hover {
  color: var(--accent-cyan);
}

.policy-section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}

.policy-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-section h2 .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-section h2 .icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
}

.policy-section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 15px;
}

.policy-section ul, .policy-section ol {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.policy-section li::marker {
  color: var(--accent-cyan);
}

.info-box {
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-box svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-box {
  background: var(--bg-surface);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-top: 56px;
}

.contact-box h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-box p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #080B12;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-smooth);
}

.contact-box a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 245, 255, 0.3);
  color: #080B12;
}

.policy-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.policy-footer a {
  color: var(--text-muted);
}

.policy-footer a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 640px) {
  .policy-hero { padding: 40px 0 32px; }
  .policy-meta { gap: 12px; }
  .toc { padding: 20px; }
  .contact-box { padding: 20px; }
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 100px;
  padding: 3px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
  flex-shrink: 0;
}

.lang-switch:hover {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.14);
}

.lang-switch:focus-visible {
  border-color: #00F5FF;
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.28);
}

.lang-opt {
  position: relative;
  z-index: 2;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: rgba(240, 244, 255, 0.4);
  transition: color 240ms ease;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.lang-pill {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: calc(50% - 3px);
  background: #00F5FF;
  border-radius: 100px;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
  z-index: 1;
}

.lang-switch[data-lang="pt"] .lang-opt:first-child {
  color: #080B12;
}

.lang-switch[data-lang="en"] .lang-opt:last-child {
  color: #080B12;
}

.lang-switch[data-lang="en"] .lang-pill {
  transform: translateX(100%);
}
