/* ====================================
   DXR Store — Policy Sub-Pages
   Shared styles for: privacy, terms,
   disclaimer, copyright, contact
   ==================================== */

:root {
    --dxr-font: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    --policy-accent: #818cf8;
    --policy-accent-rgb: 99, 102, 241;
    --policy-violet: #a78bfa;
    --policy-violet-rgb: 139, 92, 246;
    --policy-amber: #f59e0b;
    --policy-bg: #0a0a0f;
    --policy-surface: rgba(255,255,255,0.02);
    --policy-border: rgba(255,255,255,0.07);
}

* { box-sizing: border-box; }
body {
    font-family: var(--dxr-font);
    margin: 0; padding: 0;
    background: var(--policy-bg);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Header ---- */
.policy-page-header {
    background: linear-gradient(135deg, rgba(var(--policy-accent-rgb), 0.08), rgba(var(--policy-violet-rgb), 0.06));
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 18px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 40;
}
.policy-page-header .container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.policy-page-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}
.policy-page-header .brand:hover { opacity: 0.85; }
.policy-page-header .brand img { height: 30px; width: auto; }
.policy-page-header .brand span { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--policy-accent);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(var(--policy-accent-rgb), 0.15);
    background: rgba(var(--policy-accent-rgb), 0.05);
    transition: all 0.25s ease;
}
.back-link:hover {
    background: rgba(var(--policy-accent-rgb), 0.12);
    border-color: rgba(var(--policy-accent-rgb), 0.3);
    color: #a5b4fc;
}
.back-link svg { width: 14px; height: 14px; }

/* ---- Hero Section ---- */
.policy-hero {
    text-align: center;
    padding: 70px 20px 45px;
    position: relative;
    overflow: hidden;
}
.policy-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse at center,
        rgba(var(--policy-accent-rgb), 0.08) 0%,
        rgba(var(--policy-violet-rgb), 0.03) 50%,
        transparent 70%);
    pointer-events: none;
    animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.policy-hero h1 {
    font-size: 2.2rem;
    margin: 0 0 10px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--policy-accent), var(--policy-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.policy-hero p {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    margin: 0;
    position: relative;
}
.policy-hero .hero-line {
    width: 70px; height: 3px;
    background: linear-gradient(90deg, var(--policy-accent), var(--policy-violet));
    margin: 18px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(var(--policy-accent-rgb), 0.3);
    position: relative;
}

/* ---- Content Container ---- */
.policy-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* ---- Section Cards ---- */
.policy-section {
    background: linear-gradient(160deg, rgba(20, 20, 28, 0.6) 0%, rgba(12, 12, 18, 0.8) 100%);
    border: 1px solid var(--policy-border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    /* Reveal animation */
    opacity: 0;
    transform: translateY(25px);
}
.policy-section.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Top glow line */
.policy-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--policy-accent-rgb), 0.25), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.policy-section:hover::before { opacity: 1; }
.policy-section:hover {
    border-color: rgba(var(--policy-accent-rgb), 0.18);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--policy-accent-rgb), 0.06);
    transform: translateY(-2px);
}

/* Section headings */
.policy-section h2 {
    color: var(--policy-accent);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.policy-section h2 svg {
    width: 22px; height: 22px;
    flex-shrink: 0;
    opacity: 0.85;
}
/* Text */
.policy-section p,
.policy-section li {
    color: rgba(255,255,255,0.75);
    line-height: 1.85;
    font-size: 0.92rem;
}
.policy-section ul,
.policy-section ol { margin: 0; padding-right: 20px; }
.policy-section li { margin-bottom: 10px; }
.policy-section strong { color: #e2e8f0; }

/* ---- Highlight Box ---- */
.highlight-box {
    background: rgba(var(--policy-accent-rgb), 0.06);
    border: 1px solid rgba(var(--policy-accent-rgb), 0.15);
    border-radius: 10px;
    padding: 18px;
    margin-top: 16px;
    transition: border-color 0.3s ease;
}
.highlight-box:hover {
    border-color: rgba(var(--policy-accent-rgb), 0.3);
}
.highlight-box p { margin: 0; font-size: 0.88rem; }

/* Amber highlight variant */
.highlight-box.amber {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}
.highlight-box.amber p { color: #fbbf24; }
.highlight-box.amber:hover { border-color: rgba(245, 158, 11, 0.4); }

/* ---- Important Notice (Disclaimer page) ---- */
.important-notice {
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 22px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.important-notice:hover {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(245, 158, 11, 0.06);
}
.important-notice h2 { color: #f59e0b; font-size: 1.3rem; margin: 0 0 14px; }
.important-notice p { color: rgba(255,255,255,0.85); font-size: 1rem; margin: 0; line-height: 1.8; }

/* ---- Notice Box (Copyright page) ---- */
.notice-box {
    background: rgba(var(--policy-accent-rgb), 0.05);
    border: 1px solid rgba(var(--policy-accent-rgb), 0.15);
    border-radius: 10px;
    padding: 20px;
    margin-top: 16px;
    transition: border-color 0.3s ease;
}
.notice-box:hover { border-color: rgba(var(--policy-accent-rgb), 0.3); }
.notice-box h3 { color: var(--policy-accent); font-size: 1rem; margin: 0 0 10px; }
.notice-box p { margin: 4px 0; }

/* ---- Contact Cards ---- */
.contact-card {
    background: linear-gradient(160deg, rgba(20, 20, 28, 0.6) 0%, rgba(12, 12, 18, 0.8) 100%);
    border: 1px solid var(--policy-border);
    border-radius: 18px;
    padding: 36px;
    margin-bottom: 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--policy-accent-rgb), 0.3), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.contact-card:hover::before { opacity: 1; }
.contact-card:hover {
    border-color: rgba(var(--policy-accent-rgb), 0.2);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 35px rgba(var(--policy-accent-rgb), 0.07);
    transform: translateY(-3px);
}
.contact-card .icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(var(--policy-accent-rgb), 0.12), rgba(var(--policy-violet-rgb), 0.12));
    border: 1px solid rgba(var(--policy-accent-rgb), 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover .icon {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(var(--policy-accent-rgb), 0.12);
}
.contact-card .icon svg { width: 28px; height: 28px; color: var(--policy-accent); }
.contact-card h2 { color: #f1f5f9; font-size: 1.2rem; margin: 0 0 10px; font-weight: 700; }
.contact-card p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin: 0 0 22px; line-height: 1.7; }
.contact-card .handle {
    display: inline-block;
    background: linear-gradient(135deg, var(--policy-accent), var(--policy-violet));
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(var(--policy-accent-rgb), 0.2);
}
.contact-card .handle:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--policy-accent-rgb), 0.3);
}

/* WhatsApp & Instagram button variants */
.contact-card .handle.wa-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}
.contact-card .handle.wa-btn:hover { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3); }
.contact-card .handle.ig-btn {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    box-shadow: 0 4px 20px rgba(131, 58, 180, 0.2);
}
.contact-card .handle.ig-btn:hover { box-shadow: 0 8px 30px rgba(131, 58, 180, 0.3); }

/* ---- Info section ---- */
.info-section {
    background: linear-gradient(160deg, rgba(20, 20, 28, 0.6) 0%, rgba(12, 12, 18, 0.8) 100%);
    border: 1px solid var(--policy-border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 22px;
    transition: border-color 0.3s ease;
}
.info-section:hover { border-color: rgba(var(--policy-accent-rgb), 0.15); }
.info-section h3 {
    color: var(--policy-accent);
    font-size: 1.05rem;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-section h3 svg { width: 20px; height: 20px; }
.info-section p, .info-section li {
    color: rgba(255,255,255,0.75);
    line-height: 1.85;
    font-size: 0.92rem;
}

/* ---- Update Note (footer) ---- */
.update-note {
    text-align: center;
    padding: 24px 20px;
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}

/* ---- Amber theme variant (Disclaimer page) ---- */
.policy-section.amber-theme h2 { color: #f59e0b; }
.policy-section.amber-theme::before {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.25), transparent);
}
.policy-section.amber-theme:hover {
    border-color: rgba(245, 158, 11, 0.18);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(245, 158, 11, 0.06);
}

/* ---- Reveal Animation ---- */
@keyframes policySectionReveal {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .policy-hero { padding: 50px 16px 35px; }
    .policy-hero h1 { font-size: 1.7rem; }
    .policy-section { padding: 22px 18px; border-radius: 14px; }
    .policy-section h2 { font-size: 1.05rem; }
    .contact-card { padding: 28px 20px; }
    .contact-card .icon { width: 54px; height: 54px; border-radius: 14px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .policy-hero::before { animation: none; }
    .policy-section { transition: none; opacity: 1; transform: none; }
    .contact-card { transition: none; }
}
