/* ============================
   Privacy / Data Protection Page
   ============================ */

.hero-title-gold {
    color: var(--brand-gold, #d4a843);
}

.about-hero-section {
    isolation: isolate;
}

.about-hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.about-hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 43, 54, 0.56) 0%, rgba(0, 43, 54, 0.42) 45%, rgba(0, 43, 54, 0.52) 100%);
}

.about-hero-team-underlay {
    position: relative;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    width: min(1400px, 100%);
    padding: 0 1.5vw;
}

.about-hero-portrait {
    position: relative;
    display: block;
    width: clamp(110px, 9.2vw, 150px);
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(0, 20, 26, 0.18);
    opacity: 0.96;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    flex: 0 0 auto;
}

.about-hero-portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(1.02) brightness(1.03);
}

.about-hero-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 43, 54, 0.05));
}

.about-hero-portrait + .about-hero-portrait {
    margin-left: clamp(-18px, -1.6vw, -10px);
}

.about-hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-hero-title-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    line-height: 1.15;
    text-align: center;
}

.about-hero-separator {
    opacity: 0.82;
}

.portrait-edit {
    transform: translateY(10px) rotate(-2deg);
}

.portrait-edit img {
    object-position: 50% 26%;
}

.portrait-marta {
    transform: translateY(-6px) rotate(1deg);
}

.portrait-marta img {
    object-position: 50% 22%;
}

.portrait-noemi {
    transform: translateY(12px) rotate(-2deg);
}

.portrait-noemi img {
    object-position: 50% 24%;
}

.portrait-denes {
    transform: translateY(-8px) rotate(2deg);
}

.portrait-denes img {
    object-position: 50% 20%;
}

.portrait-gergely {
    transform: translateY(8px) rotate(-1deg);
}

.portrait-gergely img {
    object-position: 50% 22%;
}

.portrait-eszter {
    transform: translateY(-5px) rotate(2deg);
}

.portrait-eszter img {
    object-position: 50% 24%;
}

.portrait-marton {
    transform: translateY(11px) rotate(-2deg);
}

.portrait-marton img {
    object-position: 50% 18%;
}

.portrait-orsolya {
    transform: translateY(-7px) rotate(2deg);
}

.portrait-orsolya img {
    object-position: 50% 18%;
}

.portrait-akos {
    transform: translateY(9px) rotate(-1deg);
}

.portrait-akos img {
    object-position: 50% 18%;
}

.portrait-szilvia {
    transform: translateY(-4px) rotate(2deg);
}

.portrait-szilvia img {
    object-position: 50% 18%;
}

/* ============================
   Two-Column Layout
   ============================ */
.privacy-content-section {
    background: var(--bg-light, #f8f9fa);
    padding: 160px 0 80px;
    position: relative;
}

.privacy-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ============================
   Sidebar TOC
   ============================ */
.privacy-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
}

/* Hide scrollbar for Chrome/Safari/Edge to make it look cleaner */
.privacy-sidebar::-webkit-scrollbar {
    width: 6px;
}
.privacy-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.privacy-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.privacy-toc {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px 20px;
}

.toc-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-teal, #008080);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-teal, #008080);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 2px;
}

.toc-list a {
    display: block;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--brand-teal, #008080);
    background: rgba(0, 128, 128, 0.04);
}

.toc-list a.active {
    color: var(--brand-teal, #008080);
    background: rgba(0, 128, 128, 0.08);
    border-left-color: var(--brand-teal, #008080);
    font-weight: 600;
}

/* Scrollbar styling for TOC */
.privacy-sidebar::-webkit-scrollbar {
    width: 4px;
}

.privacy-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.privacy-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 128, 128, 0.2);
    border-radius: 4px;
}

/* ============================
   Document Content
   ============================ */
.privacy-document {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    padding: 50px 60px;
    line-height: 1.8;
    color: #333;
    font-size: 0.97rem;
}

/* Intro Block — simplified for a serious legal look */
.privacy-document .legal-intro {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.privacy-document .legal-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
}

/* Section Headings */
.privacy-document h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-teal, #008080);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 128, 128, 0.15);
    letter-spacing: -0.3px;
    scroll-margin-top: 100px;
}

.privacy-document h2 .section-number {
    color: var(--brand-gold, #d4a843);
    margin-right: 8px;
    font-weight: 800;
}

.privacy-document h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-top: 30px;
    margin-bottom: 12px;
}

/* Paragraphs */
.privacy-document p {
    margin-bottom: 16px;
    text-align: left;
}

/* Definition Table (Section 1) */
.privacy-document .definitions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0 30px;
}

.privacy-document .definitions-table tr {
    border-bottom: 1px solid #eee;
}

.privacy-document .definitions-table td {
    padding: 12px 16px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.privacy-document .definitions-table td:first-child {
    font-weight: 600;
    color: var(--brand-teal, #008080);
    white-space: nowrap;
    width: 30%;
    padding-right: 24px;
}

.privacy-document .definitions-table td:last-child {
    color: #555;
}

/* Lists */
.privacy-document ul,
.privacy-document ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.privacy-document li {
    margin-bottom: 8px;
    color: #444;
}

.privacy-document ul li::marker {
    color: var(--brand-teal, #008080);
}

/* Contact info block */
.privacy-document .contact-block {
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.05), rgba(0, 128, 128, 0.02));
    border-left: 4px solid var(--brand-teal, #008080);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0 30px;
}

.privacy-document .contact-block p {
    margin-bottom: 6px;
    text-align: left;
}

/* Lettered sub-items */
.privacy-document .letter-item {
    font-weight: 600;
    color: var(--brand-teal, #008080);
    margin-top: 20px;
    margin-bottom: 8px;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
    .about-hero-layout {
        gap: 24px;
    }

    .about-hero-portrait {
        width: clamp(94px, 10vw, 118px);
        opacity: 0.94;
    }

    .about-hero-team-underlay {
        flex-wrap: wrap;
        row-gap: 10px;
        padding: 0;
        max-width: 860px;
    }

    .about-hero-portrait + .about-hero-portrait {
        margin-left: clamp(-14px, -1.8vw, -8px);
    }

    .about-hero-title-line {
        font-size: clamp(1.6rem, 3vw, 2.4rem);
    }

    .privacy-sidebar {
        display: none;
    }

    .privacy-layout {
        display: block;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding-bottom: 120px !important;
    }

    .about-hero-section .hero-overlay {
        background:
            linear-gradient(180deg, rgba(0, 43, 54, 0.68) 0%, rgba(0, 43, 54, 0.5) 45%, rgba(0, 43, 54, 0.6) 100%);
    }

    .about-hero-portrait {
        width: 86px;
        border-radius: 20px;
        opacity: 0.9;
    }

    .about-hero-team-underlay {
        max-width: 620px;
        row-gap: 8px;
        padding: 0;
    }

    .about-hero-portrait + .about-hero-portrait {
        margin-left: -10px;
    }

    .about-hero-title-line {
        flex-wrap: wrap;
        font-size: clamp(1.3rem, 5.2vw, 1.95rem);
        padding: 0 10px;
    }

    .about-hero-separator {
        display: none;
    }

    .privacy-document {
        padding: 30px 24px;
        border-radius: 12px;
    }

    .privacy-document .definitions-table td:first-child {
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .about-hero-team-underlay {
        max-width: 380px;
    }

    .about-hero-portrait {
        width: 72px;
    }

    .about-hero-portrait + .about-hero-portrait {
        margin-left: -8px;
    }

    .privacy-document {
        padding: 24px 18px;
    }

    .privacy-document .definitions-table {
        display: block;
    }

    .privacy-document .definitions-table tr {
        display: block;
        margin-bottom: 16px;
    }

    .privacy-document .definitions-table td {
        display: block;
        width: 100% !important;
        padding: 6px 0;
    }

    .privacy-document .definitions-table td:first-child {
        padding-right: 0;
        border-bottom: none;
    }
}
