/* ============================================================
   Privacy Policy Page
   ============================================================ */

/* ----- Page wrapper ----- */
.privacy-page {
    display: flex;
    flex-direction: column;
}

/* ----- Hero Banner ----- */
.privacy-hero {
    position: relative;
    background-color: var(--text-color, #262424);
    color: #fff;
    padding: 100px 5% 80px;
    text-align: center;
    overflow: hidden;
}

/* subtle decorative gradient overlay */
.privacy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.privacy-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-hero h1 {
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #fff;
}

.privacy-hero-sub {
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0;
}

/* ----- Section wrapper ----- */
.privacy-section {
    padding: 72px 5% 96px;
    background-color: var(--bg-color, #F6F6F6);
}

/* ----- Grid ----- */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    /* centre last row if fewer than 4 items */
    justify-items: center;
}

/* last row: items 5-7 → shift to centre via subgrid trick */
.privacy-grid .privacy-card:nth-child(5) { grid-column: 1; }
.privacy-grid .privacy-card:nth-child(6) { grid-column: 2; }
.privacy-grid .privacy-card:nth-child(7) { grid-column: 3; }

/* ----- Card ----- */
.privacy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 36px 24px 28px;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color, #262424);
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.privacy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
    border-color: var(--text-color, #262424);
    color: var(--text-color, #262424);
    text-decoration: none;
}

/* ----- Icon circle ----- */
/* ----- Icon wrapper (stacked shield) ----- */
.privacy-card-icon {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* shield background layer */
.privacy-icon-shield {
    position: absolute;
    inset: 0;
    font-size: 100px;
    line-height: 1;
    color: var(--bg-secondary-color, #E6E6E6);
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-card:hover .privacy-icon-shield {
    color: var(--text-color, #262424);
}

/* foreground icon */
.privacy-icon-main {
    position: relative;
    z-index: 1;
    font-size: 36px;
    color: var(--text-color, #262424);
    margin-top: -10px; /* nudge up — shield narrows toward bottom */
    transition: color 0.25s ease;
}

.privacy-card:hover .privacy-icon-main {
    color: #fff;
}

/* ----- Card title ----- */
.privacy-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    flex: 1;
}

/* ----- Read more link ----- */
.privacy-card-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    text-transform: uppercase;
}

.privacy-card:hover .privacy-card-link {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
    .privacy-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* reset forced columns */
    .privacy-grid .privacy-card:nth-child(5),
    .privacy-grid .privacy-card:nth-child(6),
    .privacy-grid .privacy-card:nth-child(7) {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .privacy-hero {
        padding: 64px 5% 52px;
    }

    .privacy-section {
        padding: 48px 5% 64px;
    }

    .privacy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .privacy-grid {
        grid-template-columns: 1fr;
    }
}
