/* BouyaLabs public site shell, 2026-09-11. Extracted from styles.css: tokens, reset, typography, footer, notifications and the active book showcase model. Header and legal layout consolidated here. No creator or PDF renderer styles. Cookie layout remains owned by main.js. */
:root {
  /* ===== Color Palette ===== */
  /* Primary - Warm Gold */
  --color-primary: #D4A853;
  --color-primary-light: #E8C97D;
  --color-primary-dark: #B8923F;
  --color-primary-50: rgba(212, 168, 83, 0.1);
  --color-primary-100: rgba(212, 168, 83, 0.2);
  
  /* Secondary - Deep Navy */
  --color-secondary: #1A2744;
  --color-secondary-light: #2A3A5C;
  --color-secondary-dark: #0F1829;
  
  /* Accent - Soft Teal */
  --color-accent: #5BA4A4;
  --color-accent-light: #7DBDBD;
  --color-accent-dark: #4A8F8F;
  
  /* Neutrals - Paper Tones */
  --color-cream: #FAF8F5;
  --color-paper: #F5F2ED;
  --color-paper-dark: #EBE6DE;
  --color-sand: #D4CFC5;
  
  /* Grays */
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E5E5E5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  
  /* Semantic Colors */
  --color-success: #4CAF50;
  --color-error: #E53935;
  --color-warning: #FF9800;
  --color-info: #2196F3;
  
  /* ===== Typography ===== */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes - Fluid */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 4rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* ===== Spacing ===== */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  --space-32: 8rem;    /* 128px */
  
  /* ===== Layout ===== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;
  
  /* ===== Borders ===== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* ===== Shadows ===== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.16);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  
  /* Glow Effects */
  --glow-gold: 0 0 20px rgba(212, 168, 83, 0.3);
  --glow-gold-lg: 0 0 40px rgba(212, 168, 83, 0.4);
  --glow-subtle: 0 0 30px rgba(212, 168, 83, 0.15);
  
  /* ===== Transitions ===== */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  
  /* ===== Z-Index ===== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-loader: 1000;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--color-secondary-dark);
}
section[id] {
  scroll-margin-top: 104px;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-gray-800);
  background-color: var(--color-cream);
  overflow-x: hidden;
  min-height: 100vh;
}
/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 768px) {
html {
    scroll-padding-top: 92px;
  }
section[id] {
    scroll-margin-top: 96px;
  }
}
/* Images */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}
a:hover {
  color: var(--color-primary);
}
/* Lists */
ul, ol {
  list-style: none;
}
/* Buttons & Inputs */
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
/* Focus States */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* Selection */
::selection {
  background-color: var(--color-primary-100);
  color: var(--color-secondary-dark);
}
/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--color-secondary);
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }
p {
  margin-bottom: var(--space-4);
}
p:last-child {
  margin-bottom: 0;
}
strong, b {
  font-weight: var(--font-semibold);
}
em, i {
  font-style: italic;
}
small {
  font-size: var(--text-sm);
}
/* ===========================================
   4. LAYOUT & CONTAINER
   =========================================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (max-width: 640px) {
.container {
    padding: 0 var(--space-4);
  }
}
.section {
  padding: var(--space-24) 0;
}
@media (max-width: 768px) {
.section {
    padding: var(--space-16) 0;
  }
}

.footer {
  background: linear-gradient(180deg, var(--color-secondary-dark) 0%, #0a1220 100%);
  color: white;
  padding: var(--space-12) 0 max(var(--space-6), env(safe-area-inset-bottom));
  position: relative;
}
@media (max-width: 768px) {
.footer {
    padding: var(--space-10) 0 max(var(--space-4), env(safe-area-inset-bottom));
  }
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: .5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 968px) {
.footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
.footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand {
  max-width: 320px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-4);
  transition: transform .3s ease;
  text-decoration: none;
}
.footer-logo:hover {
  transform: scale(1.05);
}
.footer-logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: contain;
  padding: 3px;
  background: #fffdf8;
  transition: filter .3s ease, opacity .3s ease;
  opacity: .9;
  box-shadow: 0 1px 6px rgba(26,42,68,.08);
  filter: none;
  border: 1.5px solid rgba(214, 170, 79, 0.48);
}
.footer-logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #FAF8F5;
  letter-spacing: 0.02em;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}
.footer-description {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}
.footer-nav h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary-light);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-wide);
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--duration-fast) var(--ease-default);
}
.footer-nav a:hover {
  color: var(--color-primary-light);
  padding-left: var(--space-2);
}
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-legal {
  display: flex;
  gap: var(--space-6);
}
.footer-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-legal a:hover {
  color: var(--color-primary-light);
}

.notifications {
  position: fixed;
  top: 100px;
  right: var(--space-6);
  z-index: var(--z-popover);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.notification {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight var(--duration-base) var(--ease-out);
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.notification.hiding {
  animation: slideOutRight var(--duration-base) var(--ease-in) forwards;
}
@keyframes slideOutRight {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.notification-content {
  flex: 1;
}
.notification-title {
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  font-size: var(--text-sm);
}
.notification-message {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}
.notification-close {
  color: var(--color-gray-400);
  padding: var(--space-2);
  transition: color var(--duration-fast);
}
.notification-close:hover {
  color: var(--color-gray-700);
}

/* Book geometry still used by the home Super Pack; visual overrides live in home-collection.css. */
.home-book3d-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: min(100%, 304px);
}
.home-book3d-scene {
  width: 288px;
  height: 360px;
  perspective: 1400px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.home-book3d-scene:active { cursor: grabbing; }
.home-book3d {
  width: 198px;
  height: 268px;
  position: relative;
  transform-style: preserve-3d;
  margin: 28px auto 0;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
  transform: rotateY(-25deg) rotateX(5deg);
}
.home-book3d.view-front { transform: rotateY(0deg) rotateX(0deg); }
.home-book3d.view-angle { transform: rotateY(-25deg) rotateX(5deg); }
.home-book3d.view-spine { transform: rotateY(90deg) rotateX(0deg); }
.home-book3d.view-back { transform: rotateY(180deg) rotateX(0deg); }
@keyframes homeBookSpin { from { transform: rotateY(0deg) rotateX(5deg); } to { transform: rotateY(360deg) rotateX(5deg); } }
.home-book3d.dragging { transition: none; }
.home-book3d-front, .home-book3d-back, .home-book3d-spine, .home-book3d-page {
  position: absolute;
}
.home-book3d-front {
  width: 198px; height: 268px;
  background-color: var(--color-secondary-dark);
  background-image: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 2px 8px 8px 2px;
  box-shadow: 4px 4px 24px rgba(0,0,0,.4), 2px 2px 8px rgba(0,0,0,.2);
  z-index: 3;
  transform: translateZ(5px);
  overflow: hidden;
}
.home-book3d-spine {
  --home-book3d-spine-logo-size: 8px;
  --home-book3d-spine-logo-halo-size: 10px;
  --home-book3d-spine-logo-offset: 11px;
  width: 10px; height: 268px;
  background:
    url('../assets/accueil-optimise/logo-bl-transparent-240.webp') center calc(100% - var(--home-book3d-spine-logo-offset)) / var(--home-book3d-spine-logo-size) var(--home-book3d-spine-logo-size) no-repeat,
    radial-gradient(circle at center calc(100% - var(--home-book3d-spine-logo-offset) + 1px), rgba(255,248,232,.95) 0, rgba(255,248,232,.95) 36%, rgba(255,248,232,.18) 60%, rgba(255,248,232,0) 74%) center calc(100% - var(--home-book3d-spine-logo-offset) + 1px) / var(--home-book3d-spine-logo-halo-size) var(--home-book3d-spine-logo-halo-size) no-repeat,
    var(--home-book3d-spine-bg, linear-gradient(180deg, #f5e6d0 0%, #e8d5ba 32%, #d4c4a8 50%, #e8d5ba 68%, #f5e6d0 100%));
  transform: rotateY(-90deg);
  left: -5px; top: 0;
  transform-origin: center center;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-lr;
  font-family: 'Playfair Display', serif;
  font-size: 7px; color: var(--home-book3d-spine-color, #1A2744);
  letter-spacing: 1.5px; font-weight: 800;
  overflow: hidden; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 2px 0 8px rgba(0,0,0,.3), -2px 0 8px rgba(0,0,0,.3);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.home-book3d-back {
  width: 198px; height: 268px;
  background-image: none;
  background-position: 53% 50%;
  background-size: 113%;
  background-repeat: no-repeat;
  border-radius: 8px 2px 2px 8px;
  transform: rotateY(180deg) translateZ(5px);
  box-shadow: -4px 4px 24px rgba(0,0,0,.3);
  overflow: hidden;
}
.home-book3d-page {
  width: 190px; height: 260px;
  border-radius: 1px 6px 6px 1px;
  top: 4px; left: 4px;
}
.home-book3d-p1 { background-color: #fff; background-image: none; background-position: center; background-size: cover; background-repeat: no-repeat; transform: translateZ(4px); z-index: 2; box-shadow: 1px 0 3px rgba(0,0,0,.08); }
.home-book3d-p2 { background-color: #faf7f2; background-image: none; background-position: center; background-size: cover; background-repeat: no-repeat; transform: translateZ(2.5px); z-index: 1; box-shadow: 1px 0 2px rgba(0,0,0,.06); }
.home-book3d-p3 { background: #f5f0e8; transform: translateZ(0.5px); z-index: 0; }
.home-book3d-page::after {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 12px; background: linear-gradient(90deg, rgba(246,240,232,.96) 0%, rgba(234,224,209,.55) 38%, rgba(234,224,209,0) 100%);
  pointer-events: none;
}
.home-book3d::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 10%;
  width: 80%; height: 20px;
  background: radial-gradient(ellipse, rgba(212,168,83,.1), transparent 70%);
  filter: blur(8px);
  transform: translateZ(-20px);
}

/* Shared navigation contract used by main.js; page-specific home styles follow. */
.header { position:fixed; inset:0 0 auto; z-index:1200; background:rgba(250,248,245,.97); backdrop-filter:blur(14px); border-bottom:1px solid #1a2a4417; box-shadow:0 2px 18px #1a2a4417; }
.header.scrolled { background:rgba(250,248,245,.99); box-shadow:0 4px 28px #1a2a4421; }
.nav { display:flex; align-items:center; justify-content:space-between; position:relative; max-width:1400px; height:76px; margin:0 auto; padding:8px 32px; }
.nav-brand { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.nav-logo { width:44px; height:44px; object-fit:contain; padding:3px; border-radius:50%; background:#fffdf8; border:1px solid #b9975360; }
.nav-brand-wordmark { display:block; white-space:nowrap; font:700 27px/1 'Cormorant Garamond',Georgia,serif; color:#16233d; letter-spacing:-.024em; }
.nav-brand-wordmark .wm-gold { color:#936820; }
.nav-menu { display:flex; align-items:center; gap:32px; }
.nav-link { position:relative; display:inline-flex; align-items:center; min-height:44px; padding:8px 0; color:#404040; font-size:var(--text-sm); font-weight:500; }
.nav-link::after { content:''; position:absolute; bottom:4px; left:0; width:0; height:2px; background:var(--color-primary); transition:width .2s; }
.nav-link:hover,.nav-link.active { color:#936820; }
.nav-link:hover::after,.nav-link.active::after { width:100%; }
.nav-cta-btn { padding:10px 22px; border-radius:7px; background:#e3bc66; color:#101a2d; font-size:13px; font-weight:600; letter-spacing:.02em; }
.nav-cta-btn::after { display:none; }
.nav-cta-btn:hover { background:#eccb80; color:#101a2d; }
.nav-toggle { display:none; flex-direction:column; align-items:center; justify-content:center; gap:6px; width:44px; height:44px; flex-shrink:0; cursor:pointer; touch-action:manipulation; }
.nav-toggle span { display:block; width:24px; height:2px; border-radius:9999px; background:#262626; transform-origin:center; transition:transform .2s,opacity .2s; }
.nav-toggle.active span:nth-child(1) { transform:rotate(45deg) translate(6px,6px); }
.nav-toggle.active span:nth-child(2) { opacity:0; transform:scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform:rotate(-45deg) translate(6px,-6px); }
@media(max-width:968px) {
  .nav { padding-inline:22px; }
  .nav-toggle { display:flex; position:relative; z-index:1402; }
  .nav-menu { position:fixed; inset:76px 0 0; top:76px; width:100%; height:calc(100dvh - 76px); max-height:calc(100dvh - 76px); padding:20px 22px 32px; flex-direction:column; justify-content:flex-start; gap:16px; background:#fffdf9; z-index:1300; overflow-y:auto; opacity:0; visibility:hidden; pointer-events:none; transform:translateY(-10px); transition:opacity .2s,transform .2s,visibility .2s; }
  .nav-menu.active,body.nav-open .nav-menu { opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0); }
  .nav-menu li { width:min(100%,420px); margin-inline:auto; }
  .nav-link { font-size:18px; padding-block:12px; }
  .nav-menu .nav-link:not(.nav-cta-btn) { display:flex; width:100%; border-bottom:1px solid #17243c1a; }
  .nav-cta-btn { margin-top:16px; display:flex; justify-content:center; }
  body.nav-open .header { overflow:visible; }
}
/* These pages use the main.js cookie component, which owns its responsive styles. */
#cookieBanner :is(a,button):focus-visible { outline-color:#f8f4ec; }
/* Information pages share one reading layout and preserve their existing content. */
body[data-bouya-page="information"] { color:#1d2b47; background:#f8f5ee; }
.legal-page { padding:120px 22px 70px; min-height:80vh; background:#f8f5ee; }
.legal-page > .container { max-width:850px; margin:auto; }
.legal-page h1 { font:600 clamp(35px,5vw,54px)/1.05 'Cormorant Garamond',Georgia,serif; margin-bottom:8px; color:#17243c; }
.legal-page .last-update { color:#626d7b; font-size:var(--text-sm); margin-bottom:32px; }
.legal-section { margin:0; padding:26px 0; border-top:1px solid #17243c1a; }
.legal-section h2 { font:600 29px/1.2 'Cormorant Garamond',Georgia,serif; margin-bottom:16px; color:#17243c; }
.legal-section p,.legal-section li { font-size:16px; line-height:1.8; color:#435063; margin-bottom:12px; }
.legal-section ul,.legal-section ol { padding-left:24px; margin-bottom:16px; }
.legal-section ul { list-style:disc; }
.legal-section ol { list-style:decimal; }
.legal-section li { margin-bottom:8px; }
.legal-section a { color:#795724; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.legal-section a:hover { color:#17243c; }
.legal-table { width:100%; border-collapse:collapse; margin:16px 0; }
.legal-table th,.legal-table td { padding:12px 16px; text-align:left; border:1px solid #ebe6de; }
.legal-table th { background:#faf8f5; font-weight:600; color:#1a2744; }
.legal-table td { color:#435063; }
@media(max-width:640px) {
  .legal-page { padding:108px 20px 48px; }
  .legal-page > .container { padding:0; }
  .legal-table { font-size:14px; }
  .legal-table th,.legal-table td { padding:8px; overflow-wrap:anywhere; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
  .footer-legal { flex-wrap:wrap; gap:4px 20px; }
}
.footer-bottom p,.footer-legal a { color:#b8c1d0; }
.footer-legal a { display:inline-flex; align-items:center; min-height:44px; }
.footer-logo img { background:#faf4f1; border-color:#d6aa4fa3; }
/* Toast widths stay inside narrow viewports, including long field errors. */
.notifications { width:min(400px,calc(100vw - 32px)); right:16px; z-index:1500; }
.notification { min-width:0; width:100%; overflow-wrap:anywhere; }
.notification-content { min-width:0; }
.notification-close { min-width:44px; min-height:44px; }
/* Preserve the existing compact showcase angle on touch layouts. */
@media(max-width:768px) {
  .vitrine-3d-scene .home-book3d.view-angle { transform:rotateY(-18deg) rotateX(4deg)!important; }
  .vitrine-3d-scene .home-book3d-spine { letter-spacing:.9px; text-shadow:none; }
}
/* Keep the information-page wordmark centered in the mobile navigation. */
@media(max-width:768px) {
  body[data-bouya-page="information"] .nav-brand-wordmark { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:calc(100% - 148px); text-align:center; }
}
