/* Heart of Scotland Charity Digs — modern privacy policy */

.privacy-page {
    background: #f4f8f5;
    color: #172119;
}

.privacy-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.privacy-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 68px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 12%, rgba(95, 190, 139, 0.18), transparent 30%),
        linear-gradient(135deg, #0c281c, #174f38);
}

.privacy-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 42px 42px;
}

.privacy-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 50px;
    align-items: center;
}

.privacy-kicker {
    display: inline-block;
    color: #8ee0b1;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.privacy-hero h1 {
    margin: 12px 0 18px;
    color: #fff;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.privacy-hero-copy > p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 1.08rem;
    line-height: 1.8;
}

.privacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 28px;
}

.privacy-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    font-weight: 650;
}

.privacy-meta-item svg {
    width: 17px;
    height: 17px;
    fill: #8ee0b1;
}

.privacy-hero-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
    backdrop-filter: blur(10px);
}

.privacy-hero-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 17px;
    background: rgba(142,224,177,0.14);
    color: #98e7b9;
}

.privacy-hero-card-icon svg {
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.privacy-hero-card strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.15rem;
}

.privacy-hero-card p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.privacy-body {
    padding: 54px 0 80px;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.privacy-sidebar {
    position: sticky;
    top: 92px;
}

.privacy-toc,
.privacy-sidebar-note {
    border: 1px solid #dbe6df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 58, 42, 0.055);
}

.privacy-toc {
    padding: 20px;
}

.privacy-toc-label {
    display: block;
    margin-bottom: 10px;
    color: #769083;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.privacy-toc nav {
    display: grid;
    gap: 2px;
}

.privacy-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 9px;
    color: #5d6f65;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.35;
    transition: background 0.16s ease, color 0.16s ease;
}

.privacy-toc a:hover,
.privacy-toc a.is-active {
    background: #eaf4ee;
    color: #176643;
}

.privacy-sidebar-note {
    margin-top: 16px;
    padding: 20px;
    background: #153f2d;
    color: #fff;
}

.privacy-sidebar-note span {
    display: block;
    margin-bottom: 7px;
    color: #85dba9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.privacy-sidebar-note strong {
    display: block;
    font-size: 0.98rem;
}

.privacy-sidebar-note p {
    margin: 8px 0 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    line-height: 1.5;
}

.privacy-sidebar-note a {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.privacy-content {
    min-width: 0;
}

.privacy-section {
    scroll-margin-top: 110px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 20px;
    padding: 30px;
    border: 1px solid #dce7e0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 58, 42, 0.045);
}

.privacy-section-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7f3eb;
    color: #28764f;
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.privacy-section-content h2 {
    margin: 3px 0 15px;
    color: #11271b;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.privacy-section-content h3 {
    margin: 0 0 9px;
    color: #163626;
    font-size: 1rem;
}

.privacy-section-content p,
.privacy-section-content li {
    color: #617067;
    font-size: 0.95rem;
    line-height: 1.72;
}

.privacy-section-content p {
    margin: 0 0 14px;
}

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

.privacy-section-content ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.privacy-section-content a {
    color: #1e704d;
    font-weight: 750;
}

.privacy-subsection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.privacy-info-card {
    padding: 20px;
    border: 1px solid #e0eae4;
    border-radius: 14px;
    background: #f9fbfa;
}

.privacy-info-card ul {
    margin-top: 8px;
}

.privacy-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 20px;
    padding-left: 0 !important;
    list-style: none;
}

.privacy-check-list li {
    position: relative;
    padding-left: 25px;
}

.privacy-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2e8b57;
    font-weight: 900;
}

.privacy-basis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.privacy-basis-grid > div {
    padding: 18px;
    border: 1px solid #dfebe4;
    border-radius: 13px;
    background: #f8fbf9;
}

.privacy-basis-grid strong,
.privacy-basis-grid span {
    display: block;
}

.privacy-basis-grid strong {
    margin-bottom: 5px;
    color: #195d40;
    font-size: 0.88rem;
}

.privacy-basis-grid span {
    color: #718078;
    font-size: 0.8rem;
    line-height: 1.5;
}

.privacy-highlight-box {
    padding: 20px;
    border-left: 4px solid #2e8b57;
    border-radius: 0 13px 13px 0;
    background: #f1f8f4;
}

.privacy-highlight-box strong {
    display: block;
    margin-bottom: 7px;
    color: #164c35;
}

.privacy-highlight-box p {
    margin: 0;
}

.privacy-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.privacy-rights-grid span {
    position: relative;
    padding: 12px 14px 12px 36px;
    border: 1px solid #e0e9e3;
    border-radius: 11px;
    background: #fafcfb;
    color: #617067;
    font-size: 0.86rem;
}

.privacy-rights-grid span::before {
    content: "✓";
    position: absolute;
    left: 14px;
    color: #2e8b57;
    font-weight: 900;
}

.privacy-contact-section {
    margin-bottom: 0;
}

.privacy-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
    background: #153f2d;
    color: #fff;
}

.privacy-contact-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,0.10);
    color: #8fe0b1;
}

.privacy-contact-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.privacy-contact-card strong,
.privacy-contact-card a {
    display: block;
}

.privacy-contact-card strong {
    margin-bottom: 4px;
}

.privacy-contact-card a {
    color: #a8ecc4;
    font-size: 0.86rem;
    word-break: break-word;
}

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

    .privacy-hero-card {
        max-width: 520px;
    }

    .privacy-layout {
        grid-template-columns: 1fr;
    }

    .privacy-sidebar {
        position: static;
    }

    .privacy-toc {
        display: none;
    }

    .privacy-sidebar-note {
        margin-top: 0;
    }
}

@media (max-width: 700px) {
    .privacy-shell {
        width: min(100% - 24px, 1180px);
    }

    .privacy-hero {
        padding: 52px 0 46px;
    }

    .privacy-hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.2rem);
    }

    .privacy-body {
        padding: 28px 0 48px;
    }

    .privacy-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px;
        border-radius: 16px;
    }

    .privacy-section-number {
        width: 42px;
        height: 42px;
    }

    .privacy-subsection-grid,
    .privacy-check-list,
    .privacy-basis-grid,
    .privacy-rights-grid {
        grid-template-columns: 1fr;
    }

    .privacy-contact-card {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .privacy-toc a {
        transition: none;
    }
}
