/* ==========================================
   HOMEE CONSTRUCTION - PRIVACY POLICY STYLES
   Design System & Theme Engine
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Theme Tokens --- */
:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-dark: #0b1120;
  --bg-card-dark: #131c31;
  --bg-card-hover-dark: #1a2744;
  --bg-glass-dark: rgba(19, 28, 49, 0.85);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-accent-dark: rgba(245, 158, 11, 0.35);
  --text-main-dark: #f8fafc;
  --text-muted-dark: #94a3b8;
  --text-subtle-dark: #64748b;
  
  /* Color Palette - Light Theme */
  --bg-light: #f8fafc;
  --bg-card-light: #ffffff;
  --bg-card-hover-light: #f1f5f9;
  --bg-glass-light: rgba(255, 255, 255, 0.85);
  --border-light: rgba(0, 0, 0, 0.08);
  --border-accent-light: rgba(217, 119, 6, 0.3);
  --text-main-light: #0f172a;
  --text-muted-light: #475569;
  --text-subtle-light: #64748b;

  /* Brand Accents */
  --primary-amber: #f59e0b;
  --primary-amber-dark: #d97706;
  --primary-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.2);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.2);

  /* Dynamic Active Theme Variables */
  --bg-body: var(--bg-dark);
  --bg-card: var(--bg-card-dark);
  --bg-card-hover: var(--bg-card-hover-dark);
  --bg-glass: var(--bg-glass-dark);
  --border-color: var(--border-dark);
  --text-main: var(--text-main-dark);
  --text-muted: var(--text-muted-dark);
  --text-subtle: var(--text-subtle-dark);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);

  /* Typography Scale */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --base-font-size: 16px;

  /* Layout */
  --max-width: 1320px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
body.light-theme {
  --bg-body: var(--bg-light);
  --bg-card: var(--bg-card-light);
  --bg-card-hover: var(--bg-card-hover-light);
  --bg-glass: var(--bg-glass-light);
  --border-color: var(--border-light);
  --text-main: var(--text-main-light);
  --text-muted: var(--text-muted-light);
  --text-subtle: var(--text-subtle-light);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Reading Progress Bar --- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-amber), var(--accent-blue), var(--accent-emerald));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--primary-amber-glow);
}

/* --- Global Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top Navigation Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  height: 42px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.brand-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-amber), var(--primary-amber-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 4px 14px var(--primary-amber-glow);
  flex-shrink: 0;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 40%, var(--primary-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Search Bar Box */
.search-box {
  position: relative;
  width: 280px;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 40px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
  transition: all var(--transition-fast);
}

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

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

/* Action Icon Buttons */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-amber);
  color: var(--primary-amber);
  transform: translateY(-2px);
}

.btn-secondary-action {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-amber);
  color: var(--primary-amber);
  transform: translateY(-2px);
}

/* Font Size Resizer Controls */
.font-resizer-group {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 3px;
}

.font-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.font-btn.active, .font-btn:hover {
  background: var(--primary-amber);
  color: #ffffff;
}

/* --- Hero Header Section --- */
.hero-section {
  padding: 60px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.hero-backdrop-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-amber-glow) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

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

.hero-logo-box {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.25);
  border: 2px solid var(--border-accent-dark);
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hero-logo-img:hover {
  transform: scale(1.06);
}

.hero-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-effective {
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary-amber);
  border: 1px solid var(--border-accent-dark);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-amber), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

/* --- "At a Glance" Key Highlights Grid --- */
.at-a-glance-section {
  margin-bottom: 50px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-amber), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent-dark);
}

.highlight-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--primary-amber); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Main Layout Grid (TOC Sidebar + Reader Window) --- */
.main-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  padding-bottom: 80px;
  align-items: start;
}

/* Sidebar Sticky TOC */
.sidebar-toc {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-count {
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-amber);
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
}

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

.toc-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  line-height: 1.3;
}

.toc-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  min-width: 20px;
}

.toc-item a:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  padding-left: 16px;
}

.toc-item.active a {
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary-amber);
  font-weight: 600;
  border-left: 3px solid var(--primary-amber);
  padding-left: 14px;
}

.toc-item.active .toc-num {
  color: var(--primary-amber);
}

/* Reader Content Panel */
.policy-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

/* Policy Section Base */
.policy-section {
  margin-bottom: 50px;
  scroll-margin-top: calc(var(--header-height) + 30px);
  position: relative;
}

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

.section-header-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-number-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-amber);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-heading-text h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.policy-paragraph {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.7;
}

.policy-paragraph strong {
  color: var(--text-main);
}

/* Cards within Content */
.sub-category-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color var(--transition-fast);
}

.sub-category-card:hover {
  border-color: var(--border-accent-dark);
}

.sub-category-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-category-title i {
  color: var(--primary-amber);
}

/* Bullet list inside sections */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-amber);
  font-weight: 800;
  font-size: 0.9rem;
}

/* --- Prominent Disclosure Alert Cards --- */
.prominent-disclosure-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(59, 130, 246, 0.08));
  border: 1.5px solid var(--primary-amber);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 24px 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

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

.disclosure-badge {
  background: var(--primary-amber);
  color: #000000;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 50px;
}

.disclosure-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.disclosure-pills-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.permission-pill {
  font-family: monospace;
  font-size: 0.8rem;
  background: var(--bg-card);
  color: var(--primary-amber);
  border: 1px solid var(--border-accent-dark);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
}

/* Contact Info Card */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-accent-dark);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-amber);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
  color: var(--primary-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-card-detail {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--primary-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-value {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.btn-copy {
  border: 1px solid var(--border-accent-dark);
  background: rgba(245, 158, 11, 0.08);
  color: var(--primary-amber);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--primary-amber);
  color: #000000;
  border-color: var(--primary-amber);
  box-shadow: 0 2px 10px var(--primary-amber-glow);
}

/* --- Deletion Request Interactive Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-amber);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--primary-amber), var(--primary-amber-dark));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  opacity: 0.95;
  box-shadow: 0 4px 14px var(--primary-amber-glow);
}

/* Toast Banner */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--primary-amber);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 1100;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer Section */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 40px 0;
  margin-top: 60px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Highlight search class */
mark.search-highlight {
  background: var(--primary-amber);
  color: #000000;
  border-radius: 3px;
  padding: 0 4px;
  font-weight: bold;
}

/* --- Print Stylesheet (@media print) --- */
@media print {
  #reading-progress,
  .site-header,
  .hero-backdrop-glow,
  .sidebar-toc,
  .font-resizer-group,
  .btn-icon,
  .btn-secondary-action,
  .search-box,
  .site-footer {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt !important;
  }

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

  .policy-content {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .prominent-disclosure-box {
    border: 1px solid #000000 !important;
    background: #f8f8f8 !important;
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-toc {
    display: none; /* Collapsed in mobile drawer mode */
  }

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

  .policy-content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .search-box {
    display: none;
  }
  
  .header-actions {
    gap: 6px;
  }

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

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