/* ========================================
   LEGAL PAGES - COLONIAL/PARCHMENT STYLE
   Matching ico.php Theme
   ======================================== */

/* Parchment Background - Fixed (Same as ico.php) */
body {
    background: url('https://wethepeoplesrepublic.org/img/new-border-top-bottom-flyer.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Legal Page Container */
.legal-page {
    padding: 8rem 2rem 6rem;
    min-height: 100vh;
}

/* Legal Document Container (Matches ico.php proclamation boxes) */
.legal-document {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    border: 3px double #8B4513;
    padding: 4rem 3rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 60px rgba(139, 69, 19, 0.05);
    border-radius: 8px;
}

/* Document Header */
.document-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.document-seal {
    font-size: 4rem;
    color: #8B4513;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.document-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #654321;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.document-subtitle {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3rem;
    color: #8B4513;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.document-date {
    font-size: 1.1rem;
    color: #4a3520;
    font-weight: 600;
}

.document-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8B4513, transparent);
    margin: 2rem auto;
}

/* Document Content */
.document-content {
    color: #4a3520;
    line-height: 1.9;
}

.document-content h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #654321;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.document-content h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #654321;
    margin: 2.5rem 0 1rem;
}

.document-content h4 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8B4513;
    margin: 2rem 0 0.75rem;
}

.document-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2rem;
    font-size: 1.05rem;
}

.document-content ul,
.document-content ol {
    margin: 1.5rem 0 1.5rem 3rem;
    padding-left: 1rem;
}

.document-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.document-content ul li {
    list-style-type: disc;
}

.document-content ol li {
    list-style-type: decimal;
}

.document-content strong {
    color: #654321;
    font-weight: 700;
}

.document-content em {
    color: #8B4513;
    font-style: italic;
}

.document-content a {
    color: #4F46E5;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.document-content a:hover {
    color: #3730a3;
}

/* Notice Boxes (Warning, Important, Info) */
.notice-box {
    background: rgba(79, 70, 229, 0.08);
    border: 2px solid #4F46E5;
    border-left: 6px solid #4F46E5;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.notice-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
    border-left-color: #F59E0B;
}

.notice-box.important {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
    border-left-color: #EF4444;
}

.notice-box h4 {
    margin: 0 0 0.75rem 0 !important;
    font-size: 1.2rem;
    color: #654321;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-box h4 i {
    font-size: 1.3rem;
    color: #4F46E5;
}

.notice-box.warning h4 i {
    color: #F59E0B;
}

.notice-box.important h4 i {
    color: #EF4444;
}

.notice-box p {
    margin: 0;
    text-indent: 0;
    color: #4a3520;
}

/* Contact Section */
.contact-section {
    background: rgba(79, 70, 229, 0.05);
    border: 2px solid #8B4513;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
}

.contact-section h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.8rem;
    color: #654321;
    margin-bottom: 1rem;
}

.contact-section p {
    text-indent: 0;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-section a {
    color: #4F46E5;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(79, 70, 229, 0.1);
    border: 2px solid #4F46E5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-section a:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Document Footer */
.document-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(139, 69, 19, 0.3);
    text-align: center;
}

.document-footer p {
    text-indent: 0;
    text-align: center;
    font-style: italic;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.document-footer .signature {
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    color: #654321;
    margin-top: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #4F46E5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.back-to-top:hover {
    background: #3730a3;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Table Styling (if needed) */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #8B4513;
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.legal-table th {
    background: rgba(139, 69, 19, 0.2);
    color: #654321;
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.legal-table tr:nth-child(even) {
    background: rgba(139, 69, 19, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 1.5rem 4rem;
    }

    .legal-document {
        padding: 2.5rem 1.5rem;
    }

    .document-title {
        font-size: 2rem;
    }

    .document-content h2 {
        font-size: 1.5rem;
    }

    .document-content h3 {
        font-size: 1.3rem;
    }

    .document-content p {
        text-indent: 1rem;
    }

    .document-content ul,
    .document-content ol {
        margin-left: 1.5rem;
    }

    .notice-box {
        padding: 1rem 1.25rem;
    }

    .contact-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-document {
        padding: 2rem 1rem;
    }

    .document-title {
        font-size: 1.7rem;
    }

    .document-seal {
        font-size: 3rem;
    }

    .document-content p {
        text-indent: 0;
        text-align: left;
    }
}