/* Privacy Policy Page Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* CSS Variables */
:root {
    --primary-color: #ff4c4b;
    --secondary-color: #ff6b6b;
    --text-primary: #292929;
    --text-secondary: #555555;
    --text-muted: #777777;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #fafbfc;
    --border-color: #f7f7f7f7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: "Inter", sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.7;
}

/* Breadcrumb Styling */
.breadcrumb-bar {
    background: linear-gradient(135deg, var(--text-primary) 0%, #1a1a1a 100%);
    padding: 32px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.breadcrumb-bar .container {
    position: relative;
    z-index: 2;
}

.inner-banner {
    padding: 20px 0;
}

.breadcrumb-title {
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-breadcrumb .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.breadcrumb-item {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.6);
    margin: 0 12px;
    font-size: 18px;
}

/* Main Content Area */
.content {
    background: var(--bg-light);
    padding: 80px 0 100px;
    min-height: 100vh;
}

.content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Terms Content Container */
.terms-content {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: visible; /* allow sticky children */
    border: 1px solid var(--border-color);
}

/* Content Header */
.privacy-header {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    padding: 60px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.privacy-header-content {
    position: relative;
    z-index: 2;
}

.privacy-main-title {
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: 42px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ensure consistent h4 typography within terms sections */
.terms-text h4 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}
@media (min-width: 768px) {
    h4 {
        font-family: "Inter", sans-serif;
        font-weight: 700;
        font-size: 22px;
        line-height: 1.2;
        color: #292929;
    }
}
.privacy-last-updated {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
}

/* Content Body */
.privacy-content-body {
    padding: 12px;
}

/* Two-column layout with sticky sidebar */
.policy-layout {
    gap: 0;
}

.policy-sidebar-col {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 12px;
}
.policy-content-col {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 12px;
}

.policy-layout {
    display: flex;
    width: 100%;
    padding: 12px;
}

.policy-sidebar {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 150px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    max-height: calc(100vh - 189px);
    overflow: auto;
    z-index: 10;
}

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

.policy-toc li + li {
    margin-top: 6px;
}

.policy-toc a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    font-weight: 600;
}

.policy-toc a:hover {
    color: var(--text-primary);
    background: var(--bg-section);
}

.policy-toc a.active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Anchor section offset for fixed/sticky headers */
[id^="section-"] {
    scroll-margin-top: 110px;
}

@media (max-width: 992px) {
    .policy-layout {
        display: block;
    }
    .policy-sidebar-col,
    .policy-content-col {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .policy-sidebar {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 110px);
        margin-bottom: 16px;
    }
}

/* Main Introduction */
.privacy-intro {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--bg-section);
    border-radius: var(--border-radius);
    border-left: 6px solid var(--primary-color);
}

.privacy-intro h3 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.privacy-intro p {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* Section Styling */
.terms-text {
    margin-bottom: 50px;
    position: relative;
}

.terms-text:not(.privacy-intro) {
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.terms-text:not(.privacy-intro):hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Section Headings */
.terms-text h2 {
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 32px 0;
    position: relative;
    padding-bottom: 16px;
}

.terms-text h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    border-radius: 2px;
}

.terms-text h3 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    position: relative;
    padding-left: 24px;
}

.terms-text h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 3px;
}

.terms-text h6 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding: 16px 20px;
    background: var(--bg-section);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Paragraph Styling */
.terms-text p {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.terms-text p:last-child {
    margin-bottom: 0;
}

/* Strong text emphasis */
.terms-text p strong,
.terms-text p b {
    color: var(--text-primary);
    font-weight: 600;
}

/* Links */
.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.terms-text a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Special styling for numbered sections */
.terms-text h3:contains("1."),
.terms-text h3:contains("2."),
.terms-text h3:contains("3."),
.terms-text h3:contains("4."),
.terms-text h3:contains("5.") {
    counter-increment: section;
}

.terms-text h6:contains("1."),
.terms-text h6:contains("2."),
.terms-text h6:contains("3."),
.terms-text h6:contains("4."),
.terms-text h6:contains("5.") {
    position: relative;
    padding-left: 60px;
}

.terms-text h6:contains("1.")::before,
.terms-text h6:contains("2.")::before,
.terms-text h6:contains("3.")::before,
.terms-text h6:contains("4.")::before,
.terms-text h6:contains("5.")::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

/* Contact section special styling */
.terms-text:last-child {
    background: linear-gradient(135deg, var(--bg-section) 0%, #f0f7ff 100%);
    border: 2px solid var(--primary-color);
    position: relative;
}

.terms-text:last-child::before {
    content: "📧";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .privacy-content-body {
        padding: 60px;
    }

    .breadcrumb-title {
        font-size: 40px;
    }

    .privacy-main-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .content {
        padding: 60px 0 80px;
    }

    .privacy-header {
        padding: 50px 60px;
    }

    .privacy-content-body {
        padding: 50px;
    }

    .terms-text:not(.privacy-intro) {
        padding: 32px;
    }

    .privacy-intro {
        padding: 32px;
    }

    .breadcrumb-title {
        font-size: 36px;
    }

    .privacy-main-title {
        font-size: 32px;
    }

    .terms-text h2 {
        font-size: 32px;
    }

    .terms-text h3 {
        font-size: 24px;
    }
    .terms-text h4 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .content .container {
        padding: 0 16px;
    }

    .privacy-header {
        padding: 40px 30px;
    }

    .privacy-content-body {
        padding: 30px;
    }

    .terms-text:not(.privacy-intro) {
        padding: 24px;
    }

    .privacy-intro {
        padding: 24px;
        margin-bottom: 40px;
    }

    .breadcrumb-title {
        font-size: 32px;
    }

    .privacy-main-title {
        font-size: 28px;
    }

    .terms-text h2 {
        font-size: 28px;
    }

    .terms-text h3 {
        font-size: 22px;
    }
    .terms-text h4 {
        font-size: 18px;
    }

    .terms-text h6 {
        font-size: 18px;
    }

    .terms-text p {
        font-size: 15px;
    }

    .privacy-intro p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .privacy-header {
        padding: 30px 20px;
    }

    .privacy-content-body {
        padding: 20px;
    }

    .terms-text:not(.privacy-intro) {
        padding: 20px;
        margin-bottom: 30px;
    }

    .privacy-intro {
        padding: 20px;
        margin-bottom: 30px;
    }

    .breadcrumb-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .privacy-main-title {
        font-size: 24px;
        letter-spacing: 0.5px;
    }

    .terms-text h2 {
        font-size: 24px;
    }

    .terms-text h3 {
        font-size: 20px;
        padding-left: 20px;
    }
    .terms-text h4 {
        font-size: 16px;
    }

    .terms-text h6 {
        font-size: 16px;
        padding: 12px 16px;
    }

    .terms-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .privacy-intro p {
        font-size: 15px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-content {
    animation: fadeInUp 0.6s ease-out;
}

.terms-text {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.terms-text:nth-child(1) {
    animation-delay: 0.1s;
}
.terms-text:nth-child(2) {
    animation-delay: 0.2s;
}
.terms-text:nth-child(3) {
    animation-delay: 0.3s;
}
.terms-text:nth-child(4) {
    animation-delay: 0.4s;
}
.terms-text:nth-child(5) {
    animation-delay: 0.5s;
}

/* Scroll to top functionality */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-indicator:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Print styles */
@media print {
    .breadcrumb-bar,
    .scroll-indicator {
        display: none;
    }

    .content {
        padding: 0;
        background: #ffffff;
    }

    .terms-content {
        box-shadow: none;
        border: 1px solid #cccccc;
    }

    .privacy-header {
        background: #f5f5f5 !important;
        color: #333333 !important;
    }

    .privacy-main-title,
    .privacy-last-updated {
        color: #333333 !important;
    }
}
