:root{
  --brand-primary: #ee402f;
  --brand-primary-dark: #c93628;
  --brand-accent: #1b7ae2;
  --brand-secondary: #0f172a;
  --bg-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
}

body {
  background-color: #f8fafc;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* --- Premium Utilities --- */

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.glass-card-dark {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.text-gradient {
  background: linear-gradient(135deg, #ee402f 0%, #1b7ae2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Section --- */
.hero-bg {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(238, 64, 47, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(27, 122, 226, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: 0;
}

.timeline-desktop {
  display: none;
}

@media (min-width: 768px) {
  .timeline-desktop {
    display: block;
  }

  .timeline-mobile {
    display: none;
  }
}

/* --- Buttons --- */
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(238, 64, 47, 0.28), 0 0 42px rgba(27, 122, 226, 0.22);
}

.btn-glow:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn-book-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  color: white !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-book-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(238, 64, 47, 0.18), 0 10px 35px rgba(27, 122, 226, 0.16);
  filter: brightness(1.03);
}

/* --- Bento Grid Cards --- */
.bento-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  z-index: 10;
}

/* --- Swiper Customization --- */
.swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: var(--brand-primary) !important;
  opacity: 1;
  width: 20px;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* --- Floating Elements --- */
.float-slow {
  animation: float 6s ease-in-out infinite;
}
.float-medium {
  animation: float 4s ease-in-out infinite;
}
.float-fast {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* --- Nav --- */
.nav-blur {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav.fixed > div {
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)) padding-box,
    linear-gradient(90deg, var(--brand-primary), var(--brand-accent)) border-box !important;
  border: 3px solid transparent !important;
  color: var(--brand-secondary) !important;
  box-shadow: none !important;
  position: relative;
}

nav.fixed > div::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

nav.fixed > div .nav-desktop,
nav.fixed > div .nav-desktop a,
nav.fixed > div .nav-link {
  color: var(--brand-secondary) !important;
}

nav.fixed > div .nav-link:hover {
  color: var(--brand-primary) !important;
}

nav.fixed > div a.is-active,
nav.fixed > div button.is-active {
  color: var(--brand-primary) !important;
}

nav.fixed #mobile-menu-btn {
  color: var(--brand-secondary) !important;
}

nav.fixed img[src*="assets/images/Primary2x.png"],
nav.fixed img[src*="../assets/images/Primary2x.png"] {
  filter: drop-shadow(0 10px 26px rgba(15, 23, 42, 0.14)) !important;
}

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nav-logo {
    height: 36px;
  }
}

nav img[src*="assets/images/Primary2x.png"],
nav img[src*="../assets/images/Primary2x.png"] {
  height: 32px !important;
  width: auto !important;
  max-height: 36px !important;
  object-fit: contain !important;
}

@media (min-width: 768px) {
  nav img[src*="assets/images/Primary2x.png"],
  nav img[src*="../assets/images/Primary2x.png"] {
    height: 36px !important;
  }
}

nav.fixed #mobile-menu {
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: var(--brand-secondary) !important;
  box-shadow: none !important;
}

nav.fixed #mobile-menu a {
  color: var(--brand-secondary) !important;
}

nav.fixed #mobile-menu a.is-active {
  background: rgba(238, 64, 47, 0.08) !important;
}

nav.fixed #mobile-menu a:hover {
  background: rgba(27, 122, 226, 0.08) !important;
  color: var(--brand-secondary) !important;
}

nav.fixed.shadow-lg {
  box-shadow: none !important;
}

.hidden {
  display: none !important;
}

.site-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-nav {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: box-shadow 0.2s ease;
}

@media (max-width: 640px) {
  .site-nav {
    top: 0.9rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-nav-inner {
    padding: 0.65rem 0.9rem;
  }

  .site-nav-inner::after {
    inset: 2px;
  }

  .site-mobile-menu {
    max-height: calc(100vh - 8rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.site-nav-inner {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)) padding-box,
    linear-gradient(90deg, var(--brand-primary), var(--brand-accent)) border-box;
  border: 3px solid transparent;
  color: var(--brand-secondary);
  position: relative;
}

.site-nav-inner::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.site-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .site-nav-links {
    display: flex;
  }
}

.site-nav-links a {
  text-decoration: none;
  color: var(--brand-secondary);
}

.site-nav-links a:hover {
  color: var(--brand-primary);
}

.site-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-secondary);
}

@media (min-width: 768px) {
  .site-nav-toggle {
    display: none;
  }
}

.site-mobile-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  right: 0;
  border-radius: 1.5rem;
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  background:
    linear-gradient(rgba(255,255,255,0.98), rgba(255,255,255,0.98)) padding-box,
    linear-gradient(90deg, var(--brand-primary), var(--brand-accent)) border-box;
  border: 2px solid transparent;
}

.site-mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.9);
}

.site-mobile-menu a:hover {
  background: rgba(27, 122, 226, 0.08);
}

.site-nav a.is-active {
  color: var(--brand-primary);
}

.site-mobile-menu a.is-active {
  background: rgba(238, 64, 47, 0.08);
}

.footer-inbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .footer-inbox-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

/* --- Feature Icon Glow --- */
.icon-glow-box {
  background: rgba(27, 122, 226, 0.08);
  border: 1px solid rgba(27, 122, 226, 0.18);
  box-shadow: 0 0 0 0 rgba(27, 122, 226, 0);
  transition: all 0.3s ease;
}

.group:hover .icon-glow-box {
  background: rgba(238, 64, 47, 0.12);
  box-shadow: 0 0 20px rgba(238, 64, 47, 0.22);
  transform: scale(1.1);
}

/* --- Footer --- */
.footer-gradient {
  background: linear-gradient(to bottom, #0f172a, #020617);
}

/* --- Utilities --- */
.border-gradient {
  position: relative;
  background: white;
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
}
.border-gradient::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: linear-gradient(to right, rgba(238, 64, 47, 0.35), rgba(27, 122, 226, 0.25));
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(255,255,255,0.1);
  color: transparent;
}

/* --- RESTORED STYLES FOR HEADER/FOOTER --- */

/* Navigation Dropdown Styles */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  border-radius: 1.25rem;
  padding: 0.75rem;
  background:
    linear-gradient(rgba(255,255,255,0.98), rgba(255,255,255,0.98)) padding-box,
    linear-gradient(90deg, rgba(238, 64, 47, 0.35), rgba(27, 122, 226, 0.25)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  z-index: 50;
  margin-top: 0.5rem;
}

.nav-item:hover .nav-dropdown {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  color: rgba(15, 23, 42, 0.92);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.nav-dropdown a:hover {
  background: rgba(27, 122, 226, 0.08);
  color: var(--brand-secondary);
}

.site-mobile-submenu {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.site-mobile-submenu a {
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  opacity: 0.92;
  border-radius: 0.9rem;
}

.site-mobile-submenu a:hover {
  background: rgba(27, 122, 226, 0.08);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Layout Fixes --- */
main.page-main {
  padding-top: 8rem; /* Ensure content is not hidden behind fixed navbar */
}

/* --- Footer --- */
footer {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  padding-top: 5rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.footer-form-input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.375rem;
  color: white;
  font-size: 0.875rem;
}
.footer-form-input::placeholder {
  color: rgba(255,255,255,0.5);
}
.footer-form-input:focus {
  outline: none;
  border-color: white;
  background: rgba(255,255,255,0.15);
}

.footer-form-submit {
  width: 100%;
  background: white;
  color: var(--brand-primary);
  font-weight: bold;
  padding: 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.3s;
}
.footer-form-submit:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.footer-link-dashed {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
}
.footer-link-dashed:hover {
  color: white;
  border-bottom-color: white;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 2rem 0;
}

.footer-social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}
.footer-social-icon:hover {
  background: white;
  color: var(--brand-primary);
  transform: translateY(-2px);
}
.footer-social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-copyright {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
}

footer.footer-inboxspire {
  background: #ffffff !important;
  color: var(--brand-secondary) !important;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

footer.footer-inboxspire::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

footer.footer-inboxspire::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(238, 64, 47, 0.10), transparent 55%),
    radial-gradient(circle at 88% 22%, rgba(27, 122, 226, 0.10), transparent 55%),
    radial-gradient(circle at 82% 86%, rgba(238, 64, 47, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.footer-inboxspire > div {
  position: relative;
  z-index: 1;
}

.footer-inbox-form {
  border: 2px solid transparent;
  border-radius: 2rem;
  padding: 2rem;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, rgba(238, 64, 47, 0.55), rgba(27, 122, 226, 0.45)) border-box;
  transition: transform 0.25s ease, background 0.25s ease;
}

.footer-inbox-form:hover {
  transform: translateY(-1px);
}

.footer-inbox-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .footer-inbox-form-grid {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}

.footer-inbox-form-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-inbox-field,
.footer-inbox-textarea {
  width: 100%;
  border: 2px solid rgba(15, 23, 42, 0.14);
  border-radius: 9999px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-inbox-field:hover,
.footer-inbox-textarea:hover {
  border-color: rgba(15, 23, 42, 0.22);
}

.footer-inbox-textarea {
  border-radius: 1.75rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  resize: none;
  padding: 1.2rem 1.3rem;
}

.footer-inbox-field::placeholder,
.footer-inbox-textarea::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.footer-inbox-field:focus,
.footer-inbox-textarea:focus {
  border-color: rgba(27, 122, 226, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 122, 226, 0.10);
}

.footer-inbox-submit {
  width: 100%;
  margin-top: 1.25rem;
  border-radius: 1.25rem;
  padding: 1.15rem 1.25rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  color: white;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.footer-inbox-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 34px rgba(238, 64, 47, 0.18), 0 14px 34px rgba(27, 122, 226, 0.16);
}

.footer-inbox-title {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-inbox-card {
  background:
    linear-gradient(#f8fafc, #f8fafc) padding-box,
    linear-gradient(90deg, rgba(238, 64, 47, 0.18), rgba(27, 122, 226, 0.14)) border-box;
  border: 1px solid transparent;
  border-radius: 1.5rem;
  padding: 1.25rem 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.footer-inbox-card:hover {
  transform: translateY(-1px);
}

.footer-inbox-block {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.82);
}

.footer-inbox-label {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.9);
}

.footer-inbox-link {
  color: var(--brand-primary);
  font-weight: 800;
  text-decoration: none;
}

.footer-inbox-link:hover {
  text-decoration: underline;
}

.footer-inbox-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.10);
  margin: 1.25rem 0;
}

.footer-inbox-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-inbox-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.85);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-inbox-links a:hover {
  border-color: rgba(238, 64, 47, 0.30);
  background: rgba(238, 64, 47, 0.06);
  transform: translateY(-1px);
}

.footer-inbox-social {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.8);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-inbox-social:hover {
  transform: translateY(-1px);
  background: rgba(27, 122, 226, 0.08);
  border-color: rgba(27, 122, 226, 0.22);
  color: rgba(15, 23, 42, 0.9);
}

.footer-inbox-social-linkedin:hover {
  background: rgba(27, 122, 226, 0.10);
  border-color: rgba(27, 122, 226, 0.30);
}

.footer-inbox-social-facebook:hover {
  background: rgba(27, 122, 226, 0.10);
  border-color: rgba(27, 122, 226, 0.30);
}

.footer-inbox-social-whatsapp:hover {
  background: rgba(238, 64, 47, 0.08);
  border-color: rgba(238, 64, 47, 0.26);
}

.footer-inbox-social svg {
  width: 1.3rem;
  height: 1.3rem;
}

.footer-inbox-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.85rem;
  text-align: center;
}

.footer-inbox-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inbox-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-inbox-bottom-links a {
  color: rgba(15, 23, 42, 0.65);
  font-weight: 800;
  text-decoration: none;
}

.footer-inbox-bottom-links a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.footer-inbox-bottom-sep {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .footer-inbox-bottom-inner {
    justify-content: center;
    flex-direction: column;
  }
}

.legal-hero {
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(238, 64, 47, 0.10), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(27, 122, 226, 0.10), transparent 55%);
  pointer-events: none;
}

.legal-card {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, rgba(238, 64, 47, 0.25), rgba(27, 122, 226, 0.20)) border-box;
  border: 1px solid transparent;
}

.legal-card h2 {
  scroll-margin-top: 7rem;
}

.legal-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .legal-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
  }
}

.legal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.85);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.legal-chip:hover {
  transform: translateY(-1px);
  background: rgba(27, 122, 226, 0.06);
  border-color: rgba(27, 122, 226, 0.18);
}

.legal-chip.is-active {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, rgba(238, 64, 47, 0.45), rgba(27, 122, 226, 0.40)) border-box;
  border: 1px solid transparent;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 700;
  font-size: 0.85rem;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.legal-article {
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.legal-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .legal-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.legal-summary strong {
  display: block;
  color: rgba(15, 23, 42, 0.9);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 0.35rem;
}

.legal-summary p {
  color: rgba(15, 23, 42, 0.72);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.legal-section {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  margin-top: 1.75rem;
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.legal-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.legal-section-number {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.9);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, rgba(238, 64, 47, 0.35), rgba(27, 122, 226, 0.30)) border-box;
  border: 1px solid transparent;
}

.legal-toc {
  display: none;
}

@media (min-width: 1024px) {
  .legal-toc {
    display: block;
    position: sticky;
    top: 8.5rem;
  }
}

.legal-toc-card {
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.legal-toc-title {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.9);
  margin-bottom: 0.9rem;
}

.legal-toc a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.legal-toc a:hover {
  transform: translateY(-1px);
  background: rgba(27, 122, 226, 0.06);
  border-color: rgba(27, 122, 226, 0.14);
}

.legal-toc-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.20);
}

.legal-toc-mobile {
  display: block;
  margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .legal-toc-mobile {
    display: none;
  }
}

.legal-toc-mobile summary {
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.9);
  padding: 0.85rem 1rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-toc-mobile .legal-toc-links {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

@media (max-width: 640px) {
  .footer-inbox-field {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
  }
}
