/* css/policy.css - Majida Ameer Textiles Legal & Policy Pages Stylesheet */
@import url('root.css');
@import url('global.css');

.innerSpacing {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    height: auto;
}

body {
    background-color: #ffffff;
    color: var(--text-primary-color, #373737);
    font-family: var(--font1, 'Montserrat', sans-serif);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BREADCRUMBS BAR (Standardized to match product.php exactly)
   ========================================================================== */
.breadcrumbs-bar {
    width: 100%;
    padding: 16px 0 0 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
    background: #ffffff;
    margin-top: 5px;
}

.breadcrumbs-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.breadcrumbs-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary-color, gray);
}

.breadcrumbs-nav li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-nav a {
    color: var(--text-secondary-color, gray);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumbs-nav a:hover {
    color: var(--sigcolor, #014661);
}

.breadcrumb-sep {
    color: #cccccc;
    font-size: 11px;
    user-select: none;
}

.breadcrumb-active {
    color: var(--sigcolor, #014661);
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   PAGE CONTAINER & NATURAL LEFT-ALIGNED SECTION INTRO
   Uses authentic site .section-intro, .section-title, .section-desc styles
   ========================================================================== */
.policy-page {
    width: 100%;
    background-color: #ffffff;
    color: var(--text-primary-color, #373737);
    font-family: var(--font1, 'Montserrat', sans-serif);
    padding: 36px 0 80px 0;
}

.policy-page .section-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
}

.policy-page .section-title {
    color: var(--sigcolor, #014661);
    font-size: 34px;
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: -0.12rem;
    line-height: 1.15;
    margin: 0;
}

.policy-page .section-desc {
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-secondary-color, gray);
    width: 100%;
    max-width: 780px;
    text-align: left;
    margin: 0;
}

/* ==========================================================================
   AUTHENTIC EDITORIAL POLICY CONTENT
   Uses full natural content width of .innerSpacing
   ========================================================================== */
.policy-content {
    width: 100%;
    color: #334155;
    font-family: var(--font2, 'Poppins', sans-serif);
    font-size: 14px;
    line-height: 1.75;
}

.policy-block {
    margin-bottom: 38px;
    scroll-margin-top: 80px;
}

.policy-block h2 {
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--sigcolor, #014661);
    margin-bottom: 14px;
    margin-top: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(1, 70, 97, 0.12);
    letter-spacing: -0.01rem;
    line-height: 1.35;
    max-width: 1100px;
}

.policy-block:first-of-type h2 {
    margin-top: 0;
}

.policy-block h3 {
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 8px;
    max-width: 1100px;
}

.policy-block p {
    margin-bottom: 14px;
    color: #374151;
    font-size: 14px;
    line-height: 1.75;
    max-width: 1050px;
}

.policy-block ul,
.policy-block ol {
    margin: 0 0 18px 22px;
    padding: 0;
    color: #374151;
    max-width: 1050px;
}

.policy-block li {
    margin-bottom: 8px;
    line-height: 1.68;
    font-size: 14px;
}

.policy-block strong {
    color: #0f172a;
    font-weight: 600;
}

.policy-block code {
    font-family: monospace;
    font-size: 12.5px;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    color: #0f172a;
}

/* ==========================================================================
   CALLOUT NOTICE BOXES (SUBTLE & REFINED LUXURY ATELIER TONE)
   ========================================================================== */
.notice-box-warning {
    background: #fffafa;
    border: 1px solid #fee2e2;
    border-left: 3px solid #dc2626;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 22px 0;
    max-width: 1050px;
}

.notice-box-warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.notice-box-warning-header svg {
    width: 18px;
    height: 18px;
    color: #dc2626;
    flex-shrink: 0;
}

.notice-box-warning-header h4 {
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: #991b1b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.notice-box-warning p {
    color: #7f1d1d;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.65;
}

.notice-box-warning p:last-child {
    margin-bottom: 0;
}

.notice-box-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--sigcolor, #014661);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 22px 0;
    max-width: 1050px;
}

.notice-box-info p {
    color: #1e3a5f;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.65;
}

.notice-box-info p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   VISUAL PROCESS STEPS GRID
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 22px 0;
    max-width: 1100px;
}

.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.step-card:hover {
    border-color: var(--sigcolor, #014661);
}

.step-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--sigcolor, #014661);
    color: #ffffff;
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card h4 {
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.step-card p {
    font-size: 12.5px;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   DATA TABLES (FIXED UI - CLEAN, CRISP, ELEGANT EDITORIAL STYLING)
   ========================================================================== */
.policy-table-wrap {
    width: 100%;
    max-width: 1100px;
    overflow-x: auto;
    margin: 22px 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    font-family: var(--font2, 'Poppins', sans-serif);
}

.policy-table th {
    background-color: #f8fafc;
    color: var(--sigcolor, #014661);
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 18px;
    border-bottom: 1px solid #cbd5e1;
    white-space: nowrap;
}

.policy-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 13px;
    line-height: 1.55;
}

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

.policy-table tr:hover td {
    background-color: #f8fafc;
}

/* ==========================================================================
   FAQS INTERACTIVE ACCORDION (MATCHING STOREFRONT DESIGN SYSTEM)
   ========================================================================== */
.faq-filter-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-top: 4px;
}

.faq-tab-btn {
    padding: 6px 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.faq-tab-btn:hover {
    border-color: var(--sigcolor, #014661);
    color: var(--sigcolor, #014661);
}

.faq-tab-btn.active {
    background-color: var(--sigcolor, #014661);
    color: #ffffff;
    border-color: var(--sigcolor, #014661);
    font-weight: 600;
}

.faq-content {
    width: 100%;
    max-width: 1100px;
}

.faq-category-block {
    margin-bottom: 36px;
    scroll-margin-top: 30px;
}

.faq-category-header {
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(1, 70, 97, 0.12);
}

.faq-category-header h3 {
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--sigcolor, #014661);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-card:hover {
    border-color: #cbd5e1;
}

.faq-card.open {
    border-color: var(--sigcolor, #014661);
}

.faq-toggle-btn {
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}

.faq-toggle-btn svg {
    width: 16px;
    height: 16px;
    color: var(--sigcolor, #014661);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-card.open .faq-toggle-btn svg {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
    padding: 0 18px;
    background: #ffffff;
}

.faq-card.open .faq-body {
    max-height: 600px;
    padding: 0 18px 16px 18px;
}

.faq-body p {
    font-family: var(--font2, 'Poppins', sans-serif);
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 8px 0;
}

.faq-body p:last-child {
    margin-bottom: 0;
}

.faq-body strong {
    color: #0f172a;
}

.direct-answer {
    padding: 8px 12px;
    border-radius: 4px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 12.5px;
}

.faq-support-card {
    margin-top: 36px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    max-width: 1100px;
}

.faq-support-card h4 {
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--sigcolor, #014661);
    margin: 0 0 6px 0;
}

.faq-support-card p {
    font-family: var(--font2, 'Poppins', sans-serif);
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
}

.sidebar-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    background-color: var(--sigcolor, #014661);
    color: #ffffff;
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.sidebar-wa-btn:hover {
    background-color: #013449;
}

.sidebar-wa-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   META BAR (TIMESTAMP & VERIFICATION BADGES)
   ========================================================================== */
.policy-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.policy-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary-color, #64748b);
    background: #f8fafc;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.policy-meta-item svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    color: var(--sigcolor, #014661);
    flex-shrink: 0;
}

/* ==========================================================================
   TWO-COLUMN POLICY LAYOUT (STICKY TABLE OF CONTENTS + CONTENT)
   ========================================================================== */
.policy-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    align-items: flex-start;
    width: 100%;
}

.policy-sidebar {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.policy-sidebar::-webkit-scrollbar {
    width: 4px;
}

.policy-sidebar::-webkit-scrollbar-track {
    background: #f8fafc;
}

.policy-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.policy-sidebar-title {
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sigcolor, #014661);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.policy-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.policy-sidebar-nav li a {
    display: block;
    padding: 6px 10px;
    border-radius: 5px;
    font-family: var(--font1, 'Montserrat', sans-serif);
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
}

.policy-sidebar-nav li a:hover {
    background: #f1f5f9;
    color: var(--sigcolor, #014661);
    padding-left: 12px;
    border-left-color: var(--sigcolor, #014661);
}

.policy-sidebar-nav li a.active {
    background: rgba(1, 70, 97, 0.08);
    color: var(--sigcolor, #014661);
    font-weight: 600;
    border-left-color: var(--sigcolor, #014661);
}

.policy-sidebar-contact {
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.policy-sidebar-contact p {
    font-family: var(--font2, 'Poppins', sans-serif);
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px 0;
    line-height: 1.45;
}

.policy-sidebar-contact .sidebar-wa-btn {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .policy-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 20px;
    }

    .policy-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .policy-page {
        padding: 24px 0 60px 0;
    }

    .policy-page .section-intro {
        margin-bottom: 28px;
        gap: 12px;
    }

    .policy-page .section-title {
        font-size: 26px;
        letter-spacing: -0.06rem;
    }
}

@media (max-width: 600px) {
    .policy-page .section-title {
        font-size: 23px;
        letter-spacing: -0.04rem;
    }

    .policy-table th,
    .policy-table td {
        padding: 10px 12px;
        font-size: 11.5px;
    }
}
