/* ============================================
   PRIVACY POLICY PAGE - ULTRA AESTHETIC
   Modern Medical Green Theme
   ============================================ */

:root {
    --primary-color: #047857;
    --primary-dark: #065f46;
    --primary-light: #10b981;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.privacy-hero {
    position: relative;
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    min-height: 400px;
    padding: 4rem 0 6rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 95, 70, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.hero-icon i {
    font-size: 3rem;
    color: #ffffff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
}

.meta-item i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave path {
    fill: var(--bg-light);
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.privacy-content {
    padding: 3rem 0 5rem;
    background: var(--bg-light);
}

/* ============================================
   TABLE OF CONTENTS (SIDEBAR)
   ============================================ */

.toc-wrapper {
    position: sticky;
    top: 100px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInLeft 0.8s ease-out;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.toc-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.toc-link:hover {
    color: var(--primary-color);
    background: rgba(4, 120, 87, 0.05);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.toc-link.active {
    color: var(--primary-color);
    background: rgba(4, 120, 87, 0.1);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.toc-link i {
    font-size: 0.875rem;
    width: 20px;
    text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.privacy-main {
    animation: fadeInRight 0.8s ease-out;
}

.privacy-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    scroll-margin-top: 100px;
}

.privacy-section:hover {
    box-shadow: var(--shadow-xl);
}

.section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.2);
}

.section-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-content {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1.5rem;
}

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

.section-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.section-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-content h4 i {
    color: var(--primary-color);
}

.section-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */

.highlight-box {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.highlight-box p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ============================================
   INFO BOXES
   ============================================ */

.info-box {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.info-box i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-box h5 {
    margin-bottom: 0.75rem;
}

.info-box p, .info-box ul {
    margin-bottom: 0;
}

.info-box ul {
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
}

.info-box-success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
}

.info-box-success i {
    color: var(--success-color);
}

.info-box-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--warning-color);
}

.info-box-warning i {
    color: var(--warning-color);
}

.info-box-info {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--info-color);
}

.info-box-info i {
    color: var(--info-color);
}

/* ============================================
   DATA TYPES
   ============================================ */

.data-types {
    background: rgba(4, 120, 87, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 1rem;
}

.data-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.data-list i {
    color: var(--success-color);
    font-size: 1.25rem;
}

/* ============================================
   PRIORITY BOX
   ============================================ */

.priority-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.3);
}

.priority-box i {
    font-size: 2rem;
    flex-shrink: 0;
}

.priority-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ============================================
   CONTACT INFO BOX
   ============================================ */

.contact-info-box {
    background: var(--bg-light);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info-box p {
    margin: 0;
}

.contact-info-box a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.contact-info-box a:hover {
    text-decoration: underline;
}

/* ============================================
   USER RIGHTS GRID
   ============================================ */

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.right-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.right-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 8px rgba(4, 120, 87, 0.2);
}

.right-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.right-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.right-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   ACTION BOX
   ============================================ */

.action-box {
    background: rgba(14, 165, 233, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.action-box i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.action-box p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   SECURITY FEATURES
   ============================================ */

.security-features {
    margin: 2rem 0;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.security-item:hover {
    background: rgba(4, 120, 87, 0.05);
    transform: translateX(8px);
}

.security-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.security-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.security-item p {
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   LEGAL LIST
   ============================================ */

.legal-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    line-height: 1.6;
    transition: var(--transition);
}

.legal-list li:hover {
    background: rgba(4, 120, 87, 0.05);
    transform: translateX(4px);
}

.legal-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ============================================
   CONTACT CARDS
   ============================================ */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 8px rgba(4, 120, 87, 0.2);
}

.contact-card-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.contact-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    color: var(--text-gray);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ============================================
   PRIVACY FOOTER
   ============================================ */

.privacy-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.footer-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.footer-icon i {
    font-size: 2.5rem;
}

.privacy-footer p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-date {
    font-size: 0.95rem;
    opacity: 0.9;
    font-style: italic;
    margin: 0;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@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);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991.98px) {
    .privacy-hero {
        min-height: 350px;
        padding: 3rem 0 5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-meta {
        gap: 2rem;
    }

    .privacy-section {
        padding: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .rights-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .privacy-hero {
        min-height: 300px;
        padding: 2.5rem 0 4rem;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .hero-icon i {
        font-size: 2.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .privacy-section {
        padding: 1.5rem;
    }

    .section-icon {
        width: 60px;
        height: 60px;
    }

    .section-icon i {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-content {
        font-size: 1rem;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .right-card {
        padding: 1.5rem;
    }

    .security-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .legal-list li {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .privacy-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .highlight-box,
    .info-box,
    .priority-box {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .privacy-footer {
        padding: 2rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .privacy-hero {
        background: #047857;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-wave,
    .scroll-to-top,
    .toc-wrapper {
        display: none;
    }

    .privacy-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
        margin-bottom: 1rem;
    }

    .col-lg-9 {
        width: 100%;
    }
}
