/* ============================================
   FENNEC FREIGHT - POLICY PAGES STYLES
   ============================================ */

/* CSS Variables */
:root {
    --primary: #053c23;
    --accent: #F1A128;
    --muted-bg: #e6eef4;
    --text: #053c23;
}

/* ============================================
   POLICY CONTAINER
   ============================================ */

/* ========================================
   Container and Common Styles
   ======================================== */

/* Tüm about container’ları için */
.policy-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Desktop */
@media (min-width: 1200px) {
    .policy-container {
        max-width: 1280px;
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .policy-container {
        max-width: 1440px;
    }
}

/* 2K ekran */
@media (min-width: 1600px) {
    .policy-container {
        max-width: 1600px;
    }
}

/* 4K ekran */
@media (min-width: 2000px) {
    .policy-container {
        max-width: 1800px;
    }
}
/* ============================================
   TYPOGRAPHY
   ============================================ */

.policy-container h1 {
    font-family: "Aptos", Arial, sans-serif;
    font-size: 32px;
    margin: 8px 0 12px;
    color: var(--primary);
}

.policy-container h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: var(--accent);
    margin-top: 10px;
    border-radius: 2px;
}

.policy-container h2 {
    font-family: "Aptos", Arial, sans-serif;
    font-size: 20px;
    margin: 32px 0 16px;
    color: var(--primary);
    font-weight: 600;
}

.policy-container h3 {
    font-family: "Aptos", Arial, sans-serif;
    font-size: 18px;
    margin: 24px 0 12px;
    color: var(--primary);
    font-weight: 600;
}

.policy-container p {
    margin: 16px 0;
    line-height: 1.7;
    color: var(--text);
}

.policy-container p:first-of-type {
    margin-top: 24px;
}

.policy-container strong {
    font-weight: 600;
    color: var(--primary);
}

.policy-container ul {
    padding-left: 24px;
    margin: 16px 0;
    line-height: 1.7;
}

.policy-container li {
    margin: 8px 0;
    line-height: 1.7;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.policy-container .muted {
    color: #5a6b7a;
}

.policy-container .note {
    background: var(--muted-bg);
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    margin: 16px 0;
}

/* ============================================
   LINKS
   ============================================ */

.policy-container a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(5, 60, 35, 0.2);
    transition: all 0.2s ease;
}

.policy-container a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .policy-container {
        padding: 24px 16px 40px;
    }

    .policy-container h1 {
        font-size: 28px;
    }

    .policy-container h2 {
        font-size: 18px;
        margin: 24px 0 8px;
    }
}

@media (max-width: 480px) {
    .policy-container {
        padding: 20px 12px 32px;
    }

    .policy-container h1 {
        font-size: 24px;
    }

    .policy-container h1::after {
        width: 48px;
        height: 3px;
    }

    .policy-container h2 {
        font-size: 17px;
        margin: 20px 0 8px;
    }

    .policy-container ul {
        padding-left: 18px;
    }

    .policy-container h3 {
        font-size: 16px;
        margin: 20px 0 6px;
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(5, 60, 35, 0.1);
    border-top: 1px solid var(--muted-bg);
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    max-width: 100%;
}

.cookie-consent.show {
    transform: translateY(0);
}

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

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-title {
    font-family: "Aptos", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px 0;
}

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

.cookie-consent-message a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-consent-message a:hover {
    color: var(--primary);
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: "Aptos", sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: var(--accent);
    color: #fff;
}

.cookie-consent-btn-accept:hover {
    background: #ff8f1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.cookie-consent-btn-reject {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--secondary);
}

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

.cookie-consent-btn-settings {
    background: var(--secondary);
    color: var(--primary);
}

.cookie-consent-btn-settings:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   COOKIE SETTINGS MODAL
   ============================================ */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 60, 35, 0.5);
    backdrop-filter: blur(2px);
}

.cookie-settings-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(5, 60, 35, 0.15);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--muted-bg);
}

.cookie-settings-title {
    font-family: "Aptos", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.cookie-settings-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary);
    font-size: 20px;
    padding: 0;
}

.cookie-settings-close:hover {
    background: var(--secondary);
    color: var(--accent);
}

.cookie-settings-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.cookie-settings-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 24px 0;
}

.cookie-settings-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-settings-item {
    padding: 20px;
    background: var(--muted-bg);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cookie-settings-item:hover {
    border-color: var(--accent);
}

.cookie-settings-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookie-settings-item-info {
    flex: 1;
}

.cookie-settings-item-title {
    font-family: "Aptos", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 6px 0;
}

.cookie-settings-item-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #5a6b7a;
    margin: 0;
}

.cookie-settings-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

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

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

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

.cookie-settings-toggle input:checked + .cookie-settings-slider {
    background-color: var(--accent);
}

.cookie-settings-toggle input:checked + .cookie-settings-slider:before {
    transform: translateX(20px);
}

.cookie-settings-toggle input:disabled + .cookie-settings-slider {
    background-color: var(--primary);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--muted-bg);
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   COOKIE CONSENT RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-btn {
        flex: 1;
        min-width: 0;
    }

    .cookie-settings-content {
        max-height: 95vh;
    }

    .cookie-settings-header {
        padding: 20px 20px 16px;
    }

    .cookie-settings-title {
        font-size: 20px;
    }

    .cookie-settings-body {
        padding: 20px;
    }

    .cookie-settings-item {
        padding: 16px;
    }

    .cookie-settings-item-header {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 16px;
    }

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-message {
        font-size: 13px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
    }

    .cookie-settings-content {
        border-radius: 0;
        max-height: 100vh;
    }

    .cookie-settings-header {
        padding: 16px;
    }

    .cookie-settings-body {
        padding: 16px;
    }

    .cookie-settings-item {
        padding: 14px;
    }
}
