/* ==========================================================================
   TAROTLIT DESIGN SYSTEM (SPATOM)
   Unified style guide, design tokens, components, and responsive grid.
   ========================================================================== */

/* ─── 1. DESIGN TOKENS ─── */
:root {
  /* Color Palette */
  --bg: #f8f7f2;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --text: #2c2c2c;
  --muted: #666666;
  --muted2: #999999;
  --accent: #cbbe4b;
  --accent-2: #8a7d1a;
  --accent-light: rgba(203, 190, 75, 0.10);
  --accent-border: rgba(203, 190, 75, 0.22);
  --line: rgba(44, 44, 44, 0.08);
  --line-strong: rgba(44, 44, 44, 0.14);
  --success: #4caf50;
  --success-light: rgba(76, 175, 80, 0.08);
  --success-border: rgba(76, 175, 80, 0.18);

  /* Layout Dimensions */
  --max: 1120px;
  --max-doc: 820px;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 24px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-brand: 0 4px 14px rgba(203, 190, 75, 0.28);
  --shadow-store: 0 8px 22px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --t-fast: 0.18s ease;
  --t-base: 0.22s ease;
}

/* ─── 2. RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse at 60% 0%, rgba(203, 190, 75, 0.11) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8f7f2 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* ─── 3. TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

/* ─── 4. ICONS (LUCIDE) ─── */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

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

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl {
  width: 28px;
  height: 28px;
}

/* Standardized Icon Containers / Pads */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent-2);
  flex-shrink: 0;
  transition: transform var(--t-fast), border-color var(--t-fast);
}

.icon-box-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.icon-box-sm .icon {
  width: 15px;
  height: 15px;
}

.icon-box-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.icon-box-lg .icon {
  width: 22px;
  height: 22px;
}

.icon-box-xl {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
}

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

/* ─── 5. TAGS & PILLS ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag-green {
  color: var(--success);
  background: var(--success-light);
  border: 1px solid var(--success-border);
}

.tag-gold {
  color: var(--accent-2);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
}

.tag-gray {
  color: var(--muted);
  background: rgba(44, 44, 44, 0.05);
  border: 1px solid var(--line);
}

/* ─── 5. BUTTONS & STORE BADGES ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  transition: var(--t-base);
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(203, 190, 75, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(203, 190, 75, 0.38);
  text-decoration: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--text);
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(44, 44, 44, 0.03);
}

.btn-ghost:hover {
  background: rgba(44, 44, 44, 0.07);
  color: var(--text);
  text-decoration: none;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* Store Badge Component */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 14px;
  border-radius: var(--r-sm);
  background: #000000;
  color: #ffffff !important;
  border: 1px solid #a6a6a6;
  text-decoration: none !important;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (hover: hover) {
  .store-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-store);
    border-color: #ffffff;
  }
}

@media (hover: none) {
  .store-badge:active {
    transform: translateY(-1px);
    border-color: #ffffff;
  }
}

.store-badge .badge-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-badge .badge-sub {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #d1d1d1;
}

.store-badge.gplay-badge .badge-sub {
  font-size: 8.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 500;
}

.store-badge .badge-main {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #ffffff;
}

/* ─── 6. HEADER & NAVIGATION ─── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(248, 247, 242, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-brand);
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 13.5px;
  opacity: 0.75;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  min-height: 36px;
  display: flex;
  align-items: center;
}

.nav-links a.nav-current {
  opacity: 1;
  font-weight: 600;
  color: var(--accent-2);
}

@media (hover: hover) {
  .nav-links a:hover {
    opacity: 1;
    background: rgba(44, 44, 44, 0.05);
    text-decoration: none;
  }
}

@media (hover: none) {
  .nav-links a:active {
    opacity: 1;
    background: rgba(44, 44, 44, 0.05);
    text-decoration: none;
  }
}

/* Burger Button */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 6px;
  justify-content: center;
  border-radius: var(--r-xs);
  transition: background var(--t-fast);
}

@media (hover: hover) {
  .burger:hover {
    background: rgba(44, 44, 44, 0.05);
  }
}

@media (hover: none) {
  .burger:active {
    background: rgba(44, 44, 44, 0.08);
  }
}

.burger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Drawer */
body.menu-open, html.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

.mmenu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  z-index: 10001;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 36px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.32s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mmenu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mmenu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 16, 38, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mmenu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mmenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.mmenu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.mmenu-brand img {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mmenu-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(44, 44, 44, 0.06);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}

.mmenu-close:hover {
  background: var(--accent);
  color: #222;
  transform: scale(1.08);
}

.mmenu-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  gap: 4px;
  flex-grow: 1;
}

.mmenu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mmenu-link .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.mmenu-link:hover {
  background: rgba(203, 190, 75, 0.12);
  color: var(--accent-2);
  text-decoration: none;
  transform: translateX(3px);
}

.mmenu-link:hover .icon {
  color: var(--accent-2);
}

.mmenu-link.active {
  background: var(--accent-light);
  color: var(--accent-2);
  border: 1px solid var(--accent-border);
}

.mmenu-link.active .icon {
  color: var(--accent-2);
}

.mmenu-footer {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mmenu-badge-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted2);
}

.mmenu-store-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mmenu-store-badge-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mmenu-store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  text-decoration: none;
}

.mmenu-store-badge-link img {
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.mmenu-copy {
  font-size: 11px;
  color: var(--muted2);
  text-align: center;
  margin-top: 2px;
}

/* ─── 7. FOOTER ─── */
footer {
  padding: 24px 0 48px;
}

.footer-inner {
  padding: 20px 26px;
  border-radius: var(--r-xl);
  background: rgba(44, 44, 44, 0.04);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-block img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  transition: var(--t-fast);
  min-height: 36px;
  display: flex;
  align-items: center;
}

@media (hover: hover) {
  .footer-links a:hover {
    color: var(--text);
    background: rgba(44, 44, 44, 0.06);
    text-decoration: none;
  }
}

@media (hover: none) {
  .footer-links a:active {
    color: var(--text);
    background: rgba(44, 44, 44, 0.06);
    text-decoration: none;
  }
}

/* ─── 8. CARDS & SURFACES ─── */
.card {
  background: var(--card);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

/* ─── 9. LEGAL & SUPPORT DOC CONTAINERS ─── */
.doc-container,
.privacy-container,
.terms-container,
.delete-container,
.contact-container {
  max-width: var(--max-doc);
  margin: 32px auto 48px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--card);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.doc-header,
.privacy-header,
.terms-header,
.delete-header,
.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.doc-title,
.privacy-title,
.terms-title,
.delete-title,
.contact-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text);
}

.doc-subtitle,
.privacy-subtitle,
.terms-subtitle,
.delete-subtitle,
.contact-subtitle {
  color: var(--muted);
  font-size: 16px;
  max-width: 58ch;
  margin: 0 auto;
}

/* Breadcrumbs */
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13.5px;
}

.nav-breadcrumb a {
  color: var(--accent-2);
}

.nav-breadcrumb span {
  color: var(--muted2);
}

/* Document Sections */
.doc-section,
.privacy-section,
.terms-section,
.delete-section,
.contact-section {
  margin-bottom: 36px;
}

.doc-section:last-child,
.privacy-section:last-child,
.terms-section:last-child,
.delete-section:last-child,
.contact-section:last-child {
  margin-bottom: 0;
}

.doc-section h2,
.privacy-section h2,
.terms-section h2,
.delete-section h2,
.contact-section h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.doc-section h3,
.privacy-section h3,
.terms-section h3,
.delete-section h3,
.contact-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}

.doc-section p,
.privacy-section p,
.terms-section p,
.delete-section p,
.contact-section p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.doc-section ul,
.privacy-section ul,
.terms-section ul,
.delete-section ul,
.contact-section ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.doc-section li,
.privacy-section li,
.terms-section li,
.delete-section li,
.contact-section li {
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.emphasis {
  color: var(--accent-2);
  font-weight: 600;
}

.last-updated {
  text-align: center;
  color: var(--muted2);
  font-style: italic;
  font-size: 13px;
  margin-top: 36px;
}

/* Info Box / Contact Info */
.info-box,
.contact-info {
  background: var(--accent-light);
  padding: 20px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--accent-border);
  margin-top: 24px;
}

.info-box p,
.contact-info p {
  color: var(--text);
  margin-bottom: 6px;
}

.info-box p:last-child,
.contact-info p:last-child {
  margin-bottom: 0;
}

/* Step Card & FAQ Item */
.step-card {
  background: rgba(44, 44, 44, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.step-card strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.step-card span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.faq-item[open] {
  border-color: var(--accent-border);
  box-shadow: 0 4px 18px rgba(203, 190, 75, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--t-fast);
}

.faq-question::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .faq-question:hover {
    color: var(--accent-2);
  }
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--muted2);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-2);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid rgba(44, 44, 44, 0.05);
  margin-top: 2px;
  padding-top: 14px;
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ─── 10. CONTACT COMPONENTS ─── */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.contact-method {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

@media (hover: hover) {
  .contact-method:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}

.contact-method h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-method h3 .icon {
  color: var(--accent-2);
}

.contact-method p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-2);
  transition: background var(--t-fast);
}

.contact-email:hover {
  background: rgba(203, 190, 75, 0.18);
  text-decoration: none;
}

/* ─── 11. 404 ERROR PAGE COMPONENTS ─── */
.error-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-content {
  max-width: 620px;
  background: var(--card);
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: clamp(64px, 12vw, 96px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.error-title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.error-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tarot-cards {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.tarot-card {
  width: 56px;
  height: 84px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1.5px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  box-shadow: 0 6px 18px rgba(203, 190, 75, 0.2);
  animation: floatCard 3s ease-in-out infinite;
}

.tarot-card:nth-child(2) {
  animation-delay: 0.5s;
}

.tarot-card:nth-child(3) {
  animation-delay: 1s;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.helpful-links {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.helpful-links h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.link-item {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
}

.link-item:hover {
  background: var(--accent-light);
  color: var(--accent-2);
  text-decoration: none;
}

/* ─── 12. RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1200px) {
  .container {
    width: min(100% - 30px, var(--max));
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-links {
    justify-content: center;
  }
  .doc-container,
  .privacy-container,
  .terms-container,
  .delete-container,
  .contact-container {
    margin: 20px auto 36px;
    padding: 20px 16px;
  }
  .error-actions {
    flex-direction: column;
  }
  .error-actions .btn {
    width: 100%;
  }
}
