/* --- وارد کردن استایل‌های پایه و متغیرها --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');

:root {
    --primary-color: #0077b6; /* آبی عمیق */
    --secondary-color: #00b4d8; /* آبی روشن‌تر */
    --accent-color: #90e0ef; /* آبی ملایم */
    --dark-color: #03045e; /* آبی تیره برای متن/عناوین */
    --light-color: #f0f8ff; /* سفید مایل به آبی برای پس‌زمینه */
    --text-color: #333;
    --error-color: #d90429; /* رنگ قرمز برای دکمه حذف */
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.8; /* افزایش line-height برای خوانایی متن قوانین */
}

/* --- استایل Header، Nav و Footer (برای یکپارچگی) --- */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-heavy);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    color: var(--accent-color);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 0;
    transition: color 0.3s, border-bottom 0.3s;
    font-weight: 400;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: color 0.3s;
}

.dropbtn:hover {
    color: var(--secondary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-color);
    min-width: 160px;
    box-shadow: var(--shadow-light);
    z-index: 1;
    border-radius: var(--border-radius);
    top: 100%;
    right: 0;
    text-align: right;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

footer {
    background-color: var(--dark-color);
    color: var(--accent-color);
    padding: 20px 5%;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    font-weight: 400;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.footer-copy p {
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.7;
}

/* --- استایل بخش اصلی (Main) و محتوا --- */
main {
    display: flex;
    justify-content: center;
    padding: 40px 5%;
    background-color: var(--light-color);
    min-height: calc(100vh - 180px); 
}

.card {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    max-width: 800px; /* عرض بهینه برای خوانایی متن */
    width: 100%;
}

.main-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-weight: 900;
    border-bottom: 3px solid var(--primary-color);
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 400;
    padding: 0 5%;
}

.section-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    border-right: 4px solid var(--secondary-color);
    padding-right: 15px;
    font-weight: 700;
}

/* استایل لیست قوانین */
.privacy-rules-list {
    list-style: none;
    padding: 0;
}

.privacy-rules-list li {
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 1px solid var(--accent-color);
    border-right: 5px solid var(--primary-color); /* نوار آبی پررنگ برای تأکید بر امنیت */
    border-radius: var(--border-radius);
    background-color: #f7f9fc;
    position: relative;
}

.privacy-rules-list li::before {
    content: "✅";
    position: absolute;
    left: 20px;
    font-size: 1rem;
}

/* --- استایل فرم حذف اطلاعات --- */
.divider {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 40px 0;
}

.delete-form {
    padding: 20px;
    border: 2px dashed #ffc3c3; /* مرز متفاوتی برای تأکید بر اهمیت/هشدار */
    background-color: #fffafa;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 15px;
}

.delete-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--text-color);
}

.delete-form input[type="text"],
.delete-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    resize: vertical;
}

.delete-form input:focus,
.delete-form textarea:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.2);
    outline: none;
}

.delete-btn {
    /* بازنویسی استایل دکمه اصلی برای تأکید بر هشدار */
    background-color: var(--error-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    width: 100%; 
    margin-top: 15px;
}

.delete-btn:hover {
    background-color: #a80020; /* قرمز تیره‌تر هنگام هاور */
    transform: translateY(-1px);
}

/* --- واکنش‌گرایی (Media Queries) --- */
@media (max-width: 768px) {
    /* Header/Nav responsive styles here */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }
    
    header h1 {
        margin-bottom: 10px;
    }

    nav {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    nav a, .dropdown {
        margin: 5px 0;
        width: 100%;
        text-align: right;
    }

    .dropbtn {
        width: 100%;
        text-align: right;
        padding: 10px 0;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        border-radius: 0;
    }
    
    /* Main Content adjustments */
    main {
        padding: 20px 3%;
    }
    
    .card {
        padding: 20px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1rem;
        padding: 0;
    }

    .section-title {
        font-size: 1.4rem;
    }
    
    .privacy-rules-list li {
        padding-right: 15px; 
    }

    .privacy-rules-list li::before {
        left: 10px;
    }
}