:root {
    --primary-purple: #d946ef;
    --dark-purple: #a855f7;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Header */
.policy-header {
    background: linear-gradient(to top right, #A42AC3 0%, #001C5D 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.policy-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.policy-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease;
}

.policy-header .effective-date {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease 0.3s both;
}

.back-button {
    position: absolute;
    left: 30px;
    top: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInLeft 0.8s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateX(-4px);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Navigation Sidebar */
.policy-nav {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: fadeInLeft 0.8s ease;
}

.policy-nav h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 18px;
}

.policy-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-nav li {
    margin-bottom: 12px;
}

.policy-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
}

.policy-nav a:hover,
.policy-nav a.active {
    color: var(--primary-purple);
    background-color: rgba(217, 70, 239, 0.1);
    transform: translateX(4px);
}

/* Content */
.policy-content {
    padding: 60px 0;
    animation: fadeInUp 0.8s ease;
}

.content-wrapper {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.policy-section {
    margin-bottom: 48px;
    scroll-margin-top: 20px;
}

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

.policy-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-purple);
    display: inline-block;
}

.policy-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 24px;
    margin-bottom: 16px;
}

.policy-section p {
    color: var(--text-gray);
    margin-bottom: 16px;
    font-size: 16px;
}

.policy-section ul {
    color: var(--text-gray);
    margin-bottom: 16px;
    padding-left: 24px;
}

.policy-section li {
    margin-bottom: 12px;
    font-size: 16px;
}

.intro-text {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 24px;
    padding: 24px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-purple);
    border-radius: 8px;
}

.highlight-box {
    background-color: rgba(217, 70, 239, 0.05);
    border-left: 4px solid var(--primary-purple);
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.contact-box {
    background: linear-gradient(to top right, #A42AC3 0%, #001C5D 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin-top: 48px;
}

.contact-box h3 {
    color: white;
    margin-bottom: 16px;
}

.contact-box p {
    font-size: 16px;
    margin-bottom: 0;
    color: white;
}

.contact-box a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid white;
    transition: opacity 0.3s ease;
}

.contact-box a:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .policy-nav {
        position: static;
        margin-bottom: 30px;
    }

    .policy-header h1 {
        font-size: 36px;
    }

    .content-wrapper {
        padding: 30px 24px;
    }

    .policy-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .policy-header {
        padding: 60px 0 40px;
    }

    .policy-header h1 {
        font-size: 32px;
    }

    .policy-header .effective-date {
        font-size: 16px;
    }

   .back-button {
        left: 15px;
        top: 15px;
        font-size: 14px;
        padding: 8px 12px;
    }

    .back-button svg {
        width: 18px;
        height: 18px;
    }

    .content-wrapper {
        padding: 24px 20px;
    }

    .policy-section h2 {
        font-size: 22px;
    }

    .policy-section p,
    .policy-section li {
        font-size: 15px;
    }

    .intro-text {
        font-size: 16px;
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .policy-header h1 {
        font-size: 28px;
    }

    .policy-section h2 {
        font-size: 20px;
    }
}
