/**
 * Policy Pages Styles - Grouped Content Design
 * GeoMateria Academy
 */

/* Policy Page Container */
.policy-content-section,
.terms-content-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #F4EFEA 0%, #FFFFFF 50%, #F4EFEA 100%);
    min-height: 90vh;
}

.policy-wrapper,
.terms-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #DCB7AA;
}

/* Header */
.policy-title,
.terms-title {
    text-align: center;
    color: #5C4033;
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 1.5rem;
}

.policy-title::after,
.terms-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #C0A060, #DCB7AA);
    border-radius: 2px;
}

.policy-updated,
.terms-updated {
    text-align: center;
    color: #5C4033;
    font-style: italic;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #DCB7AA;
    font-size: 0.95rem;
}

/* Content Blocks */
.policy-content,
.terms-content {
    color: #2F2F2F;
}

.policy-content > h2,
.terms-content > h2 {
    color: #5C4033;
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #F4EFEA 0%, #FFFFFF 100%);
    border-left: 5px solid #C0A060;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.policy-content > h2:first-child,
.terms-content > h2:first-child {
    margin-top: 0;
}

.policy-content h3,
.terms-content h3 {
    color: #C0A060;
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #DCB7AA;
}

.policy-content p,
.terms-content p {
    color: #2F2F2F;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: justify;
}

/* Lists */
.policy-content ul,
.terms-content ul {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    list-style-type: none;
}

.policy-content ul li,
.terms-content ul li {
    position: relative;
    color: #2F2F2F;
    line-height: 1.7;
    margin-bottom: 0.85rem;
    padding-left: 1.5rem;
}

.policy-content ul li::before,
.terms-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #C0A060;
    font-weight: bold;
    font-size: 1.2rem;
}

.policy-content ol,
.terms-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    counter-reset: custom-counter;
    list-style: none;
}

.policy-content ol li,
.terms-content ol li {
    position: relative;
    color: #2F2F2F;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    counter-increment: custom-counter;
}

.policy-content ol li::before,
.terms-content ol li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    color: #C0A060;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Strong and Links */
.policy-content strong,
.terms-content strong {
    color: #5C4033;
    font-weight: 600;
}

.policy-content a,
.terms-content a {
    color: #C0A060;
    text-decoration: none;
    border-bottom: 1px dashed #C0A060;
    transition: all 0.3s ease;
}

.policy-content a:hover,
.terms-content a:hover {
    color: #5C4033;
    border-bottom-color: #5C4033;
    background: rgba(192, 160, 96, 0.1);
    padding: 0 4px;
}

/* Tables */
.cookie-table,
.data-retention-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cookie-table thead,
.data-retention-table thead {
    background: linear-gradient(135deg, #C0A060 0%, #A08850 100%);
}

.cookie-table th,
.data-retention-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table td,
.data-retention-table td {
    padding: 1.25rem 1rem;
    color: #2F2F2F;
    border-bottom: 1px solid #F4EFEA;
}

.cookie-table tbody tr,
.data-retention-table tbody tr {
    transition: background-color 0.2s ease;
}

.cookie-table tbody tr:hover,
.data-retention-table tbody tr:hover {
    background-color: rgba(220, 199, 170, 0.15);
}

.cookie-table tbody tr:last-child td,
.data-retention-table tbody tr:last-child td {
    border-bottom: none;
}

/* Contact Details Block */
.contact-details {
    background: linear-gradient(135deg, #F4EFEA 0%, #FFFFFF 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2.5rem;
    border: 2px solid #DCB7AA;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
    color: #5C4033;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    padding-left: 0;
    border-left: none;
}

.contact-details h3:first-child {
    margin-top: 0;
}

.contact-details p {
    margin-bottom: 1rem;
    text-align: left;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-details li {
    padding: 0.5rem 0;
    padding-left: 0;
}

.contact-details li::before {
    content: '✉';
    margin-right: 0.75rem;
    color: #C0A060;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(192, 160, 96, 0.1) 0%, rgba(244, 239, 234, 0.5) 100%);
    border-left: 4px solid #C0A060;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    color: #5C4033;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.info-box p {
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(255, 200, 87, 0.1) 0%, rgba(255, 235, 205, 0.5) 100%);
    border-left: 4px solid #FFC857;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box h4 {
    color: #B8860B;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

/* Success Box */
.success-box {
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.1) 0%, rgba(240, 255, 240, 0.5) 100%);
    border-left: 4px solid #90EE90;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.success-box h4 {
    color: #228B22;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

/* Responsive */
@media (max-width: 768px) {
    .policy-wrapper,
    .terms-wrapper {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .policy-title,
    .terms-title {
        font-size: 2rem;
    }
    
    .policy-content > h2,
    .terms-content > h2 {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .policy-content h3,
    .terms-content h3 {
        font-size: 1.2rem;
    }
    
    .cookie-table,
    .data-retention-table {
        font-size: 0.85rem;
    }
    
    .cookie-table th,
    .cookie-table td,
    .data-retention-table th,
    .data-retention-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .policy-wrapper,
    .terms-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .policy-title::after,
    .terms-title::after {
        display: none;
    }
    
    .info-box,
    .warning-box,
    .success-box {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}