/* صفحه قوانین و مقررات مطبخ خونه */

body {
    padding-top: 80px;
}

.page-header {
    background: var(--gradient-bg);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    border: none;
    padding: 0;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-light);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

h2 {
    font-size: 1.5em;
    margin: 20px 0 10px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.2em;
    margin: 15px 0 10px;
    color: var(--text-light);
}

section {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul, ol {
    margin: 15px 25px;
}

li {
    margin-bottom: 10px;
}

.highlight {
    background-color: var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* استایل‌های خاص صفحه قوانین */

.back-to-app {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.back-to-app:hover {
    background-color: #3db8b0;
}

.section-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.section-toggle::after {
    content: "▼";
    font-size: 0.8em;
    transition: transform 0.3s;
}

.section-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.section-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 1000px;
}

.section-content.collapsed {
    max-height: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .container {
        padding: 10px;
    }
    
    section {
        padding: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .nav-brand {
        gap: 8px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 35px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-description {
        max-width: 100%;
    }
}