/* Privacy Policy Page Specific Styles */

:root {
    --primary-color: #4361ee;
    --primary-dark: #3730a3;
    --primary-light: #e0e7ff;
    --accent-color: #ff7e33;
    --text-dark: #1e293b;
    --text-medium: #4a5568;
    --text-light: #718096;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gdpr-color: #2563eb;
    --ccpa-color: #dc2626;
    --border-radius: 8px;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

/* SEO Hidden Heading */
.seo-heading {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

/* Page container styling */
.privacy-page article {
    max-width: 900px;
    margin: 0 auto;
}

/* Heading styles */
.privacy-page h2 {
    color: var(--text-dark);
    margin-bottom: 1em;
    font-size: 2.5em;
}

.privacy-page h3 {
    color: var(--primary-color);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5em;
    margin: 2em 0 1em 0;
    font-size: 1.8em;
}

.privacy-page h4 {
    color: var(--text-dark);
    margin: 1.5em 0 0.5em 0;
    font-weight: 600;
    font-size: 1.3em;
}

/* Last updated date */
.last-updated {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 2em;
}

/* Paragraph styles */
.privacy-page p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.2em;
}

/* List styling */
.privacy-page ul {
    margin-bottom: 1.5em;
    list-style-type: disc;
    padding-left: 1.5em;
}

.privacy-page ul li {
    color: var(--text-medium);
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Info boxes */
.privacy-page .box {
    border-radius: var(--border-radius);
    padding: 2em;
    margin: 2em 0;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    border-left: 4px solid var(--primary-color);
}

.privacy-page .box:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.privacy-page .box h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0.8em;
}

.privacy-page .box p:last-child,
.privacy-page .box ul:last-child {
    margin-bottom: 0;
}

/* Accent color */
.accent-color {
    color: var(--primary-color);
}

/* Privacy Rights Section Styling - NEW */
.privacy-rights-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--border-radius);
    padding: 2em;
    margin: 2em 0;
    border-left: 4px solid var(--gdpr-color);
    position: relative;
}

.privacy-rights-section h3 {
    color: var(--gdpr-color);
    margin-top: 0;
}

.privacy-rights-section::before {
    content: '🛡️';
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 2em;
    opacity: 0.3;
}

/* GDPR Section */
.gdpr-section {
    border-left-color: var(--gdpr-color);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.gdpr-section h3 {
    color: var(--gdpr-color);
}

/* CCPA Section */
.ccpa-section {
    border-left-color: var(--ccpa-color);
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.ccpa-section h3 {
    color: var(--ccpa-color);
}

/* Data Protection Badges - NEW */
.protection-badges {
    display: flex;
    gap: 1em;
    margin: 2em 0;
    flex-wrap: wrap;
    justify-content: center;
}

.protection-badge {
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 1em 1.5em;
    text-align: center;
    transition: all var(--transition-speed);
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.protection-badge:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.protection-badge-icon {
    font-size: 2em;
    margin-bottom: 0.5em;
    display: block;
}

.protection-badge-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3em;
}

.protection-badge-desc {
    font-size: 0.9em;
    color: var(--text-medium);
}

/* Data Security Visual - NEW */
.security-visual {
    background: linear-gradient(135deg, var(--primary-light), #f0f4ff);
    border-radius: var(--border-radius);
    padding: 2em;
    text-align: center;
    margin: 2em 0;
    position: relative;
    overflow: hidden;
}

.security-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.security-layers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin: 1em 0;
    position: relative;
    z-index: 1;
}

.security-layer {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.security-layer:nth-child(1) { background: var(--primary-color); }
.security-layer:nth-child(2) { background: var(--success-color); }
.security-layer:nth-child(3) { background: var(--warning-color); }

.security-layer::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.3;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Data Flow Diagram - NEW */
.data-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2em 0;
    padding: 2em;
    background: linear-gradient(90deg, #f8fafc, #e2e8f0, #f8fafc);
    border-radius: var(--border-radius);
    position: relative;
}

.data-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transform: translateY(-50%);
    z-index: 1;
}

.data-step {
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 2;
    text-align: center;
}

.data-step-icon {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 0.2em;
}

.data-step-label {
    font-size: 0.7em;
    color: var(--text-medium);
    font-weight: 600;
}

/* Rights Request Form Styling - NEW */
.rights-request-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2em;
    box-shadow: var(--card-shadow);
    margin: 2em 0;
    border-left: 4px solid var(--success-color);
}

.rights-request-form h4 {
    color: var(--success-color);
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--text-dark);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8em;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    font-size: 1em;
    transition: all var(--transition-speed);
    box-sizing: border-box;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Compliance Indicators - NEW */
.compliance-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.compliance-indicator {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5em;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    border-top: 4px solid var(--success-color);
}

.compliance-indicator:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.compliance-icon {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    display: block;
}

.compliance-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5em;
}

.compliance-desc {
    color: var(--text-medium);
    font-size: 0.9em;
}

/* Timeline for Policy Updates - NEW */
.policy-timeline {
    position: relative;
    margin: 2em 0;
    padding-left: 2em;
}

.policy-timeline::before {
    content: '';
    position: absolute;
    left: 0.5em;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 2em;
    padding-left: 2em;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5em;
    top: 0.5em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.timeline-content {
    background: white;
    padding: 1em;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Enhanced Contact Information */
.contact-info {
    background: linear-gradient(135deg, var(--primary-light), #f0f4ff);
    border-radius: var(--border-radius);
    padding: 2em;
    margin: 2em 0;
    border-left: 4px solid var(--primary-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.contact-method {
    background: white;
    padding: 2em 1.5em;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Fixed minimum height */
}

.contact-method-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 1em;
    display: block;
}

.contact-method-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8em;
    font-size: 1.2em;
}

.contact-method-info {
    color: var(--text-medium);
    margin-bottom: 1.5em;
    line-height: 1.5;
    flex-grow: 1; /* Takes available space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px; /* Minimum height for text area */
}

.contact-method .button {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 0.8em 1.2em;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 0.9em;
    width: 100%;
    min-height: 48px; /* Fixed button height */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legal Notice */
.legal-notice {
    background: rgba(67, 97, 238, 0.05);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 1.5em;
    margin: 1.5em 0;
    text-align: center;
}

.legal-notice p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.95em;
}

/* Enhanced CTA Banner - FIXED */
.privacy-page .cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: white !important;
    text-align: center;
    padding: 3em 2em !important;
    border-radius: var(--border-radius);
    margin: 3em 0;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    border-left: none !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.privacy-page .cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.privacy-page .cta-banner * {
    position: relative;
    z-index: 2;
}

.privacy-page .cta-banner h3,
.privacy-page .cta-banner .cta-title {
    color: white !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0.5em !important;
    font-size: 1.8em !important;
    font-weight: 600 !important;
}

.privacy-page .cta-banner p,
.privacy-page .cta-banner .cta-description {
    font-size: 1.2em !important;
    margin-bottom: 1.5em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-page .cta-banner .button,
.privacy-page .cta-banner .cta-button {
    background: white !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    border: 2px solid white !important;
    padding: 0.8em 2em !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all var(--transition-speed) !important;
    font-size: 1.1em !important;
}

.privacy-page .cta-banner .button:hover,
.privacy-page .cta-banner .cta-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none !important;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles */
@media screen and (max-width: 980px) {
    .privacy-page h2 {
        font-size: 2.2em;
    }
    
    .privacy-page h3 {
        font-size: 1.6em;
    }
    
    .privacy-page .box {
        padding: 1.5em;
    }
    
    .cta-banner {
        padding: 2.5em 1.5em !important;
    }
    
    .cta-title {
        font-size: 1.6em;
    }
    
    .cta-description {
        font-size: 1.1em;
    }
    
    .data-flow {
        flex-direction: column;
        gap: 1em;
    }
    
    .data-flow::before {
        display: none;
    }
    
    .protection-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .compliance-indicators {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 736px) {
    .privacy-page h2 {
        font-size: 2em;
    }
    
    .privacy-page h3 {
        font-size: 1.5em;
    }
    
    .privacy-page h4 {
        font-size: 1.2em;
    }
    
    .privacy-page .box {
        padding: 1.2em;
    }
    
    .cta-banner {
        padding: 2em 1.5em !important;
    }
    
    .cta-title {
        font-size: 1.5em;
    }
    
    .cta-description {
        font-size: 1em;
    }
    
    .security-layers {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1em;
        padding: 1.5em;
    }
    
    .policy-timeline {
        padding-left: 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .privacy-page .cta-banner {
        padding: 1.5em 0.8em !important;
        margin: 1em 0 !important;
    }
    
    .privacy-page .cta-banner h3,
    .privacy-page .cta-banner .cta-title {
        font-size: 1.3em !important;
    }
    
    .privacy-page .cta-banner p,
    .privacy-page .cta-banner .cta-description {
        font-size: 0.95em !important;
    }
}

/* Responsive contact info */
@media screen and (max-width: 980px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5em;
        padding: 1.5em;
    }
    
    .contact-method {
        min-height: 250px; /* Slightly smaller on tablets */
    }
}

@media screen and (max-width: 736px) {
    .contact-method {
        padding: 1.5em 1em;
        min-height: 220px; /* Even smaller on mobile */
    }
    
    .contact-method-icon {
        font-size: 2em;
    }
    
    .contact-method .button {
        width: 100%;
        justify-content: center;
        white-space: normal; /* Allow text wrapping on mobile */
        min-height: 52px; /* Slightly taller for wrapped text */
    }
    
    .contact-method-info {
        min-height: 50px;
    }
}
