/* ============================================
   LEGAL PAGES - Terms, Privacy, DMCA, etc.
   Porn Pics - Modern & Responsive Legal Content
   Full-width layout matching site design
   ============================================ */

.legal-page {
    padding: 20px 0 60px;
}

/* Legal Card - Main Content Container */
.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .legal-card {
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }
}

/* Header */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.legal-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.legal-header__icon i {
    font-size: 2.5rem;
    color: #fff;
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.legal-header__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-header__meta i {
    margin-right: 6px;
    color: var(--accent-primary);
}

/* Content Sections */
.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-primary);
    display: inline-block;
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 12px;
}

.legal-section p {
    margin-bottom: 14px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* Lists */
.legal-section ul,
.legal-section ol {
    margin: 14px 0;
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 10px;
    position: relative;
}

.legal-section ul li::marker {
    color: var(--accent-primary);
}

/* Links */
.legal-content a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Highlight Box */
.legal-highlight {
    background: rgba(230, 57, 70, 0.08);
    border-left: 4px solid var(--accent-primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0;
}

.legal-highlight p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

/* Info Box */
.legal-info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 20px 0;
}

.legal-info-box__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.legal-info-box__title i {
    color: var(--accent-primary);
}

/* Company Info Image */
.company-info-image {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 20px 0;
    display: inline-block;
}

.company-info-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Dark mode: invert the image colors */
[data-theme="dark"] .company-info-image img {
    filter: invert(1) hue-rotate(180deg);
}

@media (max-width: 600px) {
    .company-info-image {
        padding: 16px;
    }

    .company-info-image img {
        max-width: 100%;
    }
}

/* Contact Form */
.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label span {
    color: var(--accent-primary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.form-submit i {
    font-size: 1.1rem;
}

/* Table of Contents */
.legal-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 30px;
}

.legal-toc__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.legal-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}

.legal-toc__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.legal-toc__list a:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-toc__list a i {
    font-size: 0.75rem;
    color: var(--accent-primary);
}

/* Back to top */
.legal-back-top {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.legal-back-top a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.legal-back-top a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 20px 0 40px;
    }

    .legal-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-header__icon {
        width: 60px;
        height: 60px;
    }

    .legal-header__icon i {
        font-size: 1.8rem;
    }

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

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-toc__list {
        grid-template-columns: 1fr;
    }
}
