/* Privacy Policy Page Styles - Matching Analytics Box Design */
.legal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: white;
    font-family: 'Inter', sans-serif;
}

.legal-content h1 {
    color: #60a5fa;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Headers as Boxes */
.legal-content h2 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 30px 0 20px 0;
    color: #60a5fa;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.legal-content h3 {
    color: #93c5fd;
    font-size: 1.1rem;
    margin: 20px 0 15px 0;
    padding: 15px 20px;
    background: rgba(30, 41, 59, 0.6);
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
}

/* Container for the 5 sub-sections - SINGLE ROW */
.privacy-categories-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin: 25px 0;
    justify-content: space-between;
}

/* Individual category boxes - 5 equal width boxes */
.privacy-category-box {
    flex: 1;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.privacy-category-box h4 {
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    border-bottom: 1px solid #3b82f6;
    padding-bottom: 6px;
    line-height: 1.2;
}

.privacy-category-box .category-purpose {
    color: #cbd5e1;
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 8px;
    flex-grow: 1;
}

.privacy-category-box .category-legal-basis {
    color: #94a3b8;
    font-size: 0.65rem;
    font-style: italic;
    margin-bottom: 6px;
}

.privacy-category-box .category-retention {
    color: #fbbf24;
    font-size: 0.65rem;
    font-weight: 500;
    background: rgba(251, 191, 36, 0.1);
    padding: 3px 6px;
    border-radius: 3px;
    border-left: 2px solid #fbbf24;
}

/* Privacy Table - Keep as fallback */
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.privacy-table th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #60a5fa;
    padding: 15px 18px;
    font-weight: 600;
    border-bottom: 2px solid #3b82f6;
    font-size: 14px;
}

.privacy-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #334155;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.4;
}

.privacy-table tr:last-child td {
    border-bottom: none;
}

/* Content Lists in Boxes */
.legal-content ul {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 15px 0;
    list-style: none;
}

.legal-content ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.legal-content ul li::before {
    content: "•";
    color: #3b82f6;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Strong emphasis for important text */
.legal-content strong {
    color: #60a5fa;
    font-weight: 600;
}

/* Rights Section Special Box */
.rights-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.rights-section h3 {
    color: #34d399;
    margin-top: 0;
    background: none;
    border: none;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #10b981;
}

/* Paragraphs in boxes */
.legal-content > p {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    line-height: 1.6;
}

/* Links */
.legal-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Last updated info */
.legal-content > p:first-of-type {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid #6b7280;
    text-align: center;
    font-weight: 500;
    color: #d1d5db;
}

/* Contact section */
.legal-content h2 + ul {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #3b82f6;
    border-radius: 8px;
}

/* Responsive - Stack on very small screens only */
@media (max-width: 480px) {
    .privacy-categories-container {
        flex-wrap: wrap;
    }
    
    .privacy-category-box {
        flex: 1 1 100%;
        min-height: 90px;
    }
    
    .privacy-category-box h4 {
        font-size: 0.85rem;
    }
    
    .privacy-category-box .category-purpose {
        font-size: 0.75rem;
    }
    
    .legal-content {
        padding: 20px 15px;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
        padding: 15px 20px;
    }
    
    .privacy-table th,
    .privacy-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .rights-section {
        padding: 20px;
    }
}

/* For larger screens, allow slightly bigger text */
@media (min-width: 1200px) {
    .privacy-category-box h4 {
        font-size: 0.85rem;
    }
    
    .privacy-category-box .category-purpose {
        font-size: 0.75rem;
    }
    
    .privacy-category-box .category-legal-basis,
    .privacy-category-box .category-retention {
        font-size: 0.7rem;
    }
}

.privacy-categories-boxes {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  margin: 30px 0 10px 0;
  justify-content: center;
}

.privacy-card {
  background: linear-gradient(135deg, #222b41 0%, #21293e 100%);
  border: 1.5px solid #3b82f6;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(60,80,210,0.07);
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 0;
  padding: 16px 14px 14px 14px;
  color: #e6eefb;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.privacy-card-title {
  color: #60a5fa;
  font-weight: 700;
  padding-bottom: 10px;
  font-size: 1.04rem;
  margin-bottom: 8px;
  border-bottom: 1px solid #334155;
  width: 100%;
}

.privacy-card-detail {
  width: 100%;
  margin-bottom: 5px;
  color: #e6eefb;
  font-size: 0.93em;
  word-break: break-word;
}

.privacy-card-detail strong {
  color: #86efac;
  font-weight: 600;
}

/* Responsive for mobile: stack the cards */
@media (max-width: 900px) {
  .privacy-categories-boxes {
    flex-wrap: wrap;
    gap: 14px;
  }
  .privacy-card {
    min-width: 230px;
    max-width: 98vw;
  }
}

@media (max-width: 550px) {
  .privacy-categories-boxes {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .privacy-card {
    min-width: 98vw;
    font-size: 0.96em;
    padding: 12px 6px 11px 10px;
  }
}
