/* صفحات حقوقی پناه — استایل مشترک */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    color: #463b54;
    background: #faf7fc;
    line-height: 1.85;
}

a:not(header nav a):not(#navigationMenu a) { color: #7c5cbf; }
a:not(header nav a):not(#navigationMenu a):hover { color: #5a3d9e; }

.panaah-legal-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.panaah-legal-hero {
    background: linear-gradient(135deg, #b99af5 0%, #a9b8fa 48%, #8fc8f5 100%);
    color: #fff;
    padding: 1.5rem 1.25rem 2.5rem;
    overflow: visible;
}

.panaah-legal-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.panaah-legal-hero--about {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* جلوگیری از بریده شدن تصویر زیر هدر */
body:has(.panaah-legal-hero--about) .panaah-site-header {
    margin-bottom: 0 !important;
}

.panaah-legal-hero--about .panaah-legal-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .panaah-legal-hero--about .panaah-legal-hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }

    .panaah-legal-hero--about .panaah-legal-hero-content {
        flex: 1 1 0;
        min-width: 0;
    }

    .panaah-legal-hero--about .panaah-legal-hero-visual {
        flex: 0 0 auto;
    }
}

.panaah-legal-hero-content {
    position: relative;
    z-index: 1;
}

.panaah-legal-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .panaah-legal-hero--about .panaah-legal-hero-visual {
        max-width: 280px;
        margin-inline: 0;
    }
}

.panaah-legal-hero-visual::before {
    content: "";
    position: absolute;
    inset: 5% 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    animation: panaah-about-hero-glow 5s ease-in-out infinite;
    pointer-events: none;
}

.panaah-legal-hero-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-width: 300px;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(61, 50, 80, 0.2);
    animation: panaah-about-hero-float 6s ease-in-out infinite;
    will-change: transform;
}

@media (min-width: 768px) {
    .panaah-legal-hero--about .panaah-legal-hero-img {
        max-width: 280px;
    }
}

.panaah-legal-hero-img:hover {
    animation-play-state: paused;
}

@keyframes panaah-about-hero-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes panaah-about-hero-glow {
    0%, 100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .panaah-legal-hero-img,
    .panaah-legal-hero-visual::before {
        animation: none;
        will-change: auto;
    }
}

.panaah-legal-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
}

.panaah-legal-hero p {
    margin: 0;
    opacity: 0.95;
    max-width: 42rem;
    font-size: 1rem;
}

.panaah-legal-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.panaah-legal-card {
    background: #fff;
    border: 1px solid #eadcf4;
    border-radius: 28px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 30px rgba(187, 143, 242, 0.08);
}

.panaah-legal-card h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: #3d3250;
}

.panaah-legal-card h2:first-child {
    margin-top: 0;
}

.panaah-legal-card h3 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
    color: #514663;
}

.panaah-legal-card p,
.panaah-legal-card li {
    font-size: 0.95rem;
    color: #5a4f66;
}

.panaah-legal-card ul,
.panaah-legal-card ol {
    padding-right: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.panaah-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.panaah-contact-item {
    background: #f8f3ff;
    border: 1px solid #eadcf4;
    border-radius: 20px;
    padding: 1.25rem;
}

.panaah-contact-item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #3d3250;
}

.panaah-contact-item a {
    word-break: break-all;
}

.panaah-info-box {
    background: #f0faf6;
    border: 1px solid #c8ebe0;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #416b5c;
}

.panaah-info-box-btn {
    display: block;
    width: fit-content;
    margin-top: 0.85rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: #416b5c;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.panaah-info-box-btn:hover {
    background: #355a4d;
    transform: translateY(-1px);
}

.panaah-about-who-section {
    background: linear-gradient(135deg, #e8e0ff 0%, #dce8ff 50%, #ebe4ff 100%);
    padding: 3.5rem 1.25rem;
}

.panaah-about-who-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    direction: ltr;
}

.panaah-about-who-content {
    flex: 1;
    text-align: right;
    direction: rtl;
}

.panaah-about-who-content h2 {
    margin: 0 0 1.25rem;
    color: #514daf !important;
    font-size: 1.75rem;
}

.panaah-about-who-content p {
    margin: 0 0 1rem;
    color: #514b63;
    line-height: 2;
}

.panaah-about-who-content p:last-child {
    margin-bottom: 0;
}

.panaah-about-who-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.panaah-about-who-image img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

@media (min-width: 768px) {
    .panaah-about-who-section {
        padding: 4rem 1.25rem;
    }

    .panaah-about-who-inner {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .panaah-about-who-content h2 {
        font-size: 2rem;
    }
}

.panaah-features-section {
    background: #f8f3ff;
    padding: 3.5rem 1.25rem;
}

.panaah-features-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.panaah-features-section h2 {
    margin: 0 0 1.75rem;
    color: #514daf !important;
    text-align: right;
    font-size: 1.75rem;
}

.panaah-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.panaah-feature-card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(81, 77, 175, 0.14);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(81, 77, 175, 0.08);
    text-align: right;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panaah-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(81, 77, 175, 0.14);
}

.panaah-feature-card strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #514daf;
    font-size: 1.05rem;
}

.panaah-feature-card span {
    display: block;
    color: #514b63;
    line-height: 2;
}

@media (max-width: 640px) {
    .panaah-features-section {
        padding: 2.5rem 1rem;
    }

    .panaah-feature-grid {
        grid-template-columns: 1fr;
    }
}

.panaah-warning-box {
    background: #fff8f0;
    border: 1px solid #f5dcc4;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #8a5a2a;
}

.panaah-feature-list {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.panaah-feature-list li {
    background: #faf7fc;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    list-style: none;
    border-right: 3px solid #bb8ff2;
}

.panaah-legal-footer-wrap {
    background: #f3e8ff;
    margin-top: 2rem;
}

.panaah-legal-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 1.5rem;
}

.panaah-legal-footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.panaah-legal-footer-brand p {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: #786b83;
}

.panaah-legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panaah-legal-footer-links a {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: #f0e6ff;
    color: #594b63;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
}

.panaah-legal-footer-links a:hover {
    background: #e5d1ff;
    transform: translateY(-1px);
}

.panaah-legal-footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid #eadcf4;
    font-size: 0.75rem;
    color: #88788f;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .panaah-legal-footer-top {
        grid-template-columns: 1fr;
    }

    .panaah-legal-card {
        padding: 1.5rem 1.15rem;
    }
}

.panaah-contact-section {
    margin-top: 2rem;
    padding: 3rem 1.25rem;
    background: linear-gradient(135deg, #a9b8fa 0%, #b99af5 100%);
    color: #fff;
}

.panaah-contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.panaah-contact-section h2 {
    margin: 0 0 .5rem;
    color: #fff !important;
}

.panaah-contact-section p {
    margin: .25rem 0;
    color: rgba(255,255,255,.92);
}

.panaah-contact-section a {
    color: #fff !important;
}

.panaah-social-links {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    flex-shrink: 0;
}

.panaah-social-links a {
    width: 120px;
    min-height: 120px;
    padding: 1rem .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 20px;
    background: rgba(255,255,255,.2);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.panaah-social-links a:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.32);
}

.panaah-social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panaah-social-links img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.panaah-social-links a > span:last-child {
    font-size: .9rem;
    line-height: 1.4;
    text-align: center;
}

.panaah-contact-social-text {
    margin-top: .75rem !important;
}

@media (max-width: 640px) {
    .panaah-contact-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .panaah-social-links {
        justify-content: center;
    }
}
