/* Pauhu AI - Main Stylesheet */
/* Design System: Dark Blue (#002855), Inter Font, Clean Modern Design */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #002855;
    color: white;
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

a {
    color: #4F9CF9;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7DB3FF;
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 40, 85, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

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

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

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Special Elements */
.last-updated, .effective-date {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Privacy Summary Section */
.privacy-summary {
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.1), rgba(123, 179, 255, 0.1));
    border: 1px solid rgba(79, 156, 249, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.summary-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #4F9CF9;
}

.summary-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Cookie Summary */
.cookie-summary {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 235, 59, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.cookie-controls {
    margin-top: 1.5rem;
}

.cookie-control-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-accept, .btn-reject, .btn-settings, .btn-save {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-accept {
    background: #28a745;
    color: white;
}

.btn-accept:hover {
    background: #218838;
}

.btn-reject {
    background: #dc3545;
    color: white;
}

.btn-reject:hover {
    background: #c82333;
}

.btn-settings, .btn-save {
    background: #4F9CF9;
    color: white;
}

.btn-settings:hover, .btn-save:hover {
    background: #3a8ce8;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #4F9CF9;
}

td {
    color: rgba(255, 255, 255, 0.9);
}

/* Table of Contents */
.toc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc h3 {
    color: #4F9CF9;
    margin-bottom: 1rem;
}

.toc ol {
    margin-left: 1rem;
}

.toc a {
    color: rgba(255, 255, 255, 0.8);
}

.toc a:hover {
    color: #4F9CF9;
}

/* Cookie Categories */
.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid;
    position: relative;
}

.category.essential {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
}

.category.functional {
    background: rgba(79, 156, 249, 0.1);
    border-color: rgba(79, 156, 249, 0.3);
}

.category.analytics {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.category h3 {
    margin-bottom: 0.5rem;
}

.category p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status.required {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status.optional {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Browser Instructions */
.browser-instructions {
    margin: 1.5rem 0;
}

.browser-instructions details {
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-instructions summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
}

.browser-instructions summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.browser-instructions ol {
    padding: 0 1rem 1rem 2rem;
}

/* Cookie Preferences Demo */
.cookie-preferences-demo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.preference-item {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 0.5rem;
}

.preference-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.preference-item input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.preference-label {
    flex-grow: 1;
    font-weight: 500;
}

.required, .optional {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.required {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.optional {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* Impact Warning */
.impact-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.impact-warning h4 {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Commitment Sections */
.privacy-commitment, .cookie-commitment {
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.1), rgba(123, 179, 255, 0.1));
    border: 1px solid rgba(79, 156, 249, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.privacy-commitment h3, .cookie-commitment h3 {
    color: #4F9CF9;
    margin-bottom: 1rem;
}

.privacy-commitment p, .cookie-commitment p {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-section h2, .contact-section h3 {
    color: #4F9CF9;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #4F9CF9;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #4F9CF9;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
    }
    
    .cookie-control-buttons {
        flex-direction: column;
    }
    
    .btn-accept, .btn-reject, .btn-settings, .btn-save {
        width: 100%;
        text-align: center;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .privacy-commitment, .cookie-commitment {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar, .footer {
        display: none;
    }
    
    .legal-content {
        background: white;
        border: none;
        box-shadow: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}