/* ============================================================
   KIBTAŞ.DER - Legal / KVKK Pages CSS
   ============================================================ */

.legal-topbar {
    background: #1a1a2e;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.legal-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-back {
    color: #d4af37;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.legal-back:hover {
    color: #f0d060;
}

.legal-brand {
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.legal-page {
    min-height: calc(100vh - 120px);
    padding: 40px 0;
    background: #f5f5f5;
}

.legal-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.legal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 50px 40px;
    text-align: center;
}

.legal-header i {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 16px;
}

.legal-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 8px;
}

.legal-date {
    color: #aaa;
    font-size: 0.85rem;
}

.legal-content {
    padding: 40px;
}

.legal-content section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.legal-content section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    color: #1a1a2e;
    font-size: 1.4rem;
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 4px solid #d4af37;
}

.legal-content h3 {
    color: #333;
    font-size: 1.1rem;
    margin: 16px 0 8px;
    font-weight: 600;
}

.legal-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

.legal-content li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-content a {
    color: #d4af37;
    text-decoration: underline;
    font-weight: 500;
}

.legal-content a:hover {
    color: #b8941e;
}

.legal-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #d4af37;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
}

.legal-info-box h4 {
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 1rem;
}

.legal-info-box p {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.legal-table th {
    background: #1a1a2e;
    color: #d4af37;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:nth-child(even) td {
    background: #fafafa;
}

.legal-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ======================== COOKIE CONSENT BANNER ======================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #ddd;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-content a {
    color: #d4af37;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #d4af37;
    color: #1a1a2e;
}

.cookie-btn-accept:hover {
    background: #e6c34a;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: #aaa;
    border: 1px solid #555;
}

.cookie-btn-reject:hover {
    border-color: #888;
    color: #fff;
}

/* ======================== FORM CONSENT CHECKBOXES ======================== */
.consent-group {
    margin-top: 16px;
    padding: 16px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
}

.consent-group .consent-title {
    font-weight: 600;
    color: #d4af37;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consent-group .consent-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    padding-left: 2px;
}

.form-card .consent-group .consent-subtitle {
    color: rgba(0, 0, 0, 0.45);
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.consent-item:last-child {
    margin-bottom: 0;
}

.consent-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #d4af37;
    cursor: pointer;
}

.consent-item label {
    font-size: 0.82rem;
    color: #ccc;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.consent-item label a {
    color: #d4af37;
    text-decoration: underline;
}

.consent-item label a:hover {
    color: #f0d060;
}

.consent-error {
    color: #ff4444;
    font-size: 0.78rem;
    margin-top: 8px;
    display: none;
}

.consent-error.show {
    display: block;
}

/* Light theme overrides for consent checkboxes */
.form-card .consent-item label {
    color: #555;
}

.form-card .consent-item label a {
    color: #b8941e;
}

.form-card .consent-group {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
}

.form-card .consent-group .consent-title {
    color: #b8941e;
}

.form-card .consent-error {
    color: #c0392b;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
    .legal-header {
        padding: 35px 24px;
    }

    .legal-header h1 {
        font-size: 1.5rem;
    }

    .legal-content {
        padding: 24px;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }

    .legal-table {
        font-size: 0.8rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 8px 10px;
    }

    .cookie-banner .container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-banner-content {
        min-width: auto;
    }

    .cookie-banner-actions {
        justify-content: center;
    }
}
