/**
 * legal-pages.css
 * Styles for Privacy Policy, Terms of Service, and other legal pages
 */

/* ===== LEGAL PAGES LAYOUT ===== */
.legal-page-container {
    background: #f8f9fa;
    padding: 60px 0;
    min-height: 60vh;
}

.legal-page-container .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px;
    border: 1px solid #eaeef2;
}

/* ===== HEADER SECTION ===== */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.legal-header h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
    font-style: italic;
}

.legal-badge {
    display: inline-block;
    background: #ffcc00;
    color: #1a1a1a;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.legal-badge i {
    margin-right: 8px;
}

/* ===== SECTION STYLES ===== */
.legal-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ffcc00;
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.legal-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-section ul, 
.legal-section ol {
    margin: 15px 0 20px 25px;
    color: #555;
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section .note {
    background: #f8f9fa;
    padding: 15px 20px;
    border-left: 4px solid #ffcc00;
    border-radius: 5px;
    font-style: italic;
    color: #666;
}

/* ===== HIGHLIGHT SECTION ===== */
.highlight-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #ffcc00;
}

/* ===== TABLES ===== */
.data-table,
.cancellation-table {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 10px;
    border: 1px solid #eaeef2;
}

.data-table table,
.cancellation-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.cancellation-table th {
    background: #1a1a1a;
    color: #fff;
    padding: 15px;
    font-weight: 600;
    text-align: left;
}

.data-table td,
.cancellation-table td {
    padding: 15px;
    border-bottom: 1px solid #eaeef2;
    color: #555;
}

.data-table tr:last-child td,
.cancellation-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td,
.cancellation-table tr:hover td {
    background: #f8f9fa;
}

/* ===== PURPOSE GRID (Privacy Policy) ===== */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.purpose-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeef2;
    transition: all 0.3s ease;
}

.purpose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #ffcc00;
}

.purpose-icon {
    width: 50px;
    height: 50px;
    background: #ffcc00;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.purpose-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.purpose-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ===== SHARING CARDS (Privacy Policy) ===== */
.sharing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.sharing-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eaeef2;
    transition: all 0.3s ease;
}

.sharing-card:hover {
    border-color: #ffcc00;
}

.sharing-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.sharing-card h4 i {
    color: #ffcc00;
    margin-right: 8px;
}

.sharing-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ===== RIGHTS GRID (Privacy Policy) ===== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.right-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eaeef2;
    text-align: center;
    transition: all 0.3s ease;
}

.right-item:hover {
    transform: translateY(-3px);
    border-color: #ffcc00;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.right-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    color: #ffcc00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

.right-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.right-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ===== RETENTION LIST ===== */
.retention-list {
    list-style: none;
    padding: 0;
}

.retention-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eaeef2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.retention-list li:before {
    content: "•";
    color: #ffcc00;
    font-weight: bold;
    font-size: 1.5rem;
}

/* ===== SECURITY LIST ===== */
.security-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.security-list li {
    background: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #eaeef2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-list i {
    color: #ffcc00;
    font-size: 1.2rem;
    width: 24px;
}

/* ===== SERVICE TERMS LIST ===== */
.service-terms-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.service-terms-list li {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #ffcc00;
}

/* ===== RESPONSIBILITY LISTS ===== */
.responsibility-list,
.prohibited-list {
    list-style: none;
    padding: 0;
}

.responsibility-list li,
.prohibited-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prohibited-list i {
    color: #dc3545;
    font-size: 1.1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: #1a1a1a;
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
}

.contact-section h2 {
    color: #fff;
}

.contact-section h2::after {
    background: #ffcc00;
}

.contact-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 25px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #ffcc00;
    transform: translateY(-3px);
}

.contact-method i {
    font-size: 1.2rem;
    color: #ffcc00;
    transition: all 0.3s ease;
}

.contact-method:hover i {
    color: #1a1a1a;
}

.contact-method span {
    color: #fff;
}

.contact-method a {
    color: #fff;
    text-decoration: none;
}

.contact-section a {
    color: #ffcc00;
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .legal-content-wrapper {
        padding: 40px 30px;
    }
    
    .legal-header h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .legal-page-container {
        padding: 40px 0;
    }
    
    .legal-content-wrapper {
        padding: 30px 20px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .purpose-grid,
    .sharing-cards,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .security-list {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-method {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-content-wrapper {
        padding: 25px 15px;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-section {
        margin-bottom: 30px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .legal-page-container {
        background: white;
        padding: 0;
    }
    
    .legal-content-wrapper {
        box-shadow: none;
        border: none;
        padding: 20px;
    }
    
    .legal-badge,
    .contact-section {
        background: #f0f0f0;
        color: black;
    }
}