/* Legal Pages Styling */
/* Forem Atölye - Yasal Sayfalar CSS */

.legal-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Header */
.legal-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.legal-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white !important;
}

.legal-header h1 i {
    font-size: 1.8rem;
    color: #60a5fa;
}

.legal-update-date {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.legal-law-ref {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-style: italic;
}

/* Content Container */
.legal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Sections */
.legal-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}

.legal-section h2 i {
    margin-right: 8px;
    color: #3b82f6;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin: 24px 0 12px 0;
}

.legal-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 16px 0 8px 0;
}

.legal-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 8px;
}

/* Legal Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.legal-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
}

.legal-table tr:nth-child(even) {
    background: #f8fafc;
}

.legal-table tr:hover {
    background: #f1f5f9;
}

/* Highlight Box */
.legal-highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
}

.legal-highlight p {
    color: #1e40af;
    margin: 0;
    font-weight: 500;
}

/* Info Box */
.legal-info-box {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 20px 0;
}

.legal-info-box.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.legal-info-box.warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.legal-info-box.success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.legal-info-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    margin-bottom: 12px;
}

.legal-info-box p {
    margin-bottom: 8px;
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.legal-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.legal-warning i {
    color: #ef4444;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.legal-warning p {
    color: #991b1b;
    margin: 0;
}

/* Styled List */
.legal-list-styled {
    list-style: none;
    padding-left: 0;
}

.legal-list-styled li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.legal-list-styled li:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.legal-list-styled li i {
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-list-styled li i.fa-check-circle {
    color: #10b981;
}

.legal-list-styled li i.fa-times-circle {
    color: #ef4444;
}

.legal-list-styled li i.fa-ban {
    color: #ef4444;
}

.legal-list-styled li i.fa-exclamation-circle {
    color: #f59e0b;
}

/* Steps */
.legal-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
}

.step:hover {
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
}

.step-content p {
    margin: 0;
    color: #64748b;
}

/* Exception Grid */
.legal-exception-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.exception-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.exception-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

.exception-card i {
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 12px;
}

.exception-card h4 {
    color: #991b1b;
    margin-bottom: 8px;
}

.exception-card p {
    color: #7f1d1d;
    font-size: 0.9rem;
    margin: 0;
}

/* Data Grid */
.legal-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.data-category {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.data-category:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.data-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    margin-bottom: 12px;
}

.data-category h4 i {
    color: #3b82f6;
}

.data-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-category li {
    padding: 6px 0;
    color: #64748b;
    font-size: 0.9rem;
    border-bottom: 1px dashed #e2e8f0;
}

.data-category li:last-child {
    border-bottom: none;
}

/* Security Grid */
.legal-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.security-item {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #6ee7b7;
    transition: all 0.3s;
}

.security-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.security-item i {
    font-size: 2.5rem;
    color: #059669;
    margin-bottom: 12px;
}

.security-item h4 {
    color: #047857;
    margin-bottom: 8px;
}

.security-item p {
    color: #065f46;
    font-size: 0.9rem;
    margin: 0;
}

/* Use Grid */
.legal-use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.use-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.use-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.use-item i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 12px;
}

.use-item h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.use-item p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* Rights List */
.legal-rights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.right-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.right-letter {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.right-item p {
    margin: 0;
    color: #475569;
}

/* Contact Grid */
.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.contact-item i {
    font-size: 1.3rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.contact-item span {
    color: #334155;
    font-weight: 500;
}

/* Badge */
.badge-success {
    background: #ecfdf5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Signature Section */
.legal-acceptance {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
}

.legal-signature {
    text-align: right;
}

.legal-signature p {
    margin: 4px 0;
    color: #64748b;
}

/* Links */
.legal-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.legal-content a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-header {
        padding: 24px;
    }
    
    .legal-header h1 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 24px;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
    }
    
    .legal-exception-grid,
    .legal-data-grid,
    .legal-security-grid,
    .legal-use-grid,
    .legal-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-warning {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .legal-page {
        background: white;
    }
    
    .legal-header {
        background: none;
        color: black;
        box-shadow: none;
        border-bottom: 2px solid #000;
    }
    
    .legal-header h1 i {
        color: black;
    }
    
    .legal-content {
        box-shadow: none;
    }
    
    .legal-highlight,
    .legal-info-box,
    .legal-warning {
        border: 1px solid #000;
        background: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .legal-page.dark-mode {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
    
    .legal-page.dark-mode .legal-content {
        background: #1e293b;
        color: #e2e8f0;
    }
    
    .legal-page.dark-mode .legal-section h2,
    .legal-page.dark-mode .legal-section h3 {
        color: #f1f5f9;
    }
    
    .legal-page.dark-mode .legal-section p,
    .legal-page.dark-mode .legal-section li {
        color: #cbd5e1;
    }
}
