/* Legal Pages Styles */

/* Legal Content Layout */
.legal-content {
    padding: 120px 0 80px;
    background: var(--white);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--accent-rose);
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--deep-burgundy);
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section Styling */
.section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--deep-burgundy);
    margin: 2rem 0 1rem 0;
}

.section h4 {
    font-size: 1.2rem;
    color: var(--deep-burgundy);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.section p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Lists */
.section ul,
.section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.section li {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.section ul li {
    list-style-type: disc;
}

.section ol li {
    list-style-type: decimal;
}

/* Nested Lists */
.section ul ul,
.section ol ol,
.section ul ol,
.section ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.section ul ul li,
.section ol ol li {
    margin-bottom: 0.5rem;
}

/* Contact Information Styling */
.contact-info {
    background: linear-gradient(135deg, var(--warm-cream) 0%, rgba(255, 107, 157, 0.1) 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-pink);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info strong {
    color: var(--primary-pink);
}

/* Links */
.legal-body a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.legal-body a:hover {
    color: var(--deep-burgundy);
    text-decoration: underline;
}

/* Special Callout Boxes */
.callout {
    background: rgba(255, 107, 157, 0.1);
    border-left: 4px solid var(--primary-pink);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.callout h3 {
    margin-top: 0;
    color: var(--primary-pink);
}

.callout p:last-child {
    margin-bottom: 0;
}

/* Important Notes */
.important {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.important h3 {
    margin-top: 0;
    color: #b8860b;
}

/* Warning Boxes */
.warning {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.warning h3 {
    margin-top: 0;
    color: #dc3545;
}

/* Table Styling (if needed) */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.legal-table th {
    background: var(--primary-pink);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:nth-child(even) {
    background: rgba(255, 107, 157, 0.05);
}

/* Social Links in Footer */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 50%;
    color: var(--primary-pink);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-content {
        padding: 100px 0 60px;
    }

    .legal-header h1 {
        font-size: 2.5rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section h3 {
        font-size: 1.3rem;
    }

    .section ul,
    .section ol {
        padding-left: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .section h3 {
        font-size: 1.2rem;
    }

    .section ul,
    .section ol {
        padding-left: 1rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .callout,
    .important,
    .warning {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .social-links {
        display: none;
    }

    .legal-content {
        padding: 0;
    }

    .legal-header {
        border-bottom: 2px solid #000;
    }

    .section {
        page-break-inside: avoid;
        border-bottom: 1px solid #ccc;
    }

    .section h2 {
        color: #000;
        page-break-after: avoid;
    }

    .callout,
    .important,
    .warning {
        border-left: 4px solid #000;
        background: #f5f5f5;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Accessibility Improvements */
.legal-body {
    font-size: 1rem;
}

.section h2,
.section h3,
.section h4 {
    margin-top: 2rem;
}

.section h2:first-child,
.section h3:first-child,
.section h4:first-child {
    margin-top: 0;
}

/* Focus styles for keyboard navigation */
.legal-body a:focus {
    outline: 2px solid var(--primary-pink);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .section h2 {
        color: #000;
    }
    
    .section h3,
    .section h4 {
        color: #000;
    }
    
    .contact-info {
        background: #f0f0f0;
        border-left-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .social-links a {
        transition: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
}
