/* Legal Pages Specific Styles */

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.legal-hero h1 {
    font-size: 3rem;
    color: #2C5F41;
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.last-updated {
    background: rgba(44, 95, 65, 0.1);
    color: #2C5F41;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Content Layout */
.legal-content {
    padding: 60px 0;
}

.legal-content .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1400px;
}

/* Navigation */
.legal-navigation {
    position: sticky;
    top: 100px;
}

.legal-nav {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4F9A94;
}

.legal-nav a {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-nav a:last-child {
    border-bottom: none;
}

.legal-nav a:hover {
    color: #2C5F41;
}

/* Document Content */
.legal-document {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-section {
    margin-bottom: 50px;
}

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

.legal-section h2 {
    color: #2C5F41;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #4F9A94;
    padding-bottom: 10px;
}

.legal-section h3 {
    color: #2C5F41;
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 1.3rem;
}

.legal-section h4 {
    color: #2C5F41;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.legal-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-section ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-section li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-section a {
    color: #2C5F41;
    text-decoration: none;
    font-weight: 600;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Special Boxes */
.info-box,
.contact-box,
.warning-box,
.update-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #4F9A94;
}

.warning-box {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.warning-box h4 {
    color: #856404;
}

.contact-box {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.info-box h3,
.contact-box h4,
.warning-box h4,
.update-info h4 {
    margin-bottom: 15px;
    color: #2C5F41;
}

/* Grids */
.purpose-grid,
.definitions-grid,
.rights-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.purpose-item,
.definition-item,
.right-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #4F9A94;
}

.purpose-item h4,
.definition-item h4,
.right-item h4 {
    color: #2C5F41;
    margin-bottom: 10px;
}

.purpose-item p,
.definition-item p,
.right-item p {
    color: #666;
    margin-bottom: 0;
}

/* Cookie-specific styles */
.cookies-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.cookie-type {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.cookie-type h4 {
    color: #2C5F41;
    margin-bottom: 10px;
}

.cookies-category {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #4F9A94;
}

.cookies-category h3 {
    color: #2C5F41;
    margin-bottom: 20px;
}

.cookies-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.cookie-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.cookie-row.header {
    background: #2C5F41;
    color: white;
    font-weight: 600;
}

.cookie-row:last-child {
    border-bottom: none;
}

.cookie-row div {
    color: #666;
    font-size: 0.9rem;
}

.cookie-row.header div {
    color: white;
}

.purposes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.purpose-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.purpose-card:hover {
    border-color: #4F9A94;
    transform: translateY(-5px);
}

.purpose-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.purpose-card h4 {
    color: #2C5F41;
    margin-bottom: 15px;
}

.cookie-controls {
    margin: 25px 0;
    text-align: center;
}

.cookie-settings-btn {
    background: linear-gradient(45deg, #2C5F41, #4F9A94);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cookie-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 65, 0.4);
}

.browser-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.browser-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4F9A94;
}

.browser-item h4 {
    color: #2C5F41;
    margin-bottom: 10px;
}

.browser-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.third-party-cookies {
    display: grid;
    gap: 25px;
    margin: 25px 0;
}

.third-party-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #4F9A94;
}

.third-party-item h4 {
    color: #2C5F41;
    margin-bottom: 10px;
}

.third-party-item p {
    margin-bottom: 15px;
}

.third-party-item a {
    color: #2C5F41;
    text-decoration: none;
    font-weight: 600;
}

.third-party-item a:hover {
    text-decoration: underline;
}

/* Terms of Service specific styles */
.preparation-box,
.usage-allowed,
.usage-forbidden,
.liability-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #4F9A94;
}

.usage-forbidden {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.cancellation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.cancellation-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.cancellation-item h4 {
    color: #2C5F41;
    margin-bottom: 10px;
    font-size: 1rem;
}

.cancellation-item p {
    color: #666;
    font-weight: 600;
    margin-bottom: 0;
}

.rights-note {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #2196f3;
    font-weight: 600;
    color: #1976d2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-content .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .legal-navigation {
        position: static;
    }
    
    .legal-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 20px;
    }
    
    .legal-nav a {
        border-bottom: none;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 5px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 100px 0 60px;
    }
    
    .legal-hero h1 {
        font-size: 2.5rem;
    }
    
    .legal-document {
        padding: 30px;
    }
    
    .purpose-grid,
    .definitions-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .cookies-types-grid,
    .browser-settings,
    .cancellation-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .legal-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 2rem;
    }
    
    .legal-document {
        padding: 20px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .info-box,
    .contact-box,
    .warning-box,
    .cookies-category {
        padding: 20px;
    }
    
    .purpose-card {
        padding: 20px;
    }
}