/* ==========================================================================
   AURA PDF — Official Legal Website Stylesheet
   Design System: Electric Indigo, Emerald Mint, Radiant Amber, Coral Flame
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Electric Indigo */
  --primary-50: #F0F0FF;
  --primary-100: #E0E0FF;
  --primary-200: #C2C0FF;
  --primary-400: #8F85FF;
  --primary-500: #635BFF;
  --primary-700: #4338CA;
  --primary-900: #1E1B4B;

  /* Emerald (Privacy / Security / Success) */
  --emerald-100: #ECFDF5;
  --emerald-500: #10B981;
  --emerald-700: #047857;
  --emerald-bg: #ECFDF5;
  --emerald-border: #A7F3D0;
  --emerald-text: #065F46;

  /* Amber (Highlights / Notices) */
  --amber-100: #FFFBEB;
  --amber-500: #F59E0B;
  --amber-700: #B45309;
  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;
  --amber-text: #92400E;

  /* Coral (Danger / Action) */
  --coral-100: #FEF2F2;
  --coral-500: #FF5757;
  --coral-700: #B91C1C;
  --coral-bg: #FEF2F2;
  --coral-border: #FECACA;
  --coral-text: #991B1B;

  /* Light Theme Neutrals */
  --bg-color: #F8FAFC;
  --surface-color: #FFFFFF;
  --surface-alt: #F1F5F9;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  
  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  
  /* Accents */
  --accent-primary: #635BFF;
  --accent-hover: #4338CA;
  --accent-subtle: #F0F0FF;
  --accent-border: #C2C0FF;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px -5px rgba(99, 91, 255, 0.25);
  
  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Header Height */
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   Dark Mode System (Obsidian Midnight)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-color: #0B0F19;
  --surface-color: #151B2B;
  --surface-alt: #1E2638;
  --card-bg: #151B2B;
  --border-color: #222C40;
  --border-light: #1A2234;

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;

  --accent-primary: #8F85FF;
  --accent-hover: #A8A0FF;
  --accent-subtle: rgba(99, 91, 255, 0.15);
  --accent-border: rgba(143, 133, 255, 0.3);

  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);
  --emerald-text: #34D399;

  --amber-bg: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.3);
  --amber-text: #FBBF24;

  --coral-bg: rgba(255, 87, 87, 0.12);
  --coral-border: rgba(255, 87, 87, 0.3);
  --coral-text: #F87171;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px -5px rgba(143, 133, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   Layout Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
}

/* --------------------------------------------------------------------------
   Sticky Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .site-header {
  background-color: rgba(11, 15, 25, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.brand-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(99, 91, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: var(--surface-alt);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.theme-icon {
  width: 20px;
  height: 20px;
}

.theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
  color: var(--amber-500);
}

/* Hamburger Toggle Button */
.menu-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background-color: var(--surface-alt);
  border: 1px solid var(--border-color);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-content {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open .mobile-nav-content {
  transform: translateY(0);
}

.mobile-nav-link {
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: radial-gradient(circle at 50% -20%, rgba(99, 91, 255, 0.12) 0%, rgba(99, 91, 255, 0) 70%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 50% -20%, rgba(143, 133, 255, 0.15) 0%, rgba(11, 15, 25, 0) 75%);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  box-shadow: 0 0 8px var(--emerald-500);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.trust-badge-icon {
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   Privacy Summary Callout Card (Emerald)
   -------------------------------------------------------------------------- */
.summary-card {
  background: var(--emerald-bg);
  border: 1.5px solid var(--emerald-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin: var(--space-2xl) auto 0;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.1);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--emerald-500), var(--emerald-700));
}

.summary-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.summary-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: var(--emerald-500);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.summary-icon-box svg {
  width: 26px;
  height: 26px;
}

.summary-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-2xs);
}

.summary-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-text);
}

.summary-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.summary-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.pillar-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.pillar-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-icon.safe {
  background-color: var(--emerald-bg);
  color: var(--emerald-500);
}

.pillar-icon.info {
  background-color: var(--primary-50);
  color: var(--primary-500);
}

[data-theme="dark"] .pillar-icon.info {
  background-color: var(--accent-subtle);
  color: var(--primary-400);
}

.pillar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pillar-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Table of Contents (Sidebar)
   -------------------------------------------------------------------------- */
.sidebar-toc {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - var(--space-2xl));
  overflow-y: auto;
  padding-right: var(--space-xs);
}

.toc-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.toc-header {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

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

.toc-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.toc-num {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  width: 18px;
  flex-shrink: 0;
}

.toc-link:hover {
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
}

.toc-link.active {
  color: var(--accent-primary);
  font-weight: 600;
  background-color: var(--accent-subtle);
  border-left-color: var(--accent-primary);
}

.toc-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: var(--space-sm) 0;
}

/* Mobile Quick TOC */
.mobile-toc-bar {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
}

.mobile-toc-details summary {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-primary);
  cursor: pointer;
  outline: none;
}

.mobile-toc-list {
  margin-top: var(--space-md);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

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

.section-group {
  margin-bottom: var(--space-3xl);
}

.section-group-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.section-group-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-group-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Policy Content Cards */
.legal-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.legal-card:hover {
  border-color: var(--accent-border);
}

.legal-card.featured-emerald {
  border-color: var(--emerald-border);
  background: linear-gradient(180deg, var(--emerald-bg) 0%, var(--card-bg) 35%);
}

.legal-card.featured-amber {
  border-color: var(--amber-border);
  background: linear-gradient(180deg, var(--amber-bg) 0%, var(--card-bg) 35%);
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.section-number-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.card-body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.card-body p {
  margin-bottom: var(--space-md);
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card-body ul {
  list-style: none;
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body ul li {
  position: relative;
  padding-left: 24px;
}

.card-body ul li::before {
  content: '•';
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Feature Tag Pills Grid */
.feature-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-md) 0 var(--space-sm);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-tag svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-500);
}

/* Callout Box inside Card */
.notice-box {
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.notice-box.emerald {
  background-color: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
}

.notice-box.amber {
  background-color: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
}

.notice-box.coral {
  background-color: var(--coral-bg);
  border: 1px solid var(--coral-border);
  color: var(--coral-text);
}

.notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.notice-content {
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Permission Grid */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.permission-card {
  background-color: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.permission-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.permission-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xs);
}

.permission-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.permission-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.permission-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.permission-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* External Link Button */
.action-btn-row {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background-color: var(--primary-500);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-700);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 91, 255, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background-color: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
  transform: translateY(-1px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Data Deletion Step Badges */
.deletion-options-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.deletion-badge-card {
  background-color: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deletion-badge-card code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 4px;
}

.deletion-badge-card span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Contact Details Card */
.contact-highlight-card {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.08), rgba(16, 185, 129, 0.05));
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
}

.contact-email-box {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: var(--space-sm) 0 var(--space-md);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  border-color: var(--accent-border);
}

/* --------------------------------------------------------------------------
   Terms & Conditions Visual Separation
   -------------------------------------------------------------------------- */
.terms-section {
  position: relative;
  padding-top: var(--space-xl);
  margin-top: var(--space-3xl);
  border-top: 2px dashed var(--border-color);
}

.terms-banner {
  background: linear-gradient(135deg, var(--surface-alt), var(--card-bg));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.terms-banner-text h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.terms-banner-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.terms-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: auto;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-color);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.back-to-top-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .sidebar-toc {
    display: none;
  }

  .mobile-toc-bar {
    display: block;
    margin-bottom: var(--space-xl);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) {
  .mobile-toc-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-2xl: 36px;
    --space-3xl: 48px;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle-btn {
    display: flex;
  }

  .summary-pillars {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badges-group {
    flex-direction: column;
    width: 100%;
  }

  .trust-badge {
    width: 100%;
    justify-content: center;
  }

  .action-btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    justify-content: center;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Print Stylesheet
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .sidebar-toc,
  .theme-toggle-btn,
  .action-btn-row,
  .copy-btn,
  .back-to-top-btn,
  .mobile-toc-bar {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .content-wrapper {
    display: block;
    padding: 0;
  }

  .legal-card {
    border: 1px solid #CCCCCC !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 24px !important;
  }
}
