:root {
  color-scheme: dark;
  --bg: #070d18;
  --bg-elevated: #0f1729;
  --surface: rgba(18, 26, 43, 0.72);
  --surface-hover: rgba(24, 36, 58, 0.9);
  --text: #f5f7fb;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar-w: 280px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Animated background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 18s var(--ease) infinite alternate;
}

.bg-mesh__orb--1 {
  width: 520px;
  height: 520px;
  background: #1d4ed8;
  top: -120px;
  left: -80px;
}

.bg-mesh__orb--2 {
  width: 400px;
  height: 400px;
  background: #0891b2;
  top: 30%;
  right: -100px;
  animation-delay: -6s;
}

.bg-mesh__orb--3 {
  width: 350px;
  height: 350px;
  background: #7c3aed;
  bottom: -80px;
  left: 30%;
  animation-delay: -12s;
}

.bg-mesh__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  border-bottom: none;
  min-width: 0;
}

.topbar__brand:hover,
.topbar__brand:focus,
.topbar__brand:visited,
.topbar__brand:active {
  text-decoration: none;
  border-bottom: none;
  outline: none;
}

.topbar__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.topbar__wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: none;
}

.topbar__search-wrap {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.topbar__search {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.topbar__search:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.topbar__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.topbar__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  padding: 48px 24px 32px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeUp 0.6s var(--ease) both;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.6s var(--ease) 0.1s both;
}

.hero__subtitle {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  animation: fadeUp 0.6s var(--ease) 0.2s both;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  animation: fadeUp 0.6s var(--ease) 0.3s both;
}

.hero__meta-item {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trust cards */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.trust-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  cursor: default;
  animation: fadeUp 0.5s var(--ease) both;
}

.trust-card:nth-child(1) { animation-delay: 0.1s; }
.trust-card:nth-child(2) { animation-delay: 0.15s; }
.trust-card:nth-child(3) { animation-delay: 0.2s; }
.trust-card:nth-child(4) { animation-delay: 0.25s; }

.trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.trust-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.trust-card__icon--green { background: rgba(52, 211, 153, 0.15); }
.trust-card__icon--blue { background: rgba(59, 130, 246, 0.15); }
.trust-card__icon--cyan { background: rgba(34, 211, 238, 0.15); }
.trust-card__icon--amber { background: rgba(251, 191, 36, 0.15); }

.trust-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.trust-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar__title {
  margin: 0 0 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar__link.is-active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-weight: 600;
}

.sidebar__num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar__link.is-active .sidebar__num {
  background: var(--accent);
  color: white;
}

/* Main content */
.content {
  min-width: 0;
}

.intro-card {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 24px;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.7;
}

.intro-card strong {
  color: var(--text);
}

/* Policy sections */
.policy-section {
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.policy-section.is-visible {
  animation: sectionIn 0.5s var(--ease) both;
}

.policy-section.is-highlight {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.policy-section.is-hidden {
  display: none;
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.section-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.section-header__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.section-header__text {
  flex: 1;
  min-width: 0;
}

.section-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-header__chevron {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), background 0.2s;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.policy-section.is-open .section-header__chevron {
  transform: rotate(180deg);
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.policy-section.is-open .section-body {
  max-height: 8000px;
}

.section-body__inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
}

.section-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.section-body h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.section-body ul,
.section-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
}

.section-body li {
  margin-bottom: 8px;
}

.section-body li strong {
  color: var(--text);
}

.section-body a {
  color: #93c5fd;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 197, 253, 0.3);
  transition: border-color 0.2s;
}

.section-body a:hover {
  border-bottom-color: #93c5fd;
}

/* Data category tabs */
.data-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.data-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.data-tab:hover {
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text);
}

.data-tab.is-active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.data-panel {
  display: none;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  animation: fadeUp 0.3s var(--ease);
}

.data-panel.is-active {
  display: block;
}

.data-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.data-panel__label--required { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.data-panel__label--optional { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.data-panel__label--never { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.service-card {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.25);
}

.service-card__provider {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.service-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.service-card p {
  margin: 0;
  font-size: 0.85rem;
}

/* Rights grid */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.right-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}

.right-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.right-card__icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.right-card h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.right-card p {
  margin: 0;
  font-size: 0.82rem;
}

/* Permission pills */
.perm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.perm-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.perm-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.perm-item h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.perm-item p {
  margin: 0;
  font-size: 0.85rem;
}

/* CTA / Contact */
.contact-cta {
  margin-top: 8px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  text-align: center;
}

.contact-cta h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.contact-cta p {
  margin: 0 0 20px;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.is-copied {
  background: rgba(52, 211, 153, 0.2) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #6ee7b7 !important;
}

/* Deletion steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.2s;
  z-index: 90;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Search no results */
.search-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

.search-empty.is-visible {
  display: block;
}

.search-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.is-open {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(var(--sidebar-w), 85vw);
    z-index: 160;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    max-height: none;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .topbar__menu-btn {
    display: grid;
    place-items: center;
  }

  .topbar__search-wrap {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 32px;
  }

  .topbar__wordmark {
    font-size: 0.95rem;
  }

  .topbar__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-header {
    padding: 16px 18px;
  }

  .section-body__inner {
    padding: 0 18px 20px;
  }

  .fab {
    bottom: 20px;
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

