/**
 * Dissolvex HRMS — Terms of Service & Conditions Styles
 * Matches high-end editorial document aesthetic
 */

:root {
    --terms-primary: #0f392b;
    --terms-primary-light: #164e3b;
    --terms-accent: #10b981;
    --terms-accent-soft: #ecfdf5;
    --terms-dark: #0f172a;
    --terms-muted: #64748b;
    --terms-border: rgba(15, 57, 43, 0.1);
    --terms-border-soft: #f1f5f9;
    --terms-card-bg: #ffffff;
    --terms-body-bg: #fbfdfc;
}

body.terms-page {
    background: var(--terms-body-bg);
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Reading Progress Bar */
.terms-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1000;
    background: transparent;
}

.terms-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #047857);
    transition: width 0.1s linear;
}

/* Hero Section */
.terms-hero-section {
    position: relative;
    padding: 150px 0 60px;
    background: radial-gradient(120% 90% at 50% 0%, #ecfdf5 0%, #f0fdf4 40%, var(--terms-body-bg) 85%);
    text-align: center;
    overflow: hidden;
}

.terms-hero-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
    margin-bottom: 20px;
}

.terms-badge-icon {
    font-size: 0.9rem;
}

.terms-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--terms-primary);
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin: 0 0 16px 0;
}

.terms-hero-title .serif-italic {
    font-family: "Newsreader", "Playfair Display", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    color: #0d9488;
}

.terms-hero-subtitle {
    font-size: 0.96rem;
    color: var(--terms-muted);
    margin: 0;
    font-weight: 500;
}

/* Main Content Area */
.terms-main-section {
    padding: 0 0 100px;
}

.terms-card-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

.terms-document-card {
    background: var(--terms-card-bg);
    border: 1px solid var(--terms-border);
    border-radius: 24px;
    padding: 48px 52px;
    box-shadow: 0 20px 50px rgba(15, 57, 43, 0.05), 0 1px 3px rgba(15, 57, 43, 0.03);
}

.terms-intro-p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 32px 0;
    padding-bottom: 28px;
    border-bottom: 1.5px solid var(--terms-border-soft);
}

.terms-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--terms-border-soft);
}

.terms-section:last-of-type {
    border-bottom: none;
    padding-bottom: 16px;
}

.terms-section-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--terms-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.terms-section-text {
    font-size: 0.95rem;
    line-height: 1.68;
    color: #475569;
    margin: 0 0 12px 0;
}

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

.terms-list {
    margin: 12px 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terms-list li {
    font-size: 0.93rem;
    line-height: 1.6;
    color: #475569;
    position: relative;
    padding-left: 4px;
}

.terms-list li strong {
    color: var(--terms-dark);
    font-weight: 700;
}

.terms-section-text a,
.terms-list a {
    color: #047857;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.15s ease;
}

.terms-section-text a:hover,
.terms-list a:hover {
    color: #065f46;
}

/* Concluding Box */
.terms-conclusion-box {
    margin-top: 36px;
    padding: 24px 28px;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.terms-conclusion-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.terms-conclusion-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #065f46;
    margin: 0;
    line-height: 1.5;
}

/* Scenic Pre-footer CTA */
.terms-cta-banner-section {
    background-image: none !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    padding: 120px 0 130px;
}

/* Responsive */
@media (max-width: 768px) {
    .terms-hero-section {
        padding: 120px 0 40px;
    }

    .terms-hero-title {
        font-size: 2.3rem;
    }

    .terms-document-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .terms-section-title {
        font-size: 1.08rem;
    }

    .terms-intro-p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .terms-conclusion-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
}

/* ==========================================================================
   Custom Rich Visual Terms & Compliance CTA Showcase Banner Styles
   ========================================================================== */
.trm-cta-showcase-section {
    padding: 38px 0 60px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.trm-cta-showcase-section .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.trm-cta-showcase-card {
    position: relative;
    background: linear-gradient(135deg, #f3faf6 0%, #e6f6ee 50%, #d8f1e4 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.28);
    border-radius: 28px;
    padding: 42px 44px 42px 48px;
    display: grid;
    grid-template-columns: 1.12fr 0.98fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
    overflow: visible;
}

/* Left Column */
.trm-cta-showcase-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 2;
    text-align: left;
}

.trm-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #c9edd9;
    border-radius: 100px;
    padding: 5px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d5435;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.trm-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.trm-cta-showcase-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.18;
    color: #0b2b20;
    margin: 0;
    letter-spacing: -0.02em;
}

.trm-cta-showcase-title .serif-italic {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2.75rem;
    color: #065f46;
    letter-spacing: -0.01em;
}

.trm-cta-showcase-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2d5a47;
    margin: 0;
    max-width: 500px;
}

/* Micro-features */
.trm-cta-micro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    margin-top: 4px;
}

.trm-cta-micro-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1b4d38;
}

.trm-cta-check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Buttons */
.trm-cta-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.trm-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #065f46;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 100px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.28);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.trm-cta-btn-primary:hover {
    background: #047857;
    transform: translateY(-2px);
}

.trm-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #065f46 !important;
    border: 1.5px solid #a7dcc2;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.trm-cta-btn-secondary:hover {
    border-color: #065f46;
    transform: translateY(-2px);
}

/* Right Column: Mockup Stage */
.trm-cta-showcase-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.trm-cta-mockup-stage {
    position: relative;
    width: 485px;
    max-width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
}

/* 4-Corner Floating Badges */
.trm-float-badge {
    position: absolute;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    z-index: 15;
    white-space: nowrap;
}

.trm-float-badge.top-left {
    top: 2px;
    left: 10px;
}

.trm-float-badge.bottom-right {
    bottom: 2px;
    right: 10px;
}

.trm-float-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #e6f7f0;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trm-float-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: #0b2b20;
}

/* Handwritten Doodles */
.trm-doodle-note-top {
    position: absolute;
    top: 0px;
    right: -8px;
    z-index: 18;
    pointer-events: none;
}

.trm-doodle-note-bottom {
    position: absolute;
    bottom: 0px;
    left: 10px;
    z-index: 18;
    pointer-events: none;
}

.trm-doodle-text {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #166534;
    line-height: 1.05;
    transform: rotate(3deg);
    white-space: nowrap;
}

.trm-doodle-text.alt {
    color: #166534;
    transform: rotate(-3deg);
}

/* White Mockup Window */
.trm-cta-window {
    background: #ffffff;
    border: 1px solid #cce8da;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(11, 43, 32, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.trm-cta-window-top {
    background: #f8fafc;
    border-bottom: 1px solid #eef5f1;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trm-cta-window-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trm-cta-window-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.trm-cta-window-dot.red { background: #ef4444; }
.trm-cta-window-dot.yellow { background: #f59e0b; }
.trm-cta-window-dot.green { background: #10b981; }

.trm-cta-window-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Summary Strip */
.trm-cta-summary-strip {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #eef5f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trm-cta-sum-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trm-cta-sum-lbl {
    font-size: 0.62rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.trm-cta-sum-val {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
}

.trm-cta-sum-val.pos {
    color: #059669;
}

.trm-cta-sum-status {
    padding: 3px 8px;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.64rem;
    font-weight: 700;
    border-radius: 9999px;
}

/* SLA Details Card */
.trm-cta-sla-card {
    padding: 14px;
    background: #ffffff;
}

.trm-cta-sla-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.trm-cta-sla-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trm-cta-sla-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.trm-cta-sla-date {
    font-size: 0.66rem;
    color: #64748b;
}

.trm-cta-breakup-grid {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.trm-cta-break-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #334155;
    margin-bottom: 3px;
}

.trm-cta-break-line.policy {
    margin-top: 5px;
    padding-top: 4px;
    border-top: 1px dashed #cbd5e1;
}

.trm-cta-break-line strong.pos {
    color: #047857;
}

.trm-cta-action-bar {
    display: flex;
}

.trm-cta-btn-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #065f46;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.trm-cta-btn-action:hover {
    background: #047857;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
    .trm-cta-showcase-card {
        grid-template-columns: 1fr;
        padding: 34px 24px;
        gap: 32px;
    }
    .trm-cta-showcase-left {
        text-align: center;
        align-items: center;
    }
    .trm-cta-showcase-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .trm-cta-micro-features {
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
    .trm-cta-actions-row {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .trm-doodle-note-top,
    .trm-doodle-note-bottom {
        display: none !important;
    }
    .trm-cta-actions-row .trm-cta-btn-primary,
    .trm-cta-actions-row .trm-cta-btn-secondary {
        width: 100%;
    }
    .trm-cta-micro-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
