/*
* Roseline's Pflege - Legal Pages Styles
* Author: UI/UX Designer
* Version: 1.0
*/

/* ===== LEGAL PAGES SPECIFIC STYLES ===== */

/* Legal Header Section */
/* Update logo styling for legal pages */
.brand-logo-img {
    width: 100px;
    height: auto;
    display: block;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
}

/* Ensure the legal header properly accommodates the new navbar height */
.legal-header {
    padding-top: 170px; /* Adjusted to account for the new header height */
    padding-bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), #f1f6f4); 
    position: relative;
    overflow: hidden;
}

.legal-header-content {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.legal-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.legal-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

.breadcrumb {
    justify-content: center;
    margin-top: var(--spacing-sm);
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light);
}

.header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
    line-height: 0;
}

/* Legal Content Section */
.legal-content {
    background-color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-xxl);
    position: relative;
    z-index: 2;
}

/* Table of Contents Navigation */
.legal-navigation {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.legal-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem var(--spacing-md);
}

.legal-navigation li {
    flex: 0 0 auto;
}

.legal-navigation a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-white);
    display: inline-block;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(110, 186, 158, 0.1);
}

.legal-navigation a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(110, 186, 158, 0.2);
}

/* Legal Section Content */
.legal-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(110, 186, 158, 0.1);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--primary-dark);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

.legal-section h3 {
    color: var(--text-color);
    font-size: 1.35rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.legal-section p, 
.legal-section ul, 
.legal-section ol {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.legal-section ul, 
.legal-section ol {
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: var(--transition-fast);
}

.legal-section a:hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}

/* Contact Info Box */
.contact-info-box {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-md) 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.contact-info-box p {
    margin-bottom: 0.75rem;
}

.contact-info-box p:last-child {
    margin-bottom: 0;
}

/* Last Updated Info */
.legal-update-info {
    text-align: right;
    color: var(--text-light);
    font-style: italic;
    font-size: var(--text-sm);
    margin-top: var(--spacing-lg);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .legal-header {
        padding-top: 150px;
    }

    .legal-navigation ul {
        justify-content: center;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
        .legal-header {
        padding-top: 140px;
    }
    
    .brand-logo-img {
        width: 50px;
    }

    .legal-header {
        padding-top: 140px;
    }
    
    .legal-header-content {
        padding: var(--spacing-md) 0;
    }
    
    .legal-navigation {
        padding: var(--spacing-sm);
    }
    
    .legal-navigation ul {
        gap: 0.5rem;
    }
    
    .legal-navigation a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .contact-info-box {
        padding: var(--spacing-sm);
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
        .legal-header {
        padding-top: 130px;
    }
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .legal-content {
        padding: var(--spacing-lg) 0 var(--spacing-xl);
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-navigation a {
        font-size: 0.75rem;
    }
}

/* Footer Logo and Brand Text Styling */
.footer-logo-img {
    width: 50px;
    height: auto;
    margin-right: 0.75rem;
}

.footer-text-container {
    display: flex;
    flex-direction: column;
}

.footer .brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer .brand-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-primary);
    line-height: 1.1;
}

.footer .brand-subtitle {
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
    font-family: var(--font-secondary);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for footer */
@media (max-width: 767.98px) {
    .footer-text-container {
        align-items: center;
    }
    
    .footer-logo-img {
        width: 40px;
    }
    
    .footer .brand-text {
        font-size: 1.4rem;
    }
    
    .footer .brand-subtitle {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .legal-header {
        padding-top: 80px;
        background: none;
    }
    
    .header-wave,
    .back-to-top,
    .navbar,
    .footer,
    .top-contact-bar {
        display: none !important;
    }
    
    .legal-content {
        padding: 0;
    }
    
    .legal-navigation {
        display: none;
    }
    
    .legal-section {
        page-break-inside: avoid;
        border-bottom: 1px solid #eee;
    }
    
    .legal-section h2::after {
        background-color: #666;
    }
    
    .contact-info-box {
        border: 1px solid #eee;
        border-left: 4px solid #666;
        background: none;
        box-shadow: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== ADDITIONAL CSS FOR SEO-OPTIMIZED IMPRESSUM PAGE ===== */
/* Add these styles to your existing legal-pages.css file */

/* ===== QUICK CONTACT CARD ===== */
.quick-contact-card {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(233, 30, 99, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.quick-contact-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.quick-contact-card p {
    color: var(--text-medium);
    margin-bottom: 0;
    font-size: 1rem;
}

.quick-contact-card .btn {
    white-space: nowrap;
    min-width: 180px;
    font-weight: 600;
}

/* ===== SERVICE HIGHLIGHT BOX ===== */
.service-highlight {
    background-color: rgba(233, 30, 99, 0.05);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.service-highlight p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== SERVICE AREAS HIGHLIGHT ===== */
.service-areas {
    background-color: rgba(3, 169, 244, 0.05);
    border: 1px solid var(--secondary-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm);
}

.service-areas p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== CERTIFICATION INFO ===== */
.certification-info {
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.certification-info p {
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.certification-info ul {
    margin-bottom: 0;
}

.certification-info li {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.certification-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== CONTACT CTA SECTION ===== */
.contact-cta {
    background: linear-gradient(135deg, var(--bg-light), var(--primary-light));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(233, 30, 99, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.contact-cta h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.contact-cta p {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ===== ENHANCED FOOTER CONTACT ===== */
.footer-contact {
    flex: 1 1 250px;
}

.footer-contact h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
    font-family: var(--font-primary);
}

.footer-contact h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== LEGAL FOOTER LINKS ===== */
.legal-links a.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.legal-links a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* ===== ENHANCED CONTACT INFO BOX ===== */
.contact-info-box .row {
    margin: 0;
}

.contact-info-box .col-md-6 {
    padding: 0 var(--spacing-sm);
}

.contact-info-box p {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info-box small {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8rem;
}

.contact-info-box i {
    margin-right: 0.5rem;
    width: 1.2rem;
    text-align: center;
}

/* ===== LEGAL SECTION ENHANCEMENTS ===== */
.legal-section h3 {
    color: var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
    padding-left: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.legal-section ul li {
    position: relative;
    padding-left: 1.5rem;
}

.legal-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Strong emphasis styling */
.legal-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 991.98px) {
    .quick-contact-card .row {
        text-align: center;
    }
    
    .quick-contact-card .col-md-4 {
        margin-top: var(--spacing-sm);
    }
    
    .contact-cta .row {
        text-align: center;
    }
    
    .contact-cta .col-md-4 {
        margin-top: var(--spacing-sm);
    }
    
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: left;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .quick-contact-card {
        padding: var(--spacing-md);
        text-align: center;
    }
    
    .quick-contact-card h3 {
        font-size: 1.2rem;
        justify-content: center;
    }
    
    .quick-contact-card .btn {
        width: 100%;
        min-width: auto;
    }
    
    .contact-cta {
        padding: var(--spacing-md);
        text-align: center;
    }
    
    .contact-cta h4 {
        font-size: 1.1rem;
        justify-content: center;
    }
    
    .contact-cta .btn {
        width: 100%;
    }
    
    .service-highlight,
    .service-areas,
    .certification-info {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 575.98px) {
    .quick-contact-card {
        padding: var(--spacing-sm);
    }
    
    .quick-contact-card h3 {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-cta {
        padding: var(--spacing-sm);
    }
    
    .contact-cta h4 {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item i {
        margin-top: 0;
    }
}

/* ===== PRINT STYLES ADDITIONS ===== */
@media print {
    .quick-contact-card,
    .contact-cta,
    .legal-navigation {
        display: none !important;
    }
    
    .service-highlight,
    .service-areas,
    .certification-info {
        border: 1px solid #ddd;
        background: none;
        box-shadow: none;
    }
    
    .contact-info-box {
        border: 1px solid #ddd;
        border-left: 4px solid #666;
        background: none;
        box-shadow: none;
    }
    
    .legal-section h3 {
        border-left: 3px solid #666;
    }
}