/* ==========================================================================
   Policy Pages Styles - ibuluxe
   ========================================================================== */

/* Policy Header */
.policy-header {
    padding: 60px 0 50px;
    text-align: center;
}

.policy-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: green;
    margin-bottom: 15px;
}

.policy-header p {
    color: rgba(0, 128, 0, 0.7);
    font-size: 1rem;
}

/* Policy Content Layout */
.policy-content {
    padding: 60px 0 80px;
}

.policy-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Table of Contents Sidebar */
.policy-toc {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 160px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.policy-toc h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.policy-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-toc ul li {
    margin-bottom: 10px;
}

.policy-toc ul li a {
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.policy-toc ul li a:hover {
    background: #f8f4f0;
    color: #c9a050;
    padding-left: 18px;
}

.policy-toc::-webkit-scrollbar {
    width: 4px;
}

.policy-toc::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.policy-toc::-webkit-scrollbar-thumb {
    background: #c9a050;
    border-radius: 4px;
}

/* Policy Body */
.policy-body {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Policy Highlight Boxes */
.policy-highlight {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.policy-highlight.security {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
}

.policy-highlight.info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

.policy-highlight.warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
}

.policy-highlight i {
    font-size: 2rem;
    flex-shrink: 0;
}

.policy-highlight.security i {
    color: #4caf50;
}

.policy-highlight.info i {
    color: #2196f3;
}

.policy-highlight.warning i {
    color: #ff9800;
}

.policy-highlight p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

/* Policy Sections */
.policy-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c9a050;
    display: inline-block;
}

.policy-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.policy-section ul,
.policy-section ol {
    margin: 20px 0;
    padding-left: 25px;
}

.policy-section ul li,
.policy-section ol li {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.policy-section ul li i {
    margin-right: 8px;
}

.policy-section a {
    color: #c9a050;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: #a67c30;
    text-decoration: underline;
}

/* Text Utilities */
.text-success {
    color: #4caf50 !important;
}

.text-warning {
    color: #ff9800 !important;
}

.text-danger {
    color: #f44336 !important;
}

/* Policy Tables */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.policy-table thead {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.policy-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.policy-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.policy-table tbody tr:hover {
    background-color: #f8f4f0;
}

.policy-table tbody td {
    padding: 15px 20px;
    color: #555;
}

.policy-table tbody tr:last-child {
    border-bottom: none;
}

/* Contact Info Box */
.contact-info {
    background: #f8f8f8;
    padding: 25px 30px;
    border-radius: 10px;
    margin: 25px 0;
}

.contact-info.highlight-box {
    background: linear-gradient(135deg, #f8f4f0 0%, #fff 100%);
    border: 1px solid #e0d5c5;
}

.contact-info p {
    margin-bottom: 10px;
    color: #555;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info i {
    width: 20px;
    color: #c9a050;
    margin-right: 10px;
}

/* Policy Notes */
.policy-note {
    background: #f8f8f8;
    padding: 25px 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.policy-note h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.policy-note p {
    margin-bottom: 10px;
}

.policy-note ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

/* Refund Timeline */
.refund-timeline {
    margin: 30px 0;
    padding-left: 30px;
    border-left: 3px solid #c9a050;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 14px;
    height: 14px;
    background: #c9a050;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #c9a050;
}

.timeline-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.timeline-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.step-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c9a050 0%, #dab86a 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.step-card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Principles/Rights Grid */
.principles-grid,
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.principle-card,
.right-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
}

.principle-card:hover,
.right-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #c9a050;
}

.principle-card i,
.right-card i {
    font-size: 2rem;
    color: #c9a050;
    margin-bottom: 15px;
}

.principle-card h4,
.right-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.principle-card p,
.right-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Shipping Rates Table Responsive */
@media (max-width: 768px) {
    .policy-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .policy-wrapper {
        flex-direction: column;
    }

    .policy-toc {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 30px;
    }

    .policy-body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .policy-header {
        padding: 60px 0 40px;
        margin-top: 100px;
    }

    .policy-header h1 {
        font-size: 2rem;
    }

    .policy-content {
        padding: 40px 0 60px;
    }

    .policy-body {
        padding: 25px 20px;
    }

    .policy-section h2 {
        font-size: 1.4rem;
    }

    .policy-section h3 {
        font-size: 1.1rem;
    }

    .policy-highlight {
        flex-direction: column;
        text-align: center;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .principles-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }

    .policy-table thead th,
    .policy-table tbody td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .policy-header h1 {
        font-size: 1.75rem;
    }

    .policy-toc {
        padding: 20px;
    }

    .policy-body {
        padding: 20px 15px;
    }

    .policy-section {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }

    .contact-info {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .policy-header {
        background: #1a1a2e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .policy-toc {
        display: none;
    }

    .policy-body {
        box-shadow: none;
        padding: 20px 0;
    }

    .policy-section {
        page-break-inside: avoid;
    }

    .policy-table {
        box-shadow: none;
    }

    .step-card,
    .principle-card,
    .right-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
