/* Legal Pages Styling */

/* Hero Section */
.legal-hero {
    padding: 140px 20px 80px;
    background: var(--bg-secondary);
    text-align: center;
}

.legal-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.legal-hero .hero-description {
    font-size: clamp(18px, 2.5vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

/* Quick Navigation */
.legal-nav-section {
    padding: 40px 20px;
    background: white;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-quick-nav {
    max-width: 1200px;
    margin: 0 auto;
}

.legal-quick-nav h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.nav-grid a {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-grid a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Content Section */
.legal-content-section {
    padding: 60px 20px 100px;
    background: white;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

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

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
    scroll-margin-top: 140px;
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.legal-section h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 16px 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.legal-section ul li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    list-style: none;
}

.legal-section ul li::before {
    content: "•";
    position: absolute;
    left: 12px;
    color: var(--primary);
    font-weight: bold;
    font-size: 20px;
}

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

.legal-section em {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 15px;
}

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

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

/* Swiss Highlight Box */
.swiss-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #dc2626;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.swiss-highlight h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}

.swiss-highlight p {
    color: #92400e;
    margin-bottom: 0;
}

/* Contact Box */
.contact-box {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
}

.contact-box h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-box p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

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

.contact-box a {
    color: var(--primary);
    font-weight: 600;
}

/* Swiss Values Section */
.swiss-values {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
    border: 3px solid #dc2626;
    border-radius: 24px;
    padding: 48px;
    margin-top: 60px;
}

.swiss-values h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.value-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #dc2626;
}

.value-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.value-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 24px 20px;
    display: none;
    animation: slideUp 0.4s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-banner-text h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-banner-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-cookie.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-cookie.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-cookie.btn-secondary {
    background: white;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-cookie.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 2px solid var(--border);
}

.cookie-modal-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 32px;
}

.cookie-modal-body > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.cookie-option {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px solid var(--border);
}

.cookie-option-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-option h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-option p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--primary);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 24px 32px;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.cookie-modal-footer .btn {
    padding: 14px 32px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .legal-nav-section {
        position: relative;
        top: 0;
    }
    
    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .nav-grid a {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 20px 40px;
    }
    
    .legal-hero h1 {
        font-size: 36px;
    }
    
    .legal-section h2 {
        font-size: 28px;
    }
    
    .legal-section h3 {
        font-size: 20px;
    }
    
    .swiss-values {
        padding: 32px 20px;
    }
    
    .swiss-values h2 {
        font-size: 28px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        padding: 24px;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal-content {
        margin: 20px;
    }
    
    .cookie-modal-header {
        padding: 20px;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-option {
        padding: 16px;
    }
}
