/* ============================================
   SECURITY PAGE STYLES
   ============================================ */

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.page-badge svg {
    width: 18px;
    height: 18px;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-header h2 svg {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ============================================
   TRUST CENTER
   ============================================ */
.trust-center {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.certifications-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cert-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cert-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-tertiary) 100%);
}

.cert-badge {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.cert-badge svg {
    width: 40px;
    height: 40px;
    color: white;
}

.cert-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.cert-card > p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.cert-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #22C55E;
    margin-bottom: 20px;
}

.cert-status svg {
    width: 16px;
    height: 16px;
}

.cert-card .btn {
    margin-top: auto;
}

/* ============================================
   SECURITY PRACTICES
   ============================================ */
.security-practices {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.practice-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.practice-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.practice-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.practice-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.practice-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.practice-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-card li {
    position: relative;
    padding: 8px 0 8px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.practice-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* ============================================
   VENDOR SECURITY
   ============================================ */
.vendor-security {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.vendor-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 48px;
}

.vendor-text .lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.vendor-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vendor-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.vendor-requirements li svg {
    width: 20px;
    height: 20px;
    color: #22C55E;
    flex-shrink: 0;
}

.vendor-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
    border-radius: 20px;
    min-width: 200px;
}

.vendor-badge svg {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin-bottom: 16px;
}

.vendor-badge span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ============================================
   SUB-PROCESSORS SECTION
   ============================================ */
.subprocessors-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.subprocessors-table {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.2fr;
    gap: 20px;
    padding: 20px 28px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.table-header span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.2fr;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(59, 130, 246, 0.02);
}

.table-row span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.table-row span strong {
    color: var(--text-primary);
}

.table-row span svg {
    width: 18px;
    height: 18px;
    color: #22C55E;
    margin-right: 8px;
    flex-shrink: 0;
}

.subprocessors-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 24px;
}

/* ============================================
   SECURITY CONTACT
   ============================================ */
.security-contact {
    padding: var(--section-padding) 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
        var(--bg-secondary);
}

.security-contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card > svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .practices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .certifications-showcase {
        grid-template-columns: repeat(3, 1fr);
    }

    .vendor-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vendor-badge {
        justify-self: center;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .table-header span:nth-child(3),
    .table-header span:nth-child(4),
    .table-row span:nth-child(3),
    .table-row span:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 80px;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header h2 svg {
        width: 28px;
        height: 28px;
    }

    .certifications-showcase {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .practices-grid {
        grid-template-columns: 1fr;
    }

    .vendor-content {
        padding: 32px;
    }

    .vendor-requirements {
        grid-template-columns: 1fr;
    }

    .security-contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.875rem;
    }

    .cert-card {
        padding: 28px;
    }

    .cert-badge {
        width: 64px;
        height: 64px;
    }

    .cert-badge svg {
        width: 32px;
        height: 32px;
    }

    .practice-card {
        padding: 24px;
    }

    .vendor-content {
        padding: 24px;
    }

    .vendor-badge {
        padding: 28px;
        min-width: auto;
        width: 100%;
    }

    .table-header,
    .table-row {
        padding: 16px 20px;
    }

    .contact-card {
        padding: 28px;
    }
}

/* ============================================
   GRADIENT TEXT UTILITY
   ============================================ */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
