:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-elevated: #222222;
  --bg-glass: rgba(255, 255, 255, 0.02);

  --text-primary: #ffffff;
  --text-secondary: #b8bcc8;
  --text-tertiary: #8b92a6;
  --text-quaternary: #6c7381;

  --accent-primary: #2563eb;
  --accent-secondary: #3b82f6;
  --accent-tertiary: #60a5fa;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  --gradient-hero: linear-gradient(
    135deg,
    #1e3a8a 0%,
    #2563eb 30%,
    #3b82f6 60%,
    #60a5fa 100%
  );

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  transition: all 0.4s ease;
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.2),
    0 0 40px rgba(37, 99, 235, 0.15);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.02;
  z-index: -1;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.nav-logo {
  width: 45px;
  height: 45px;
  background: var(--gradient-hero);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-logo::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gradient-hero);
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.05);
  }
}

.nav-brand-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-brand:hover {
  transform: scale(1.05);
}

.nav-brand:hover .nav-logo {
  transform: rotateY(15deg);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-back:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--text-primary);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(-5px);
}

.nav-back svg {
  transition: transform 0.3s ease;
}

.nav-back:hover svg {
  transform: translateX(-3px);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-mobile-toggle:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-mobile-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-mobile-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.main-content {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  background: radial-gradient(
    ellipse at center top,
    rgba(37, 99, 235, 0.05) 0%,
    transparent 50%
  );
}

.legal-container {
  max-width: 1000px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.breadcrumb a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-secondary);
}

.breadcrumb-separator {
  color: var(--text-quaternary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.data-table th {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.data-table td {
  color: var(--text-secondary);
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.legal-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-success);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

.legal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.legal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.01;
}

.jurisdiction-box {
  background: rgba(37, 99, 235, 0.08);
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.jurisdiction-box h4 {
  color: var(--accent-primary);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.toc h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5rem;
}

.toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
}

.toc-list a:hover {
  color: var(--accent-primary);
  padding-left: 1rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.cookie-table th {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.cookie-table td {
  color: var(--text-secondary);
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.cookie-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
}

.cookie-status.required {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cookie-status.optional {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cookie-status.disabled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.browser-settings {
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
}

.browser-settings h4 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.browser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.browser-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.browser-item:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
}

.browser-item h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.browser-item p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 0;
}

.legal-section {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
  scroll-margin-top: 6rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
}

.legal-section h2::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 3px;
}

.legal-section h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section h4 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent-secondary);
  margin: 1.25rem 0 0.5rem 0;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
  color: var(--text-secondary);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.highlight-box {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box.warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}

.highlight-box.danger {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
}

.highlight-box.success {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.highlight-box h4 {
  color: var(--accent-primary);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.highlight-box.warning h4 {
  color: var(--accent-warning);
}

.highlight-box.danger h4 {
  color: var(--accent-danger);
}

.highlight-box.success h4 {
  color: var(--accent-success);
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.service-table th {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.service-table td {
  color: var(--text-secondary);
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.service-table tr:last-child td {
  border-bottom: none;
}

.contact-info {
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
}

.contact-info h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.contact-value {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-value a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value a:hover {
  color: var(--accent-tertiary);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem;
  }

  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-back {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .main-content {
    padding: 6rem 1rem 2rem;
  }

  .legal-content {
    padding: 2rem;
  }

  .nav-brand-text {
    font-size: 1.25rem;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .service-table {
    font-size: 0.875rem;
  }

  .service-table th,
  .service-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 1.5rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .toc {
    padding: 1rem;
  }

  .jurisdiction-box {
    padding: 1.5rem;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-hero);
  border-radius: 10px;
}

::selection {
  background: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}
