/* ==========================================================================
   DELIGO XPRESS - Modern & Distinct Privacy Policy 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: 820px;
  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.4rem) !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.92rem;
  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;
}

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

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

/* 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;
}

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

.block-num {
  width: 40px;
  height: 40px;
  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.65rem;
  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 (Section 2) */
.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;
}

/* Usage List (Section 3) */
.usage-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.usage-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.usage-bullet {
  width: 28px;
  height: 28px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.usage-item h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
}

.usage-item p {
  font-size: 0.93rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* Highlight Notice */
.highlight-notice {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.highlight-notice i {
  font-size: 1.3rem;
  color: #e11d48;
  flex-shrink: 0;
}

/* Partner Grid Enhanced (Section 4) */
.partner-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.partner-card-enhanced {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.partner-card-enhanced:hover {
  transform: translateY(-4px);
  border-color: #dc2626;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.partner-card-enhanced .p-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.partner-card-enhanced h4 {
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
}

.partner-card-enhanced p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Security Card (Section 5) */
.security-card {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: #ffffff;
  padding: 2rem;
  border-radius: 14px;
  margin-top: 1.5rem;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.security-header i {
  font-size: 2.2rem;
  color: #ef4444;
}

.security-header h4 {
  font-size: 1.2rem !important;
  color: #ffffff !important;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
}

.security-header p {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin: 0;
}

.security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.security-list li i {
  color: #f87171;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Rights Tags (Section 7) */
.rights-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.tag-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tag-item i {
  color: #dc2626;
  font-size: 1.2rem;
}

/* Contact Box Grid (Section 8) */
.contact-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 650px) {
  .contact-box-grid {
    grid-template-columns: 1fr;
  }
}

.contact-box-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.cbc-icon {
  width: 50px;
  height: 50px;
  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;
}

.cbc-content {
  display: flex;
  flex-direction: column;
}

.cbc-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cbc-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
