/* ==========================================================================
   DELIGO XPRESS - Terms & Conditions Stylesheet
   ========================================================================== */

.legal-main {
  background-color: var(--bg-main, #f8fafc);
  padding-bottom: 5rem;
  color: var(--text-main, #0f172a);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Hero Section */
.legal-hero {
  background: linear-gradient(135deg, #090d16 0%, #172033 100%);
  padding: 5rem 0 3.5rem;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
}

.legal-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(550px, 90vw);
  height: 250px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #fca5a5;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-hero-title,
.legal-hero h1 {
  font-family: var(--font-heading, 'Outfit', sans-serif) !important;
  font-size: clamp(1.85rem, 4.5vw, 3.3rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.legal-hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1 !important;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* Layout */
.legal-content-section {
  padding: 3rem 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .legal-hero {
    padding: 3.5rem 0 2.5rem;
  }
}

/* Sidebar Navigation */
.legal-sidebar {
  position: sticky;
  top: 95px;
}

.sidebar-sticky-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-nav .nav-link {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  color: #475569;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}

.legal-nav .nav-link:hover {
  background: #f1f5f9;
  color: #dc2626;
  transform: translateX(4px);
}

.legal-nav .nav-link.active {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  font-weight: 700;
  border-left: 3px solid #dc2626;
}

.sidebar-contact-hint {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.sidebar-contact-hint i {
  font-size: 1.4rem;
  color: #dc2626;
  flex-shrink: 0;
}

.sidebar-contact-hint strong {
  display: block;
  color: #0f172a;
}

.sidebar-contact-hint a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

/* Document Container */
.legal-document {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 3.5rem 3rem;
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.04);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .legal-document {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .legal-document {
    padding: 1.25rem 0.85rem;
    border-radius: 12px;
  }
}

.document-block {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #f1f5f9;
  min-width: 0;
}

.document-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pillar-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.block-num {
  width: 42px;
  height: 42px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-weight: 800;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.document-block h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.document-block p {
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.document-block p strong {
  color: #0f172a;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 680px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.35rem;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.feature-box:hover {
  background: #ffffff;
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 6px 16px -2px rgba(220, 38, 38, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-box h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
}

.feature-box p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* Legal Notice Banner */
.legal-notice-banner {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.legal-notice-icon {
  font-size: 2.2rem;
  color: #ef4444;
  flex-shrink: 0;
}

.legal-notice-content h4 {
  font-size: 1.15rem !important;
  color: #ffffff !important;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
}

.legal-notice-content p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Contact Cards */
.desk-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .desk-cards-container {
    grid-template-columns: 1fr;
  }
}

.desk-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 1.75rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 0;
}

.desk-card:hover {
  background: #ffffff;
  border-color: #dc2626;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px -4px rgba(220, 38, 38, 0.12);
}

.desk-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.desk-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.desk-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  font-weight: 700;
}

.desk-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-heading, 'Outfit', sans-serif);
}

.desk-value {
  font-size: 1.12rem;
  font-weight: 800;
  color: #dc2626;
  word-break: break-all;
  font-family: var(--font-heading, 'Outfit', sans-serif);
}

.desk-meta {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.desk-full-address {
  grid-column: 1 / -1;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 680px) {
  .desk-full-address {
    grid-template-columns: 1fr;
  }
}

.hub-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.hub-box i {
  color: #dc2626;
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.hub-box strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.hub-box span {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}
