/* PyGuru legal pages — Privacy Policy & Terms */

html:has(.privacy-page) {
    scroll-behavior: smooth;
}

.privacy-page {
    position: relative;
    overflow-x: clip;
}

.privacy-page::before,
.privacy-page::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.privacy-page::before {
    top: 80px;
    left: -150px;
    background: radial-gradient(circle, rgba(255, 1, 79, 0.55), rgba(255, 1, 79, 0));
}

.privacy-page::after {
    right: -160px;
    bottom: 120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0));
}

.privacy-page .container {
    position: relative;
    z-index: 1;
}

.privacy-hero {
    margin: 1.5rem auto 2.5rem;
    padding: 2rem 1.75rem;
    max-width: 920px;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 55%, rgba(255, 241, 246, 0.9) 100%);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.privacy-hero::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 5px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, var(--color-primary), #ff6b9d);
}

.privacy-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 1, 79, 0.1);
    border: 1px solid rgba(255, 1, 79, 0.18);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.privacy-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.privacy-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.privacy-hero__meta i {
    color: var(--color-primary);
}

.privacy-hero__lead {
    max-width: 680px;
    margin: 0 auto 1rem;
    color: #475569;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.75;
    font-weight: 500;
}

.legal-hero__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.legal-hero__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.85);
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.legal-hero__link:hover,
.legal-hero__link.is-active {
    background: rgba(255, 1, 79, 0.1);
    border-color: rgba(255, 1, 79, 0.22);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.legal-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 auto 2.25rem;
    max-width: 1080px;
}

.legal-summary-card {
    padding: 1.35rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.legal-summary-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 1, 79, 0.12), rgba(255, 107, 157, 0.1));
    color: var(--color-primary);
    font-size: 1.05rem;
}

.legal-summary-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.legal-summary-card__text {
    margin: 0;
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.65;
}

.privacy-layout {
    align-items: flex-start;
    gap: 0;
}

.privacy-toc {
    position: sticky;
    top: 100px;
    margin-bottom: 2rem;
}

.privacy-toc__card {
    padding: 1.35rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.privacy-toc__title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.privacy-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.privacy-toc__list a {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    color: #475569;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.privacy-toc__list a:hover,
.privacy-toc__list a.is-active,
.privacy-toc__list a:focus-visible {
    background: rgba(255, 1, 79, 0.08);
    color: var(--color-primary);
    transform: translateX(3px);
    outline: none;
}

.privacy-toc__list a:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 1, 79, 0.25);
}

.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.privacy-section {
    padding: 1.75rem 1.65rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    scroll-margin-top: 110px;
}

.privacy-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.privacy-section__title::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 1.35rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-primary), #ff6b9d);
}

.privacy-section__subtitle {
    margin: 1.35rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.privacy-section__subtitle:first-of-type {
    margin-top: 0;
}

.privacy-section p,
.privacy-section li {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.8;
}

.privacy-section p {
    margin-bottom: 0.85rem;
}

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

.privacy-section ul {
    margin: 0 0 0.85rem;
    padding-left: 0;
    list-style: none;
}

.privacy-section ul li {
    position: relative;
    margin-bottom: 0.65rem;
    padding-left: 1.35rem;
}

.privacy-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #ff6b9d);
    transform: translateY(-50%);
}

.privacy-section ul li:last-child {
    margin-bottom: 0;
}

.privacy-section a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.privacy-section a:hover {
    opacity: 0.85;
}

.privacy-section strong {
    color: #0f172a;
    font-weight: 700;
}

.privacy-contact-card {
    margin-top: 0.25rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 1, 79, 0.08), rgba(255, 107, 157, 0.06));
    border: 1px solid rgba(255, 1, 79, 0.16);
}

.privacy-contact-card p:last-child {
    margin-bottom: 0;
}

@media only screen and (max-width: 991px) {
    .legal-summary-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .privacy-toc {
        position: static;
    }

    .privacy-toc__card {
        margin-bottom: 0.5rem;
    }

    .privacy-toc__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        max-height: 220px;
        overflow-y: auto;
        padding-right: 0.25rem;
    }

    .privacy-section {
        scroll-margin-top: 90px;
    }
}

@media only screen and (max-width: 767px) {
    .privacy-hero {
        padding: 1.5rem 1.15rem 1.35rem 1.35rem;
        border-radius: 20px;
        text-align: left;
    }

    .privacy-hero__eyebrow,
    .privacy-hero__meta,
    .legal-hero__links {
        justify-content: flex-start;
    }

    .privacy-hero__lead {
        margin-left: 0;
        margin-right: 0;
    }

    .legal-summary-card {
        text-align: left;
    }

    .privacy-section {
        padding: 1.35rem 1.1rem;
        border-radius: 18px;
    }

    .privacy-toc__list {
        grid-template-columns: 1fr;
        max-height: none;
    }
}

@media only screen and (max-width: 575px) {
    .privacy-hero__title {
        font-size: 1.65rem;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 1.02rem;
    }

    .privacy-toc__list a {
        font-size: 0.98rem;
    }
}
