/* ==========================================================================
   Legal Pages & Footer Legal Links — Stylesheet
   Add to your main CSS file or link separately
   ========================================================================== */

/* --- Legal Page Layout --- */
.legal-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 24px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.legal-page h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
    border-bottom: 3px solid #2196F3;
    padding-bottom: 12px;
}

.legal-page .legal-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    color: #222;
}

.legal-page h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #333;
}

.legal-page p {
    margin-bottom: 14px;
}

.legal-page ul, .legal-page ol {
    margin-bottom: 14px;
    padding-left: 28px;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    color: #1976D2;
    text-decoration: none;
}
.legal-page a:hover {
    text-decoration: underline;
}

.legal-page strong {
    font-weight: 600;
}

/* Legal tables (used in Cookie Policy) */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 14px;
}
.legal-table th, .legal-table td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
}
.legal-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}
.legal-table tr:nth-child(even) {
    background: #fafafa;
}

/* --- Footer Legal Links --- */
.footer-legal {
    text-align: center;
    padding: 24px 16px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    font-size: 13px;
    color: #777;
}

.footer-legal-links {
    margin-bottom: 10px;
}

.footer-legal-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-links a:hover {
    color: #1976D2;
    text-decoration: underline;
}

.footer-sep {
    margin: 0 6px;
    color: #ccc;
}

.footer-affiliate-notice {
    font-size: 12px;
    color: #999;
    margin: 6px 0;
}
.footer-affiliate-notice a {
    color: #1976D2;
}

.footer-copyright {
    font-size: 12px;
    color: #aaa;
    margin: 4px 0 0;
}

/* --- Affiliate Badge (inline on product cards) --- */
.affiliate-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #f57c00;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    padding: 2px 8px;
    vertical-align: middle;
    cursor: help;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .legal-page {
        padding: 0 16px 40px;
    }
    .legal-page h1 {
        font-size: 22px;
    }
    .footer-legal-links {
        line-height: 2;
    }
    .footer-sep {
        display: none;
    }
    .footer-legal-links a {
        display: inline-block;
        margin: 2px 8px;
    }
}
