/* Legal Pages Styles */

/* Hero Section */
.legal-hero {
    background: var(--gradient);
    padding: 60px 20px 40px; /* Reduced from 80px 20px 60px */
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.page-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 1rem; /* Reduced from 1.5rem */
    opacity: 0.95;
}

.last-updated {
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content Section */
.legal-content {
    padding: 40px 0 60px; /* Reduced from 60px 0 80px */
    background: var(--white);
}

.content-wrapper {
    background: var(--white);
    padding: 2.5rem; /* Increased from 2rem for better internal spacing */
    border-radius: 12px; /* Increased from 8px for modern look */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
    line-height: 1.6; /* Reduced from 1.7 for tighter text */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Added subtle border */
}

/* Sections */
.section {
    margin-bottom: 2rem; /* Reduced from 2.5rem */
    padding-bottom: 1.25rem; /* Reduced from 1.5rem */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Lighter border */
}

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

/* Typography */
.section h2 {
    font-size: 1.4rem; /* Reduced from 1.5rem */
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.1); /* Added accent line */
}

.section h3 {
    font-size: 1.2rem; /* Reduced from 1.25rem */
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.25rem 0 0.5rem 0; /* Reduced spacing */
}

.section p {
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    color: #555;
}

.section ul {
    margin: 0.75rem 0; /* Reduced from 1rem 0 */
    padding-left: 1.25rem; /* Reduced from 1.5rem */
}

.section li {
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    color: #555;
    position: relative;
}

/* Enhanced list styling */
.section li::marker {
    color: var(--primary-color);
}

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

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(var(--primary-color-rgb), 0.05) 100%); /* Added gradient */
    padding: 1.25rem; /* Reduced from 1.5rem */
    border-radius: 8px; /* Increased from 6px */
    margin-top: 0.75rem; /* Reduced from 1rem */
    border-left: 4px solid var(--primary-color); /* Added accent border */
}

.contact-info p {
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
}

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

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease; /* Added smooth transition */
}

.contact-info a:hover {
    text-decoration: underline;
    color: var(--primary-color);
    filter: brightness(1.1);
}

/* Links */
.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease; /* Added smooth transition */
}

.legal-content a:hover {
    text-decoration: underline;
    filter: brightness(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero {
        padding: 40px 20px 30px; /* Reduced from 60px 20px 40px */
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .legal-content {
        padding: 30px 0 40px; /* Reduced spacing */
    }

    .content-wrapper {
        padding: 1.75rem; /* Reduced from 1.5rem but kept reasonable */
        border-radius: 8px;
    }

    .section {
        margin-bottom: 1.5rem; /* Reduced from 2rem */
        padding-bottom: 1rem;
    }

    .section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .section h3 {
        font-size: 1.125rem;
        margin: 1rem 0 0.4rem 0;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 35px 15px 25px; /* Further reduced */
    }

    .page-title {
        font-size: 1.75rem;
    }

    .content-wrapper {
        padding: 1.25rem; /* Reduced from 1rem */
        margin: 0 5px; /* Added small margin for mobile */
    }

    .section {
        margin-bottom: 1.25rem; /* Reduced from 2rem */
        padding-bottom: 0.75rem; /* Reduced from 1rem */
    }

    .section ul {
        padding-left: 1rem;
    }

    .contact-info {
        padding: 1rem;
    }
}