/* ===================================
   Privacy Policy Page Styles - Gumex Webshop
   (shares the design system used by Home/AboutUs)
   =================================== */

:root {
    --home-amber: #ffbb34;
    --home-amber-strong: #f0a800;
    --home-amber-soft: rgba(255, 187, 52, 0.12);
    --home-amber-glow: rgba(255, 187, 52, 0.35);
    --home-ink: #111827;
    --home-ink-2: #1f2937;
    --home-text: #475467;
    --home-muted: #6c757d;
    --home-surface: #ffffff;
    --home-surface-soft: #f7f8fa;
    --home-surface-tint: #fcf9f2;
    --home-border: #e6e8eb;
}

html {
    background: #ffffff;
}

body {
    background: transparent !important;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 70% at 12% 8%, rgba(255, 187, 52, 0.14) 0%, transparent 55%),
        radial-gradient(55% 65% at 88% 92%, rgba(255, 187, 52, 0.10) 0%, transparent 55%),
        linear-gradient(135deg, #f7f8fa 0%, #ffffff 50%, #fcf9f2 100%);
}

.wrap-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-container {
    padding-bottom: 88px;
}

/* ===== Hero ===== */
.privacy-hero-section {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, #0b121f 0%, #1f2937 100%);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    contain: layout style;
}

.privacy-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 90% at 100% 100%, var(--home-amber-glow) 0%, transparent 60%),
        radial-gradient(40% 60% at 0% 0%, rgba(255, 187, 52, 0.18) 0%, transparent 60%);
    z-index: 1;
}

.privacy-hero-overlay::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--home-amber) 0%, var(--home-amber-strong) 100%);
}

.privacy-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 72px 20px;
}

.privacy-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px 6px 12px;
    margin-bottom: 1.1rem;
    background: var(--home-amber-soft);
    border: 1px solid rgba(255, 187, 52, 0.5);
    color: var(--home-amber);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.privacy-hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-amber);
    box-shadow: 0 0 0 4px var(--home-amber-soft);
}

.privacy-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    animation: fadeInUp 0.7s ease-out;
    max-width: 820px;
}

.privacy-hero-title .accent {
    color: var(--home-amber);
}

.privacy-hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    line-height: 1.55;
    animation: fadeInUp 0.7s ease-out 0.15s both;
}

.privacy-hero-meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
}

/* ===== Layout: sticky TOC + content ===== */
.privacy-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 24px;
}

.privacy-toc {
    position: sticky;
    top: 96px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 20px 40px -26px rgba(17, 24, 39, 0.2);
}

.privacy-toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-ink-2);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--home-border);
}

.privacy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.privacy-toc-list li {
    counter-increment: toc;
}

.privacy-toc-list a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--home-text);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.privacy-toc-list a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--home-amber-strong);
    letter-spacing: 0.04em;
    min-width: 22px;
}

.privacy-toc-list a:hover {
    background: var(--home-amber-soft);
    color: var(--home-ink);
    transform: translateX(2px);
}

/* ===== Content ===== */
.privacy-content {
    min-width: 0;
}

.privacy-intro {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 24px 50px -28px rgba(17, 24, 39, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.privacy-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--home-amber) 0%, var(--home-amber-strong) 100%);
}

.privacy-intro p {
    font-size: 1.05rem;
    color: var(--home-text);
    line-height: 1.75;
    margin: 0 0 12px;
}

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

.privacy-section {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 24px;
    scroll-margin-top: 96px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.privacy-section:hover {
    border-color: rgba(255, 187, 52, 0.45);
    box-shadow: 0 18px 40px -24px rgba(17, 24, 39, 0.2);
}

.privacy-section h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--home-ink);
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.privacy-section h2::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--home-amber) 0%, var(--home-amber-strong) 100%);
    border-radius: 3px;
    transform: translateY(-4px);
}

.privacy-section p {
    font-size: 1rem;
    color: var(--home-text);
    line-height: 1.75;
    margin: 0 0 12px;
}

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

.privacy-section a {
    color: var(--home-amber-strong);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.privacy-section a:hover {
    color: #4a2f00;
    border-bottom-color: var(--home-amber-strong);
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.privacy-list li {
    position: relative;
    padding-left: 24px;
    color: var(--home-text);
    line-height: 1.65;
}

.privacy-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-amber);
    box-shadow: 0 0 0 3px var(--home-amber-soft);
}

.privacy-list li strong {
    color: var(--home-ink);
}

/* Inline info card */
.privacy-card {
    background: var(--home-surface-tint);
    border: 1px solid rgba(255, 187, 52, 0.35);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 12px 0 0;
}

.privacy-card p {
    margin: 0 0 6px;
    font-size: 0.97rem;
}

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

.privacy-card-strong {
    font-weight: 700 !important;
    color: var(--home-ink) !important;
    font-size: 1.05rem !important;
}

/* Table */
.privacy-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--home-border);
    margin-top: 12px;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--home-surface);
}

.privacy-table thead th {
    text-align: left;
    padding: 14px 18px;
    background: var(--home-surface-soft);
    color: var(--home-ink);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--home-border);
}

.privacy-table tbody td {
    padding: 14px 18px;
    color: var(--home-text);
    font-size: 0.97rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--home-border);
    vertical-align: top;
}

.privacy-table tbody tr:last-child td {
    border-bottom: none;
}

.privacy-table tbody tr:hover {
    background: rgba(255, 187, 52, 0.05);
}

/* Rights grid */
.privacy-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.privacy-right {
    background: var(--home-surface-soft);
    border: 1px solid var(--home-border);
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.privacy-right:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 187, 52, 0.55);
    box-shadow: 0 14px 28px -18px rgba(17, 24, 39, 0.25);
}

.privacy-right h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--home-ink);
    margin: 0 0 6px;
    letter-spacing: -0.005em;
}

.privacy-right p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--home-text);
}

/* Contact section */
.privacy-contact-section {
    background: linear-gradient(155deg, #1f2937 0%, #0b121f 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-color: transparent;
}

.privacy-contact-section::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--home-amber-glow) 0%, transparent 65%);
    z-index: -1;
}

.privacy-contact-section h2 {
    color: #fff;
}

.privacy-contact-section h2::before {
    background: var(--home-amber);
}

.privacy-contact-section p {
    color: rgba(255, 255, 255, 0.82);
}

.privacy-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.privacy-contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 20px 22px;
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(4px);
}

.privacy-contact-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 187, 52, 0.6) !important;
    color: #fff !important;
}

.privacy-contact-card i {
    font-size: 1.4rem;
    color: var(--home-amber);
    margin-bottom: 4px;
}

.privacy-contact-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.privacy-contact-value {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.005em;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .privacy-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .privacy-toc {
        position: static;
        padding: 18px 20px;
    }

    .privacy-toc-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .privacy-section {
        padding: 28px 26px;
    }
}

@media (max-width: 768px) {
    .privacy-hero-section {
        min-height: 260px;
    }

    .privacy-hero-content {
        padding: 56px 20px;
    }

    .privacy-hero-title {
        font-size: 2rem;
    }

    .privacy-hero-subtitle {
        font-size: 0.98rem;
    }

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

    .privacy-intro {
        padding: 22px 22px;
        border-radius: 14px;
    }

    .privacy-intro p {
        font-size: 0.98rem;
    }

    .privacy-section {
        padding: 24px 22px;
        border-radius: 14px;
    }

    .privacy-section h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .privacy-hero-title {
        font-size: 1.7rem;
    }

    .privacy-card {
        padding: 16px 18px;
    }

    .privacy-table thead th,
    .privacy-table tbody td {
        padding: 12px 14px;
        font-size: 0.92rem;
    }
}

/* ===== Content-visibility / reduced motion ===== */
.privacy-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
}

@media (prefers-reduced-motion: reduce) {
    .privacy-hero-title,
    .privacy-hero-subtitle {
        animation: none !important;
    }

    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .privacy-section,
    .privacy-right,
    .privacy-contact-card {
        transition: none;
    }
}
