/* Policy Pages Styles */

.policy-section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background: var(--background);
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
}

.policy-header .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.policy-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.policy-content {
    background: var(--surface);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.policy-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

.policy-section-block {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

.policy-section-block:last-of-type {
    border-bottom: none;
}

.policy-section-block h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.policy-section-block h2 i {
    font-size: 1.5rem;
}

.policy-section-block h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-section-block h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.policy-section-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section-block ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.policy-section-block ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.policy-section-block ul li::before {
    content: '▸';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.policy-section-block ul li strong {
    color: var(--text);
}

.policy-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.policy-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.policy-link:hover::after {
    width: 100%;
}

.policy-link:hover {
    text-shadow: 0 0 10px var(--primary);
}

.contact-list {
    background: rgba(255, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.contact-list li {
    margin-bottom: 0.5rem;
}

.policy-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px;
    text-align: center;
}

.policy-footer p {
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.policy-footer i {
    color: var(--primary);
}

.policy-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.policy-actions .cyber-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cookie Type Cards */
.cookie-type {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.cookie-type:hover {
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.4);
    transform: translateX(5px);
}

.cookie-type h3 {
    margin-top: 0;
}

.cookie-type p {
    margin-bottom: 0.75rem;
}

.cookie-type ul {
    margin-top: 0.5rem;
}

/* Cookie Table */
.cookie-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.cookie-table thead {
    background: rgba(255, 0, 0, 0.1);
}

.cookie-table th {
    padding: 1rem;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
}

.cookie-table td {
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: rgba(255, 0, 0, 0.08);
}

.cookie-table code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Third Party Service */
.third-party-service {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.third-party-service h3 {
    margin-top: 0;
    color: var(--text);
}

.third-party-service p {
    margin-bottom: 0.5rem;
}

/* Warning Note */
.warning-note {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-left: 4px solid #ffa500;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    color: var(--text);
}

.warning-note i {
    color: #ffa500;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .policy-section {
        padding: 6rem 1rem 3rem;
    }

    .policy-header .section-title {
        font-size: 2rem;
    }

    .policy-content {
        padding: 1.5rem;
    }

    .policy-section-block h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .policy-section-block h3 {
        font-size: 1.2rem;
    }

    .policy-actions {
        flex-direction: column;
    }

    .policy-actions .cyber-button {
        width: 100%;
        justify-content: center;
    }

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .policy-section {
        padding: 2rem;
    }

    .policy-actions {
        display: none;
    }

    .policy-content {
        border: none;
        box-shadow: none;
    }

    .policy-section-block {
        page-break-inside: avoid;
    }

    .policy-link {
        color: #000;
        text-decoration: underline;
    }

    .policy-link::after {
        display: none;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .policy-content {
    background: #fff;
    border-color: rgba(255, 0, 0, 0.3);
}

[data-theme="light"] .policy-intro {
    background: rgba(255, 0, 0, 0.08);
}

[data-theme="light"] .cookie-type {
    background: rgba(255, 0, 0, 0.08);
}

[data-theme="light"] .cookie-type:hover {
    background: rgba(255, 0, 0, 0.12);
}

[data-theme="light"] .cookie-table table {
    background: rgba(255, 0, 0, 0.08);
}

[data-theme="light"] .cookie-table thead {
    background: rgba(255, 0, 0, 0.15);
}

[data-theme="light"] .third-party-service {
    background: rgba(255, 0, 0, 0.08);
}

[data-theme="light"] .contact-list {
    background: rgba(255, 0, 0, 0.08);
}

[data-theme="light"] .policy-footer {
    background: rgba(255, 0, 0, 0.08);
}

[data-theme="light"] .warning-note {
    background: rgba(255, 165, 0, 0.15);
}
