/* ============================================
   RENA-SER Legal Pages Stylesheet
   Brand Colors: Gold #C5A76E, Red #D32F2F
   ============================================ */

:root {
    --primary-gold: #C5A76E;
    --deep-gold: #B8944E;
    --vibrant-red: #D32F2F;
    --dark-red: #B71C1C;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-light: #e0e0e0;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
}

/* ============================================
   LEGAL PAGE CONTAINER
   ============================================ */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LEGAL HEADER
   ============================================ */
.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--primary-gold);
}

.legal-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.legal-header .back-link:hover {
    color: var(--deep-gold);
    gap: 12px;
}

.legal-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.legal-header .last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

.legal-header .company-info {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.legal-header .company-info h2 {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.legal-header .company-info p {
    margin: 5px 0;
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ============================================
   LEGAL CONTENT
   ============================================ */
.legal-content {
    background: var(--white);
}

.legal-content section {
    margin-bottom: 50px;
    scroll-margin-top: 100px; /* For smooth anchor scrolling */
}

.legal-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-gold);
}

.legal-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-gold);
    margin: 30px 0 20px;
}

.legal-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 25px 0 15px;
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-medium);
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin: 20px 0 20px 30px;
    color: var(--text-medium);
}

.legal-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.legal-content li strong {
    color: var(--text-dark);
}

.legal-content a {
    color: var(--vibrant-red);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--dark-red);
    border-bottom-color: var(--dark-red);
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */
.legal-content .highlight-box {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFFAF5 100%);
    border-left: 4px solid var(--primary-gold);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(197, 167, 110, 0.1);
}

.legal-content .important-notice {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
    border-left: 4px solid var(--vibrant-red);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.1);
}

.legal-content .info-box {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

/* ============================================
   TABLE OF CONTENTS (TOC)
   ============================================ */
.legal-toc {
    background: var(--bg-light);
    padding: 30px;
    margin-bottom: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.legal-toc h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-gold);
}

.legal-toc ol {
    margin-left: 20px;
}

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

.legal-toc a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.legal-toc a:hover {
    color: var(--vibrant-red);
    transform: translateX(5px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.legal-contact {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--deep-gold) 100%);
    color: var(--white);
    padding: 40px;
    margin-top: 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(197, 167, 110, 0.3);
}

.legal-contact h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

.legal-contact p {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.legal-contact .contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.legal-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-contact .contact-item i {
    font-size: 1.2rem;
}

.legal-contact a {
    color: var(--white);
    font-weight: 500;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.legal-contact a:hover {
    border-bottom-color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.legal-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
}

.legal-footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.legal-footer .footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-footer .footer-links a:hover {
    color: var(--primary-gold);
}

.legal-footer p {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .legal-container {
        padding: 60px 15px 40px;
    }

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

    .legal-content h2 {
        font-size: 1.6rem;
    }

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

    .legal-content h4 {
        font-size: 1.1rem;
    }

    .legal-content ul,
    .legal-content ol {
        margin-left: 20px;
    }

    .legal-contact .contact-details {
        flex-direction: column;
        gap: 15px;
    }

    .legal-footer .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .legal-toc {
        padding: 20px;
    }

    .highlight-box,
    .important-notice,
    .info-box {
        padding: 20px;
    }
}

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

    .legal-content h2 {
        font-size: 1.4rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    body {
        font-size: 15px;
    }

    .legal-contact {
        padding: 30px 20px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .legal-header .back-link,
    .legal-contact,
    .legal-footer .footer-links {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .legal-container {
        max-width: 100%;
        padding: 0;
    }

    .legal-content section {
        page-break-inside: avoid;
    }

    .legal-content h2 {
        page-break-after: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 3px solid var(--vibrant-red);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-dark: #000000;
        --text-medium: #000000;
        --border-light: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}