/* ═══════════════════════════════════════════════════
   LEGAL POLICIES — Admin + Modal Styles
   ═══════════════════════════════════════════════════ */

/* ─── Admin Cards ──────────────────────────────── */
.lp-stat-card {
    transition: all 0.2s ease;
}

.lp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lp-policy-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-policy-card:hover {
    transform: translateY(-4px);
    border-color: #D6A419;
}

/* ─── Policy Modal ─────────────────────────────── */
.lp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lp-modal-overlay.lp-modal-active {
    opacity: 1;
}

.lp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lp-modal-container {
    position: relative;
    background: white;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.lp-modal-overlay.lp-modal-active .lp-modal-container {
    transform: translateY(0) scale(1);
}

.lp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.lp-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* Modal Header */
.lp-modal-header {
    background: linear-gradient(135deg, #D6A419 0%, #eab308 50%, #D6A419 100%);
    padding: 2rem 2rem 1.75rem;
    text-align: center;
}

.lp-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.lp-modal-icon i {
    font-size: 1.5rem;
    color: white;
}

.lp-modal-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Modal Body */
.lp-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.lp-modal-body::-webkit-scrollbar {
    width: 6px;
}

.lp-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.lp-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* Modal Content Styles */
.lp-modal-content {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.75;
}

.lp-modal-content h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
}

.lp-modal-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1.25rem 0 0.5rem;
}

.lp-modal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 1rem 0 0.5rem;
}

.lp-modal-content p {
    margin-bottom: 0.75rem;
}

.lp-modal-content ul,
.lp-modal-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.lp-modal-content li {
    margin-bottom: 0.25rem;
}

.lp-modal-content a {
    color: #D6A419;
    text-decoration: underline;
}

.lp-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.8125rem;
}

.lp-modal-content th,
.lp-modal-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
}

.lp-modal-content th {
    background: #f9fafb;
    font-weight: 600;
}

.lp-modal-content blockquote {
    border-left: 3px solid #D6A419;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

/* Loading & Error States */
.lp-modal-loading,
.lp-modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #9ca3af;
}

.lp-modal-loading p,
.lp-modal-error p {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.lp-modal-error i {
    font-size: 2.5rem;
    color: #f59e0b;
}

.lp-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #D6A419;
    border-radius: 50%;
    animation: lp-spin 0.8s linear infinite;
}

@keyframes lp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Footer */
.lp-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.lp-modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.lp-modal-accept-btn {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #D6A419, #eab308);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lp-modal-accept-btn:hover {
    box-shadow: 0 4px 12px rgba(214, 164, 25, 0.4);
    transform: translateY(-1px);
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 640px) {
    .lp-modal-container {
        max-height: 92vh;
        border-radius: 1rem;
    }

    .lp-modal-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .lp-modal-title {
        font-size: 1.125rem;
    }

    .lp-modal-body {
        padding: 1.25rem;
    }

    .lp-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }

    .lp-modal-accept-btn {
        width: 100%;
        text-align: center;
    }
}