/* Common CSS for Legal and Information Pages
   LLMS SEO Optimizer - DigiMango OÜ
   Matches main website branding and styling */

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
}

/* Container - removed to avoid overriding Tailwind's container */
/* Content should use content-wrapper for narrower layout */

.content-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #3b82f6;
}

.page-header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.25rem;
    color: #64748b;
    font-style: italic;
}

.page-header .last-updated {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Typography */
h2 {
    color: #1e293b;
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #3b82f6;
}

h3 {
    color: #334155;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    color: #475569;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #374151;
    text-align: justify;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Links */
a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Info Boxes */
.info-box {
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #3b82f6;
}

.company-info, .contact-info, .legal-info {
    background: #eff6ff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border: 1px solid #dbeafe;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

table td:first-child {
    font-weight: 600;
    color: #1f2937;
    width: 35%;
}

/* Code Blocks */
pre, code {
    background: #f3f4f6;
    border-radius: 0.375rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    padding: 0.125rem 0.25rem;
}

/* License Text Box */
.license-text {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Contact Methods Grid */
.contact-grid, .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method, .resource {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-method:hover, .resource:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Support Tiers */
.support-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tier {
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-top: 4px solid #f59e0b;
}

/* Navigation Header - Matches Main Site */
.nav-header {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1f2937;
}

.nav-logo-icon {
    width: 2rem;
    height: 2rem;
    background: #3b82f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #3b82f6;
    text-decoration: none;
}

/* Footer - Simplified Version */
.page-footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .contact-grid, .resources-grid, .support-tiers {
        grid-template-columns: 1fr;
    }
    
    table td:first-child {
        width: 45%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray-600 {
    color: #4b5563;
}

/* Privacy Policy Specific */
.privacy-policy h2 {
    border-left-color: #3b82f6;
}

/* Terms of Service Specific */
.terms-of-service h2 {
    border-left-color: #ef4444;
}

/* About Page Specific */
.about-page h2 {
    border-left-color: #10b981;
}

/* Contact Page Specific */
.contact-page h2 {
    border-left-color: #f59e0b;
}

/* GPL License Specific */
.gpl-license h2 {
    border-left-color: #8b5cf6;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: #f59e0b;
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: white;
    color: #1f2937;
    border: 2px solid #1f2937;
}

.btn-secondary:hover {
    background: #1f2937;
    color: white;
}

/* Support Page Improvements */
.support-center-callout {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.support-center-callout h3 {
    color: #1976d2;
    margin-top: 0;
}

.support-link {
    background: #2196f3;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

.support-link:hover {
    background: #1976d2;
    text-decoration: none;
}

/* Contact Page Improvements */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Support Center Improvements */
.support-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.general-inquiries-callout {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.contact-link {
    background: #ffc107;
    color: #212529;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

.contact-link:hover {
    background: #e0a800;
    text-decoration: none;
}

.diagnostic-table {
    width: 100%;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.diagnostic-table th {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.diagnostic-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

.diagnostic-table tr:last-child td {
    border-bottom: none;
}

.diagnostic-table tr:hover {
    background: #f8f9fa;
}

/* Business Response Time Grid */
.response-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.response-time-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.response-time-item:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.response-time-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1e40af;
}

.response-time-item p {
    margin-bottom: 8px;
}

.response-time-item p strong {
    color: #f97316;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-grid,
    .support-contact-grid,
    .response-time-grid {
        grid-template-columns: 1fr;
    }
    
    .diagnostic-table {
        font-size: 0.9em;
    }
    
    .diagnostic-table th,
    .diagnostic-table td {
        padding: 8px 10px;
    }
}