/* ===== LEGAL PAGES CSS ===== */

/* CSS Variables - Unified Design System */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --secondary-dark: #7c3aed;
    
    /* Status Colors */
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #3b82f6;
    --info-dark: #2563eb;
    
    /* Neutral Colors */
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-1: #ffffff;
    --bg-2: #f9fafb;
    --bg-3: #f3f4f6;
    --bg-4: #e5e7eb;
    
    /* Borders */
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;
    
    /* Shadows */
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-2);
    font-size: var(--font-size-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo i {
    font-size: 1.2rem;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.store-link:hover {
    color: var(--primary);
}

.store-link i {
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.create-app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--bg-1);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.create-app-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb i {
    font-size: 0.8rem;
}

.breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

/* Legal Content */
.legal-content {
    background: var(--bg-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.legal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-1);
    padding: var(--space-10);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.legal-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.last-updated {
    font-size: var(--font-size-base);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.legal-body {
    padding: var(--space-10);
}

/* Legal Sections */
.legal-section {
    margin-bottom: var(--space-10);
    padding: var(--space-6);
    background: var(--bg-1);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.legal-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary);
}

.legal-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text);
    margin: var(--space-6) 0 var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.legal-section h3::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

.legal-section p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text);
    margin-bottom: var(--space-4);
    text-align: justify;
}

.legal-section ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
    list-style: none;
}

.legal-section ul li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: var(--space-2);
}

.legal-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.legal-section li {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text);
}

.legal-section strong {
    font-weight: 600;
    color: var(--text);
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.legal-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Info */
.contact-info {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 12px;
}

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

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--text);
    color: var(--bg-1);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--bg-1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Loading Content */
.loading-content {
  text-align: center;
  padding: var(--space-10) var(--space-5);
  background: var(--bg-1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-md);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-content p {
  color: var(--text-light);
  font-size: var(--font-size-base);
  font-weight: 500;
}

/* Custom Content */
.custom-content {
  line-height: 1.7;
  background: var(--bg-1);
  padding: var(--space-6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.custom-content h1,
.custom-content h2,
.custom-content h3,
.custom-content h4,
.custom-content h5,
.custom-content h6 {
  color: var(--text);
  margin: var(--space-6) 0 var(--space-4) 0;
  font-weight: 600;
  position: relative;
  padding-left: var(--space-4);
}

.custom-content h1::before,
.custom-content h2::before,
.custom-content h3::before,
.custom-content h4::before,
.custom-content h5::before,
.custom-content h6::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.custom-content h1 { font-size: var(--font-size-3xl); }
.custom-content h2 { font-size: var(--font-size-2xl); }
.custom-content h3 { font-size: var(--font-size-xl); }
.custom-content h4 { font-size: var(--font-size-lg); }
.custom-content h5 { font-size: var(--font-size-base); }
.custom-content h6 { font-size: var(--font-size-sm); }

.custom-content p {
  margin-bottom: var(--space-4);
  color: var(--text);
  text-align: justify;
  line-height: 1.8;
}

.custom-content ul,
.custom-content ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
  list-style: none;
}

.custom-content ul li,
.custom-content ol li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
}

.custom-content ul li::before,
.custom-content ol li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.custom-content li {
  color: var(--text);
}

.custom-content strong {
  font-weight: 600;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.custom-content a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}

.custom-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

.custom-content a:hover::after {
  width: 100%;
}

.custom-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.custom-content blockquote {
  border-left: 4px solid var(--primary);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  font-style: italic;
  color: var(--text-light);
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}

.custom-content blockquote::before {
  content: '"';
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: var(--font-size-2xl);
  color: var(--primary);
  font-family: serif;
}

.custom-content code {
  background: var(--bg-3);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-sm);
  color: var(--primary);
  border: 1px solid var(--border);
}

.custom-content pre {
  background: var(--bg-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: var(--space-4) 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.custom-content pre code {
  background: none;
  padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-header {
        padding: 30px 20px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-body {
        padding: 30px 20px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .legal-header {
        padding: 20px 15px;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-body {
        padding: 20px 15px;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .contact-info {
        padding: 16px;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 8px;
    }
}
