/* Hero Section */
.privacy-hero {
    background: linear-gradient(135deg, #0D3458 0%, #1a5c99 100%);
    color: white;
    padding: clamp(4rem, 15vh, 8rem) 2rem;
    text-align: center;
}

.privacy-hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.9;
}

/* Privacy Content Section */
.privacy-section {
    padding: clamp(3rem, 10vh, 6rem) 0;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.privacy-section::before,
.privacy-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 52, 88, 0.03), rgba(122, 174, 222, 0.03));
    z-index: 0;
}

.privacy-section::before {
    top: -300px;
    left: -300px;
}

.privacy-section::after {
    bottom: -300px;
    right: -300px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
}

.policy-block {
    margin-bottom: 2rem;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 16px;
    transition:
        transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6),
        background-color 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 52, 88, 0.08);
}

/* More apparent background change on hover */
.policy-block:hover {
    transform: translateY(-4px);
    background: #e8f1ff;
    /* More noticeable blue tint */
    box-shadow:
        0 4px 24px -1px rgba(13, 52, 88, 0.12),
        0 2px 8px -1px rgba(13, 52, 88, 0.08);
    border-color: rgba(13, 52, 88, 0.15);
}

/* Simplified number indicator with stable color */
.policy-block::before {
    content: attr(data-number);
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4.5rem;
    font-weight: 800;
    color: rgba(13, 52, 88, 0.08);
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    transition: color 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.policy-block:hover::before {
    color: #0D3458;
}

/* Remove any potential interference */
.policy-block *,
.policy-block::after {
    transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Enhanced headings with icon support */
.policy-block h2,
.policy-block h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-primary);
    position: relative;
    padding-bottom: clamp(0.75rem, 2vw, 1rem);
}

.policy-block h2::after,
.policy-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right,
            var(--color-primary) 0%,
            rgba(122, 174, 222, 0.5) 50%,
            transparent 100%);
}

/* Enhanced paragraphs with better readability */
.policy-block p {
    line-height: 1.8;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-width: 80ch;
    /* Optimal line length for readability */
}

/* Important notice styling */
.policy-block .notice {
    background: var(--color-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.policy-block .notice .material-icons {
    color: var(--color-warning);
    font-size: 1.5rem;
}

.policy-block .notice-content {
    flex: 1;
}

.policy-block .notice-content h4 {
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: .3em;
}

.policy-block .notice-content ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.policy-block .notice-content ul li {
    margin-bottom: 0.25rem;
}

.policy-block .notice-content ul li:last-child {
    margin-bottom: 0;
}

/* Fixed list spacing */
.policy-block ul {
    display: grid;
    gap: 0.75rem;
    padding-left: 0;
    list-style: none;
    margin: 1.5rem 0;
}

.policy-block ul li {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 52, 88, 0.04);
}

/* Icon styling in list items */
.policy-block ul li .material-icons {
    color: var(--color-primary);
    font-size: 1.4rem;
    min-width: 24px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.policy-block ul li:hover {
    background: white;
    transform: translateX(8px);
    box-shadow: 0 2px 8px rgba(13, 52, 88, 0.05);
    border-color: rgba(13, 52, 88, 0.08);
}

.policy-block ul li:hover .material-icons {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .policy-block {
        width: 90%;
        padding: 1.5rem;
        margin: 0 auto 2rem;
    }

    .policy-block h2 {
        font-size: 1.5rem;
    }

    /* Service provider list styling */
    #information-sharing ul li {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    #information-sharing ul li ul {
        margin-top: 0.75rem;
        margin-left: 0;
        padding-left: 1rem;
    }

    #information-sharing ul li .material-icons {
        margin-right: 0.5rem;
        font-size: 1.25rem;
    }

    /* Make service provider details more compact */
    #information-sharing ul li ul li {
        padding: 0.25rem 0;
        margin-bottom: 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .notice {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .notice .material-icons {
        position: static;
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .notice-content {
        width: 100%;
    }

    .notice-content h4 {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1rem;
    }

    .notice .material-icons {
        order: -1;
    }

    .notice-content ul {
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .notice-content ul li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* For even smaller screens */
@media (max-width: 480px) {
    .policy-block {
        width: 95%;
        padding: 1.25rem;
    }

    .policy-block h2 {
        font-size: 1.3rem;
    }
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    margin: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 52, 88, 0.05);
}

.contact-info p .material-icons {
    color: var(--color-primary);
    font-size: 1.8rem;
    opacity: 0.8;
}

.contact-info p:hover {
    transform: translateY(-4px);
    background: white;
    box-shadow: 0 4px 12px rgba(13, 52, 88, 0.1);
}

.contact-info p:hover .material-icons {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .privacy-content {
        padding: 1.5rem;
    }

    .policy-block {
        padding: 1.5rem;
    }

    .policy-block::before {
        font-size: 2rem;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Table of Contents */
.policy-toc {
    max-width: 1000px;
    margin: -3rem auto 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.policy-toc h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--color-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.toc-item:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.toc-item span:first-child {
    font-weight: 600;
    color: var(--color-primary);
}

.toc-item:hover span:first-child {
    color: white;
}

/* Mobile adjustments for ToC */
@media (max-width: 768px) {
    .policy-toc {
        margin: -2rem 1rem 2rem;
        padding: 1.5rem;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Optional: Disable smooth scroll for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Add to your existing .toc-item styles */
.toc-item.active {
    background: rgba(13, 52, 88, 0.02);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.toc-item.active .material-icons {
    opacity: 1;
    transform: translateX(0);
}

/* Icon styling in headings */
.policy-block h2 .material-icons,
.policy-block h3 .material-icons {
    color: var(--color-primary);
    font-size: 1.8rem;
}

/* Notice styling with icon */
.policy-block .notice {
    background: rgba(13, 52, 88, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.policy-block .notice .material-icons {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.policy-block .notice p {
    margin-bottom: 0;
    font-weight: 500;
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .policy-block h2 .material-icons,
    .policy-block h3 .material-icons {
        font-size: 1.5rem;
    }

    .policy-block ul li .material-icons {
        font-size: 1.2rem;
    }
}

/* Contact section special styling */
.contact-section {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-top: 4px solid var(--color-primary);
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.contact-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    text-decoration: none;
    color: inherit;
    max-width: 350px;
    border: 1px solid rgba(13, 52, 88, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(13, 52, 88, 0.12);
    border-color: var(--color-primary);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.icon-wrapper .material-icons {
    color: white;
    font-size: 24px;
}

.contact-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.contact-details span {
    color: var(--color-secondary);
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Contact section styling */
.contact-section {
    margin-top: 4rem;
}

.contact-intro {
    color: var(--color-secondary);
    margin-bottom: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    gap: 0.5rem;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(122, 174, 222, 0.1), rgba(13, 52, 88, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(122, 174, 222, 0.2);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card .material-icons {
    font-size: 2rem;
    color: var(--color-primary);
    display: block;
    transition: transform 0.3s ease;
    margin-bottom: 0;
}

.contact-card:hover .material-icons {
    transform: scale(1.1);
}

.contact-card h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transition: transform 0.3s ease;
}

.contact-detail {
    color: var(--color-secondary);
    font-size: 1rem;
    display: block;
    transition: transform 0.3s ease;
    margin: 0;
}

.contact-card:hover h4,
.contact-card:hover .contact-detail {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .notice {
        margin: 2rem 0;
        padding: 1rem;
        width: 100%;
        /* Full width on mobile */
        left: 0;
        /* Reset any left positioning */
        right: 0;
        /* Reset any right positioning */
        transform: none;
        /* Remove any transforms that might affect positioning */
    }

    /* If the notice is inside another container, ensure proper alignment */
    .policy-block .notice {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Base styles for policy block lists */
.policy-block ul {
    display: grid;
    gap: 0.75rem;
    padding-left: 0;
    list-style: none;
    margin: 1.5rem 0;
}

/* Specific styles for notice lists - these will override the base styles */
.notice .notice-content ul {
    display: block;
    /* Override grid display */
    padding-left: 1.25rem;
    list-style: disc;
    /* Restore bullet points */
    margin: 0.5rem 0;
}

.notice .notice-content ul li {
    margin-bottom: 0.25rem;
}

.notice .notice-content ul li:last-child {
    margin-bottom: 0;
}

/* Mobile adjustments if needed */
@media (max-width: 768px) {
    .notice .notice-content ul {
        padding-left: 1rem;
        /* Slightly reduced padding on mobile */
    }
}