/* Legal / policy / glossary page styles (body.safetics-legal-doc). */

/* reading column */
body.safetics-legal-doc .entry-content .elementor-section > .elementor-container,
body.safetics-legal-doc .entry-content .e-con > .e-con-inner {
    max-width: 920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

body.safetics-legal-doc .entry-content > .elementor {
    padding-top: 44px;
    padding-bottom: 72px;
}

/* headings */
body.safetics-legal-doc .entry-content h1,
body.safetics-legal-doc .entry-content h1.elementor-heading-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #191F28 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
    margin: 0 0 28px !important;
}
body.safetics-legal-doc .entry-content h2,
body.safetics-legal-doc .entry-content h2.elementor-heading-title {
    font-size: 23px !important;
    font-weight: 700 !important;
    color: #191F28 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    margin: 44px 0 16px !important;
}
body.safetics-legal-doc .entry-content h3,
body.safetics-legal-doc .entry-content h3.elementor-heading-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #191F28 !important;
    line-height: 1.45 !important;
    margin: 32px 0 12px !important;
}
body.safetics-legal-doc .entry-content h4,
body.safetics-legal-doc .entry-content h4.elementor-heading-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #191F28 !important;
    line-height: 1.5 !important;
    margin: 24px 0 8px !important;
}
body.safetics-legal-doc .entry-content .elementor-section:first-of-type h1,
body.safetics-legal-doc .entry-content .elementor-section:first-of-type h2 {
    margin-top: 0 !important;
}

/* body text + lists */
body.safetics-legal-doc .elementor-widget-text-editor,
body.safetics-legal-doc .elementor-widget-html,
body.safetics-legal-doc .elementor-widget-text-editor p,
body.safetics-legal-doc .elementor-widget-html p,
body.safetics-legal-doc .elementor-widget-text-editor li,
body.safetics-legal-doc .elementor-widget-html li {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #4E5968 !important;
    font-weight: 400 !important;
}
body.safetics-legal-doc .elementor-widget-text-editor p,
body.safetics-legal-doc .elementor-widget-html p {
    margin: 0 0 16px !important;
}
body.safetics-legal-doc .elementor-widget-text-editor ul,
body.safetics-legal-doc .elementor-widget-text-editor ol,
body.safetics-legal-doc .elementor-widget-html ul,
body.safetics-legal-doc .elementor-widget-html ol {
    margin: 0 0 18px !important;
    padding-left: 22px !important;
}
body.safetics-legal-doc .elementor-widget-text-editor li,
body.safetics-legal-doc .elementor-widget-html li {
    margin-bottom: 6px !important;
    background: none !important;
}
body.safetics-legal-doc .elementor-widget-text-editor li::marker,
body.safetics-legal-doc .elementor-widget-html li::marker {
    color: #8B95A1;
}
body.safetics-legal-doc .elementor-widget-text-editor strong,
body.safetics-legal-doc .elementor-widget-text-editor b,
body.safetics-legal-doc .elementor-widget-html strong,
body.safetics-legal-doc .elementor-widget-html b {
    color: #191F28 !important;
    font-weight: 700 !important;
}
body.safetics-legal-doc .entry-content a:not(.elementor-button) {
    color: #FF8A24;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease;
}
body.safetics-legal-doc .entry-content a:not(.elementor-button):hover {
    color: #FF6B00;
}

/* tables */
body.safetics-legal-doc .entry-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 22px 0 28px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    border: 1px solid #E5E8EB !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
}
body.safetics-legal-doc .entry-content th,
body.safetics-legal-doc .entry-content td {
    padding: 12px 16px !important;
    text-align: left !important;
    vertical-align: top !important;
    color: #4E5968 !important;
    border: 0 !important;
    border-bottom: 1px solid #EEF0F2 !important;
    border-right: 1px solid #EEF0F2 !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}
body.safetics-legal-doc .entry-content th:last-child,
body.safetics-legal-doc .entry-content td:last-child {
    border-right: 0 !important;
}
body.safetics-legal-doc .entry-content tr:last-child td {
    border-bottom: 0 !important;
}
body.safetics-legal-doc .entry-content thead th,
body.safetics-legal-doc .entry-content table > tbody > tr:first-child th {
    background: #F7F8FA !important;
    color: #191F28 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #E5E8EB !important;
}
body.safetics-legal-doc .entry-content tbody tr:nth-child(even) td {
    background: #FBFCFD !important;
}

body.safetics-legal-doc .entry-content hr {
    border: 0 !important;
    border-top: 1px solid #E5E8EB !important;
    margin: 36px 0 !important;
}
body.safetics-legal-doc .entry-content img {
    max-width: 100% !important;
    height: auto !important;
}

/* mobile */
@media (max-width: 768px) {
    body.safetics-legal-doc .entry-content .elementor-section > .elementor-container,
    body.safetics-legal-doc .entry-content .e-con > .e-con-inner {
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    body.safetics-legal-doc .entry-content > .elementor {
        padding-top: 28px;
        padding-bottom: 48px;
    }
    body.safetics-legal-doc .entry-content h1,
    body.safetics-legal-doc .entry-content h1.elementor-heading-title {
        font-size: 25px !important;
        margin-bottom: 20px !important;
    }
    body.safetics-legal-doc .entry-content h2,
    body.safetics-legal-doc .entry-content h2.elementor-heading-title {
        font-size: 20px !important;
        margin: 36px 0 12px !important;
    }
    body.safetics-legal-doc .entry-content h3,
    body.safetics-legal-doc .entry-content h3.elementor-heading-title {
        font-size: 17px !important;
        margin: 26px 0 10px !important;
    }
    body.safetics-legal-doc .elementor-widget-text-editor,
    body.safetics-legal-doc .elementor-widget-html,
    body.safetics-legal-doc .elementor-widget-text-editor p,
    body.safetics-legal-doc .elementor-widget-html p,
    body.safetics-legal-doc .elementor-widget-text-editor li,
    body.safetics-legal-doc .elementor-widget-html li {
        font-size: 15px !important;
        line-height: 1.72 !important;
    }
    body.safetics-legal-doc .elementor-widget-text-editor .elementor-widget-container,
    body.safetics-legal-doc .elementor-widget-html .elementor-widget-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.safetics-legal-doc .entry-content table {
        font-size: 14px !important;
    }
    body.safetics-legal-doc .entry-content th,
    body.safetics-legal-doc .entry-content td {
        padding: 10px 12px !important;
    }
}


/* ===== SFT-LEGAL-REDESIGN — match the Terms & Policies hub design system.
   Scoped to body.safetics-legal-doc. Content markup/text untouched; visual only. ===== */

/* Back-link (injected element) — same look as the hub */
.safetics-legal-doc .sft-legal-back {
    display: flex; width: fit-content; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: #6b7280;
    text-decoration: none; margin: 0 0 18px 0; transition: color .15s ease;
}
.safetics-legal-doc .sft-legal-back:hover { color: #FF8A24; }
.safetics-legal-doc .sft-legal-back svg { width: 18px; height: 18px; }

/* Page title (Elementor heading) — match hub h1 */
.safetics-legal-doc .elementor-heading-title {
    font-size: 32px !important; font-weight: 800 !important;
    letter-spacing: -0.03em !important; color: #191F28 !important;
    line-height: 1.25 !important; margin: 0 0 24px !important;
}

/* Inner nav tabs -> clean segmented control (hub tone) */
.safetics-legal-doc ul.tab_policy {
    display: flex !important; align-items: stretch !important; gap: 6px; list-style: none;
    padding: 6px !important; margin: 0 0 40px !important;
    background: #F7F8FA; border: 1px solid #E5E8EB; border-radius: 14px;
}
.safetics-legal-doc ul.tab_policy li { flex: 1 1 0 !important; display: flex !important; margin: 0 !important; text-align: center; }
.safetics-legal-doc ul.tab_policy li a {
    flex: 1; display: flex !important; align-items: center !important; justify-content: center !important;
    min-height: 38px; padding: 8px 8px; border-radius: 10px; line-height: 1.3;
    font-size: 14px; font-weight: 600; color: #6B7680 !important;
    text-decoration: none !important; transition: all .15s ease; white-space: nowrap;
}
.safetics-legal-doc ul.tab_policy li a:hover { color: #191F28 !important; background: rgba(0,0,0,.04); }
.safetics-legal-doc ul.tab_policy li.on a {
    background: #fff; color: #FF6B00 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px rgba(255,138,36,.18);
}

/* Content typography — consistent hierarchy, neutralize Notion inline pt sizes */
.safetics-legal-doc .elementor-widget-text-editor span { font-size: inherit !important; }
.safetics-legal-doc .elementor-widget-text-editor h2 {
    font-size: 20px !important; font-weight: 800 !important; color: #191F28 !important;
    letter-spacing: -0.02em !important; line-height: 1.4 !important;
    margin: 40px 0 14px !important; padding-top: 26px !important; border-top: 1px solid #EEF2F7 !important;
}
.safetics-legal-doc .elementor-section:nth-of-type(3) .elementor-widget-text-editor:first-child h2 { border-top: 0 !important; padding-top: 0 !important; margin-top: 8px !important; }
.safetics-legal-doc .elementor-widget-text-editor h3 {
    font-size: 16px !important; font-weight: 700 !important; color: #191F28 !important;
    margin: 26px 0 10px !important; line-height: 1.5 !important;
}
.safetics-legal-doc .elementor-widget-text-editor p,
.safetics-legal-doc .elementor-widget-text-editor li {
    font-size: 15px !important; line-height: 1.75 !important; color: #4E5968 !important;
}
.safetics-legal-doc .elementor-widget-text-editor ol,
.safetics-legal-doc .elementor-widget-text-editor ul { margin: 10px 0 16px !important; padding-left: 22px !important; }
.safetics-legal-doc .elementor-widget-text-editor li { margin-bottom: 7px !important; }
.safetics-legal-doc .elementor-widget-text-editor a { color: #FF6B00 !important; text-decoration: underline; text-underline-offset: 2px; }

/* Tables — hide Notion UI bits, clean card-style table (matches docs tables) */
.safetics-legal-doc .notion-table-column-selector,
.safetics-legal-doc .notion-table-row-selector,
.safetics-legal-doc .notion-table-add-row,
.safetics-legal-doc .notion-table-add-column,
.safetics-legal-doc [class*="-selector"] { display: none !important; }
.safetics-legal-doc .notion-table-block,
.safetics-legal-doc .notion-table-block > div { position: static !important; }
.safetics-legal-doc .elementor-widget-text-editor table {
    width: 100% !important; border-collapse: separate !important; border-spacing: 0 !important;
    border: 1px solid #E5E8EB !important; border-radius: 12px !important; overflow: hidden !important;
    margin: 18px 0 !important; font-size: 14px !important; background: #fff !important;
}
.safetics-legal-doc .elementor-widget-text-editor td,
.safetics-legal-doc .elementor-widget-text-editor th {
    border: 0 !important; border-bottom: 1px solid #E5E8EB !important;
    padding: 12px 14px !important; text-align: left !important; vertical-align: top !important;
    color: #4E5968 !important; min-width: 0 !important;
}
/* don't split words mid-character in table cells (glossary mobile first column) */
.safetics-legal-doc td, .safetics-legal-doc th { word-break: keep-all !important; overflow-wrap: break-word !important; }
.safetics-legal-doc .elementor-widget-text-editor tr:last-child td { border-bottom: 0 !important; }
.safetics-legal-doc .elementor-widget-text-editor th,
.safetics-legal-doc .elementor-widget-text-editor td[style*="background"] { background: #F9FAFB !important; font-weight: 700 !important; color: #4E5968 !important; }

/* Mobile: wrap the 4 nav tabs into a 2x2 grid so labels don't truncate */
@media (max-width: 600px) {
    .safetics-legal-doc ul.tab_policy { flex-wrap: wrap !important; }
    .safetics-legal-doc ul.tab_policy li { flex: 1 1 calc(50% - 3px) !important; }
    .safetics-legal-doc ul.tab_policy li a { font-size: 13px !important; padding: 8px 4px !important; }
    .safetics-legal-doc .elementor-heading-title { font-size: 26px !important; }
}
