/* ==========================================================================
   TechConnect Privacy Policy Stylesheet
   Modern, Clean, Accessible Legal Document Layout
   ========================================================================== */

:root {
    --tc-primary: #FF760E;
    --tc-primary-dark: #FC6C0B;
    --tc-primary-light: #FF850C;
    --tc-primary-soft: #FFF6F0;
    --tc-primary-border: #FFE0C7;
    --tc-dark: #0b132b;
    --tc-dark-secondary: #1e293b;
    --tc-text-main: #2A2320;
    --tc-text-muted: #5C524E;
    --tc-text-light: #8C7E77;
    --tc-card-bg: #ffffff;
    --tc-border-color: #e2e8f0;
    --tc-radius-sm: 8px;
    --tc-radius-md: 12px;
    --tc-radius-lg: 16px;
    --tc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --tc-shadow-md: 0 8px 24px rgba(11, 19, 43, 0.06);
    --tc-shadow-lg: 0 16px 36px rgba(252, 108, 11, 0.08);
}

/* --------------------------------------------------------------------------
   Breadcrumb / Hero Section
   -------------------------------------------------------------------------- */
.tc-policy-hero {
    background: linear-gradient(135deg, #0b132b 0%, #1e293b 50%, #111d40 100%);
    position: relative;
    padding: 70px 0 60px;
    color: #ffffff;
    overflow: hidden;
}

.tc-policy-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 118, 14, 0.15) 0%, rgba(255, 118, 14, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tc-policy-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(252, 108, 11, 0.1) 0%, rgba(252, 108, 11, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tc-policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 118, 14, 0.15);
    border: 1px solid rgba(255, 118, 14, 0.35);
    color: #FF850C;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.tc-policy-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.tc-policy-hero h1 span {
    color: var(--tc-primary);
}

.tc-policy-hero p.lead-desc {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 780px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.tc-policy-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.tc-meta-item i {
    color: var(--tc-primary);
    font-size: 14px;
}

.tc-meta-item strong {
    color: #ffffff;
}

.tc-hero-actions {
    display: inline-flex;
    gap: 12px;
    margin-left: auto;
}

.tc-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--tc-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.tc-btn-action:hover {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Role Quick Filter Tabs
   -------------------------------------------------------------------------- */
.tc-filter-bar-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--tc-border-color);
    position: sticky;
    top: 0;              /* आता हे नेहमी अगदी वरतीच चिकटेल */
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tc-role-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}

.tc-role-pills::-webkit-scrollbar {
    display: none;
}

.tc-role-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--tc-border-color);
    background: #f8fafc;
    color: var(--tc-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tc-role-pill-btn:hover {
    border-color: var(--tc-primary);
    color: var(--tc-primary);
    background: var(--tc-primary-soft);
}

.tc-role-pill-btn.active {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 118, 14, 0.3);
}

/* --------------------------------------------------------------------------
   Main Content Layout
   -------------------------------------------------------------------------- */
.tc-policy-wrapper {
    padding: 50px 0 90px;
    background-color: #f8fafc;
}

/* Sidebar Table of Contents */
.tc-toc-card {
    background: #ffffff;
    border: 1px solid var(--tc-border-color);
    border-radius: var(--tc-radius-md);
    padding: 24px;
    position: sticky;
    top: 16px;            /* JS हे dynamically override करेल */
    z-index: 10;          /* filter-bar पेक्षा कमी, taki overlap na ho */
    transition: top 0.15s ease;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    box-shadow: var(--tc-shadow-sm);
}

.tc-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--tc-border-color);
}

.tc-toc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-toc-title i {
    color: var(--tc-primary);
}

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

.tc-toc-item {
    margin-bottom: 4px;
}

.tc-toc-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--tc-radius-sm);
    color: var(--tc-text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.tc-toc-link:hover {
    color: var(--tc-primary);
    background: var(--tc-primary-soft);
    padding-left: 16px;
}

.tc-toc-link.active {
    color: var(--tc-primary-dark);
    font-weight: 700;
    background: var(--tc-primary-soft);
    border-left-color: var(--tc-primary);
    padding-left: 16px;
}

.tc-toc-num {
    display: inline-block;
    min-width: 22px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tc-primary);
}

/* --------------------------------------------------------------------------
   Policy Content Sections
   -------------------------------------------------------------------------- */
.tc-policy-content {
    background: #ffffff;
    border: 1px solid var(--tc-border-color);
    border-radius: var(--tc-radius-lg);
    padding: 40px;
    box-shadow: var(--tc-shadow-sm);
}

.tc-policy-section {
    padding-top: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #edf2f7;
    position: relative;
    scroll-margin-top: 140px;
    transition: background 0.3s ease, padding 0.3s ease;
}

.tc-policy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.tc-policy-section.highlighted-role {
    background: #fffcf9;
    border-left: 4px solid var(--tc-primary);
    padding-left: 24px;
    padding-right: 16px;
    border-radius: var(--tc-radius-md);
}

.tc-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.tc-section-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tc-primary-soft);
    border: 1px solid var(--tc-primary-border);
    color: var(--tc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.tc-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tc-text-main);
    margin: 0;
    line-height: 1.3;
}

.tc-subsection-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--tc-dark);
    margin-top: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-subsection-title i {
    color: var(--tc-primary);
    font-size: 15px;
}

.tc-policy-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--tc-text-muted);
    margin-bottom: 14px;
}

/* Notice / Callout Boxes */
.tc-callout {
    background: var(--tc-primary-soft);
    border: 1px solid var(--tc-primary-border);
    border-left: 4px solid var(--tc-primary);
    border-radius: var(--tc-radius-sm);
    padding: 18px 20px;
    margin: 20px 0;
    position: relative;
}

.tc-callout-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tc-primary-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-callout p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 0;
    line-height: 1.6;
}

.tc-callout-info {
    background: #f0f9ff;
    border-color: #bae6fd;
    border-left-color: #0284c7;
}

.tc-callout-info .tc-callout-title {
    color: #0369a1;
}

/* Feature & Definition Lists */
.tc-def-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.tc-def-item {
    background: #f8fafc;
    border: 1px solid var(--tc-border-color);
    border-radius: var(--tc-radius-sm);
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.tc-def-item:hover {
    border-color: var(--tc-primary-border);
    background: #ffffff;
    box-shadow: var(--tc-shadow-sm);
}

.tc-def-term {
    font-weight: 700;
    color: var(--tc-dark);
    font-size: 15px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tc-def-term i {
    color: var(--tc-primary);
    font-size: 13px;
}

.tc-def-desc {
    color: var(--tc-text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Bullet Items List */
.tc-feature-list {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.tc-feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--tc-text-muted);
}

.tc-feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--tc-primary);
    font-size: 13px;
}

.tc-feature-list li strong {
    color: var(--tc-text-main);
}

/* Category Cards Grid */
.tc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.tc-category-card {
    background: #f8fafc;
    border: 1px solid var(--tc-border-color);
    border-radius: var(--tc-radius-md);
    padding: 20px;
    transition: all 0.25s ease;
}

.tc-category-card:hover {
    border-color: var(--tc-primary);
    transform: translateY(-2px);
    box-shadow: var(--tc-shadow-sm);
    background: #ffffff;
}

.tc-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tc-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.tc-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-dark);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Custom Styled Tables
   -------------------------------------------------------------------------- */
.tc-table-responsive {
    overflow-x: auto;
    border-radius: var(--tc-radius-md);
    border: 1px solid var(--tc-border-color);
    margin: 24px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    text-align: left;
}

.tc-table thead {
    background: linear-gradient(135deg, #0b132b, #1e293b);
    color: #ffffff;
}

.tc-table th {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    border: none;
    white-space: nowrap;
}

.tc-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--tc-border-color);
    color: var(--tc-text-muted);
    vertical-align: top;
    line-height: 1.55;
}

.tc-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.tc-table tbody tr:hover {
    background-color: var(--tc-primary-soft);
}

.tc-table tbody tr:last-child td {
    border-bottom: none;
}

.tc-table td strong {
    color: var(--tc-text-main);
}

.tc-badge-role {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--tc-primary-soft);
    color: var(--tc-primary-dark);
    border: 1px solid var(--tc-primary-border);
}

.tc-badge-public {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.tc-badge-private {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   Contact / Grievance Card
   -------------------------------------------------------------------------- */
.tc-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tc-contact-box {
    background: #f8fafc;
    border: 1px solid var(--tc-border-color);
    border-radius: var(--tc-radius-md);
    padding: 20px;
    transition: all 0.2s ease;
}

.tc-contact-box:hover {
    border-color: var(--tc-primary);
    background: #ffffff;
    box-shadow: var(--tc-shadow-sm);
}

.tc-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 12px;
}

.tc-contact-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tc-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tc-contact-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-dark);
    margin: 0;
}

.tc-contact-value a {
    color: var(--tc-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tc-contact-value a:hover {
    color: var(--tc-primary-dark);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Scroll to Top & Utilities
   -------------------------------------------------------------------------- */
#policyBackToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--tc-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(252, 108, 11, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

#policyBackToTop.visible {
    opacity: 1;
    visibility: visible;
}

#policyBackToTop:hover {
    background: var(--tc-primary-dark);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .tc-top-bar,
    .tc-main-header,
    .tc-filter-bar-wrapper,
    .tc-toc-card,
    .tc-hero-actions,
    #policyBackToTop,
    footer {
        display: none !important;
    }

    .tc-policy-hero {
        background: none !important;
        color: #000000 !important;
        padding: 20px 0 !important;
    }

    .tc-policy-hero h1 {
        color: #000000 !important;
    }

    .tc-policy-content {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .tc-policy-wrapper {
        background: #ffffff !important;
        padding: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .tc-policy-hero h1 {
        font-size: 32px;
    }

    .tc-toc-card {
        margin-bottom: 30px;
        position: static;
        max-height: none;
    }

    .tc-policy-content {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .tc-policy-hero {
        padding: 40px 0 30px;
    }

    .tc-policy-hero h1 {
        font-size: 26px;
    }

    .tc-policy-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tc-hero-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .tc-section-title {
        font-size: 19px;
    }
}
