/* ==========================================================================
   Arrow Puzzle - Legal & Privacy Web Suite Design System
   Publisher: DSky Solution | Product: Arrow Puzzle
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-glass: rgba(30, 41, 59, 0.72);
  --bg-surface-elevated: #273549;
  
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.25);
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-link: #38bdf8;
  --text-link-hover: #7dd3fc;

  /* Accent Colors */
  --brand-primary: #0284c7;
  --brand-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #818cf8 100%);
  --brand-glow: rgba(56, 189, 248, 0.2);
  --accent-success: #10b981;
  --accent-success-bg: rgba(16, 185, 129, 0.12);
  --accent-warning: #f59e0b;
  --accent-warning-bg: rgba(245, 158, 11, 0.12);
  --accent-info: #0ea5e9;
  --accent-info-bg: rgba(14, 165, 233, 0.12);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout & Sizing */
  --container-max: 1200px;
  --sidebar-width: 290px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);
  --bg-surface-elevated: #ffffff;

  --border-subtle: rgba(100, 116, 139, 0.15);
  --border-strong: rgba(100, 116, 139, 0.28);
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-link: #0284c7;
  --text-link-hover: #0369a1;

  --brand-primary: #0284c7;
  --brand-glow: rgba(2, 132, 199, 0.15);
  --accent-success-bg: rgba(16, 185, 129, 0.1);
  --accent-warning-bg: rgba(245, 158, 11, 0.1);
  --accent-info-bg: rgba(14, 165, 233, 0.1);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-glass: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Ambient Orbs */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  transition: opacity var(--transition-normal);
}

[data-theme="light"] .ambient-orb {
  opacity: 0.2;
}

.orb-1 {
  top: -100px;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #0284c7 0%, rgba(56, 189, 248, 0) 70%);
}

.orb-2 {
  top: 40%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

.orb-3 {
  bottom: 5%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0ea5e9 0%, rgba(14, 165, 233, 0) 70%);
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--brand-glow);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

/* Theme Toggle Button */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 48px 24px 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-info-bg);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.hero-text-col {
  flex: 1;
}

.hero-image-col {
  flex-shrink: 0;
}

.hero-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px var(--brand-glow);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-image-wrapper:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.hero-game-image {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  display: block;
}

.hero-image-caption {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.hero-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-badge:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.stat-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.stat-badge-info h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-badge-info p {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Main Layout Grid (TOC + Content) */
.page-layout {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 24px 80px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* Sidebar & Sticky TOC */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Search Box */
.search-container {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* TOC Navigation Items */
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.35;
}

.toc-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.toc-link.active {
  color: var(--brand-primary);
  background: var(--accent-info-bg);
  font-weight: 600;
}

.toc-index {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 18px;
}

.toc-link.active .toc-index {
  color: var(--brand-primary);
}

/* Content Area */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-height) + 20px);
  transition: border-color var(--transition-normal);
}

.legal-section:hover {
  border-color: var(--border-strong);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.section-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.section-copy-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

/* Typography Inside Content */
.legal-section p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.legal-section ul, .legal-section ol {
  margin: 12px 0 18px 24px;
  font-size: 0.95rem;
}

.legal-section li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

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

/* Callout Alert Boxes */
.callout-box {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid;
}

.callout-info {
  background: var(--accent-info-bg);
  border-color: rgba(14, 165, 233, 0.25);
  color: var(--text-secondary);
}

.callout-success {
  background: var(--accent-success-bg);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--text-secondary);
}

.callout-warning {
  background: var(--accent-warning-bg);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--text-secondary);
}

.callout-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.callout-content p {
  font-size: 0.885rem;
  margin-bottom: 0;
}

/* Data Safety Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.data-table th {
  background: var(--bg-surface-elevated);
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}

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

.data-table tr:hover td {
  background: rgba(148, 163, 184, 0.04);
}

/* Status Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-yes {
  background: var(--accent-success-bg);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-no {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.badge-optional {
  background: var(--accent-info-bg);
  color: var(--brand-primary);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-required {
  background: var(--accent-warning-bg);
  color: var(--accent-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Third-Party Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.service-card-header h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-card-header p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.service-card-link:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

/* Step-by-Step Instructions */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
  list-style: none;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Contact Card Box */
.contact-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  align-self: flex-start;
  box-shadow: 0 4px 14px var(--brand-glow);
}

.contact-email-btn:hover {
  transform: translateY(-2px);
  background: #0369a1;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

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

/* Floating Action / Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: #0369a1;
}

/* Hide Netlify Injected Badge & Drawer */
netlify-drawer,
#netlify-drawer,
.netlify-drawer,
[data-netlify-drawer],
.netlify-badge,
#netlify-badge,
.netlify-badge-container,
[class*="netlify-badge"],
[id*="netlify-badge"],
[data-netlify-badge],
iframe[name*="netlify"],
iframe[id*="netlify"],
div:has(> a[href*="netlify.com"]),
div:has(> [class*="netlify"]),
a[href*="netlify.com"][class*="badge"],
a[href*="netlify.com"][style*="position: fixed"],
div[style*="position: fixed"]:has(a[href*="netlify.com"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  max-width: 0 !important;
  max-height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-msg.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }

  .hero-card {
    padding: 28px 24px;
  }

  .hero-main-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-game-image {
    width: 110px;
    height: 110px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .legal-section {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0 16px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 24px 16px 16px;
  }

  .page-layout {
    padding: 12px 16px 60px;
  }

  .hero-badges-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .site-header,
  .ambient-background,
  .sidebar,
  .back-to-top,
  .btn-theme-toggle,
  .section-copy-btn,
  .search-container {
    display: none !important;
  }

  .page-layout {
    display: block !important;
    padding: 0 !important;
  }

  .hero-card,
  .legal-section {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 12px 0 !important;
    page-break-inside: avoid;
  }

  .data-table {
    border: 1px solid #cccccc !important;
  }

  .data-table th, .data-table td {
    border: 1px solid #cccccc !important;
    color: #000000 !important;
  }
}
