/**
 * Legal Pages Styling
 *
 * Styles for Privacy Policy and Terms of Service pages.
 *
 * @package GridMode WordPress Theme
 * @since 1.0.0
 */

/* Legal Page Container */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page .entry-content-wrapper {
    padding: 30px 40px;
}

/* Legal Header */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.legal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* Legal Content */
.legal-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.legal-updated {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 35px;
    border-left: 4px solid #007bff;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.legal-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin: 20px 0 12px 0;
}

/* Paragraphs */
.legal-section p {
    margin: 0 0 15px 0;
    text-align: justify;
}

/* Lists */
.legal-section ul,
.legal-section ol {
    margin: 15px 0 20px 0;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-section li strong {
    color: #1a1a1a;
}

.legal-section ul ul,
.legal-section ol ol,
.legal-section ul ol,
.legal-section ol ul {
    margin: 10px 0;
}

/* Links */
.legal-content a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.legal-content a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Emphasis */
.legal-section strong {
    font-weight: 600;
}

/* Warning/Important Text */
.legal-section p:has(strong:first-child) {
    background: #fff3cd;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

/* Uppercase text (disclaimers) */
.legal-section p {
    text-transform: none;
}

/* Table of Contents styling (if needed) */
.legal-toc {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 35px;
}

.legal-toc h3 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 8px;
}

.legal-toc a {
    color: #007bff;
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page .entry-content-wrapper {
        padding: 20px 20px;
    }

    .legal-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-title {
        font-size: 1.8rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-section p {
        text-align: left;
    }

    .legal-content {
        font-size: 0.95rem;
    }

    .legal-section ul,
    .legal-section ol {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .legal-page .entry-content-wrapper {
        padding: 15px 15px;
    }

    .legal-title {
        font-size: 1.5rem;
    }

    .legal-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-updated {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .legal-page {
        max-width: 100%;
    }

    .legal-page .entry-content-wrapper {
        padding: 0;
    }

    .legal-header {
        border-bottom-color: #000;
    }

    .legal-section h2 {
        border-bottom-color: #000;
    }

    .legal-content a {
        color: #000;
        text-decoration: underline;
    }

    .legal-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
