:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-elevated: #2a3038;
  --bg-glass: rgba(33, 38, 45, 0.6);

  --text-primary: #e6edf3;
  --text-secondary: #b0bac6;
  --text-tertiary: #7d8590;

  --accent-primary: #58a6ff;
  --accent-secondary: #3b82f6;
  --accent-tertiary: #1d4ed8;

  --success-primary: #34d399;
  --success-secondary: #10b981;

  --gradient-primary: linear-gradient(
    135deg,
    var(--accent-secondary) 0%,
    var(--accent-primary) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    var(--accent-secondary) 0%,
    #4c9aff 100%
  );
  --gradient-success: linear-gradient(
    135deg,
    var(--success-primary) 0%,
    var(--success-secondary) 100%
  );

  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 40px rgba(88, 166, 255, 0.15);
  --shadow-intense: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  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: 0.75rem 1rem;
  transition: all 0.4s var(--ease-smooth);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.nav.scrolled {
  background: rgba(13, 17, 23, 0.9);
  border-color: rgba(88, 166, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--shadow-glow);
  transform: scale(0.98);
}

.nav.scrolled::before {
  opacity: 0.02;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-bounce);
  position: relative;
  z-index: 10;
}

.nav-brand:hover {
  transform: scale(1.05);
}

.nav-brand-logo-text {
  height: 28px;
  width: auto;
  transition: all 0.3s ease;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.04);
}

.nav-back:hover {
  color: var(--text-primary);
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.3);
  transform: translateX(-3px);
}

.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 var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.nav-mobile-toggle:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.3);
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-bounce);
  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 1rem 4rem;
  background: radial-gradient(
    ellipse at center top,
    rgba(88, 166, 255, 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-tertiary);
}

.legal-content {
  background: var(--bg-glass);
  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;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-title {
  font-family: var(--font-body);
  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(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

.jurisdiction-box {
  background: rgba(88, 166, 255, 0.08);
  border: 2px solid rgba(88, 166, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.jurisdiction-box h4 {
  color: var(--accent-primary);
  font-family: var(--font-body);
  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: var(--font-body);
  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;
}

.data-table,
.cookie-table,
.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);
}

.data-table th,
.cookie-table th,
.service-table th {
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent-primary);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.data-table td,
.cookie-table td,
.service-table td {
  color: var(--text-secondary);
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.data-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
  width: 120px;
}

.data-table img,
.cookie-table img {
  vertical-align: middle;
  max-height: 20px;
}

.data-table tr:last-child td,
.cookie-table tr:last-child td,
.service-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(52, 211, 153, 0.1);
  color: var(--success-primary);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.cookie-status.optional {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cookie-status.disabled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.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: var(--font-body);
  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: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section h4 {
  font-family: var(--font-body);
  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(88, 166, 255, 0.05);
  border: 1px solid rgba(88, 166, 255, 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(52, 211, 153, 0.05);
  border-color: rgba(52, 211, 153, 0.2);
}

.highlight-box h4 {
  color: var(--accent-primary);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.highlight-box.warning h4 {
  color: #f59e0b;
}

.highlight-box.danger h4 {
  color: #ef4444;
}

.highlight-box.success h4 {
  color: var(--success-primary);
}

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem 0;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-line {
  padding: 0.5rem 0;
  line-height: 1.8;
}

.code-line:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.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: var(--font-mono);
  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);
}

.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(88, 166, 255, 0.05);
  border-color: rgba(88, 166, 255, 0.2);
}

.browser-item h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.browser-item p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 0;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

@media (max-width: 920px) {
  .nav-back {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem;
  }

  .nav {
    padding: 0.75rem 1rem;
  }

  .main-content {
    padding: 6rem 1rem 2rem;
  }

  .legal-content {
    padding: 2rem;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .service-table,
  .data-table,
  .cookie-table {
    font-size: 0.875rem;
  }

  .service-table th,
  .service-table td,
  .data-table th,
  .data-table td,
  .cookie-table th,
  .cookie-table td {
    padding: 0.75rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .toc {
    padding: 1rem;
  }

  .jurisdiction-box {
    padding: 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 1.5rem;
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .service-table,
  .data-table,
  .cookie-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-hero);
  border-radius: 10px;
}

::selection {
  background: rgba(88, 166, 255, 0.3);
  color: var(--text-primary);
}
