
/* =========================================================
   DATICS — LEGAL SERVICE DETAIL PAGE
   Premium / Modern / Responsive
   IMPORTANT: This stylesheet matches the current PHP markup
   exactly.
   ========================================================= */

:root {
    --ls-primary: #315bea;
    --ls-primary-dark: #2448c7;
    --ls-purple: #7044ed;
    --ls-dark: #10172a;
    --ls-text: #27324a;
    --ls-muted: #68748b;
    --ls-light: #f6f8fc;
    --ls-white: #ffffff;
    --ls-border: #e5e9f2;
    --ls-success: #16a06b;
    --ls-container: 1180px;
    --ls-radius-sm: 12px;
    --ls-radius-md: 18px;
    --ls-radius-lg: 28px;
    --ls-shadow-sm: 0 8px 28px rgba(24, 39, 75, .06);
    --ls-shadow-md: 0 18px 50px rgba(24, 39, 75, .10);
    --ls-shadow-lg: 0 28px 80px rgba(24, 39, 75, .14);
}

/* =========================================================
   BASE
   ========================================================= */

.legal-detail-page,
.legal-detail-page * {
    box-sizing: border-box;
}

.legal-detail-page {
    width: 100%;
    overflow: hidden;
    background: #fff;
    color: var(--ls-text);
    font-family: inherit;
}

.legal-detail-page a {
    text-decoration: none;
}

.legal-detail-page button {
    font: inherit;
}

.legal-detail-container {
    width: min(calc(100% - 48px), var(--ls-container));
    margin-inline: auto;
}

/* =========================================================
   HERO
   ========================================================= */

.legal-detail-hero {
    position: relative;
    padding: 74px 0 112px;
    isolation: isolate;
    background:
        radial-gradient(circle at 5% 10%, rgba(49, 91, 234, .13), transparent 28%),
        radial-gradient(circle at 94% 12%, rgba(112, 68, 237, .12), transparent 25%),
        linear-gradient(135deg, #f7f9ff 0%, #fff 52%, #f8f6ff 100%);
            margin-top: 135px;

}

.legal-detail-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -260px;
    border: 1px solid rgba(49, 91, 234, .10);
    border-radius: 50%;
    z-index: -1;
}

.legal-detail-hero::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    left: -230px;
    bottom: -190px;
    border-radius: 50%;
    background: rgba(49, 91, 234, .035);
    z-index: -1;
}

.legal-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    align-items: center;
    gap: 74px;
}

.legal-detail-hero-content {
    position: relative;
    z-index: 2;
}

.legal-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 23px;
    color: #8993a7;
    font-size: 12px;
    font-weight: 600;
}

.legal-detail-breadcrumb a {
    color: var(--ls-primary);
    transition: color .2s ease;
}

.legal-detail-breadcrumb a:hover {
    color: var(--ls-purple);
}

.legal-detail-breadcrumb i {
    font-size: 10px;
    opacity: .55;
}

.legal-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 8px 13px;
    border: 1px solid rgba(49, 91, 234, .13);
    border-radius: 999px;
    background: rgba(49, 91, 234, .07);
    color: var(--ls-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.legal-detail-category-number {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(49, 91, 234, .10);
    font-size: 9px;
}

.legal-detail-category i {
    font-size: 14px;
}

.legal-detail-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--ls-dark);
    font-size: clamp(44px, 5.4vw, 72px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 850;
}

.legal-detail-lead {
    max-width: 650px;
    margin: 25px 0 0;
    color: var(--ls-muted);
    font-size: 17px;
    line-height: 1.75;
}

.legal-detail-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

.legal-detail-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 21px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.legal-detail-btn:hover {
    transform: translateY(-3px);
}

.legal-detail-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ls-primary), var(--ls-purple));
    box-shadow: 0 13px 28px rgba(49, 91, 234, .25);
}

.legal-detail-btn-primary:hover {
    box-shadow: 0 18px 38px rgba(49, 91, 234, .32);
}

.legal-detail-btn-secondary {
    color: var(--ls-dark);
    background: rgba(255,255,255,.9);
    border: 1px solid var(--ls-border);
    box-shadow: 0 5px 16px rgba(24,39,75,.04);
}

.legal-detail-btn-secondary:hover {
    background: #fff;
}

.legal-detail-btn i {
    font-size: 16px;
}

.legal-detail-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 25px;
}

.legal-detail-trust > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #59657b;
    font-size: 12px;
    font-weight: 650;
}

.legal-detail-trust > div i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(22,160,107,.10);
    color: var(--ls-success);
    font-size: 11px;
}

/* =========================================================
   HERO SERVICE CARD
   ========================================================= */

.legal-detail-hero-visual {
    position: relative;
    min-height: 450px;
    display: grid;
    place-items: center;
}

.legal-detail-main-card {
    position: relative;
    width: min(100%, 470px);
    overflow: hidden;
    padding: 29px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,249,255,.98));
    box-shadow: var(--ls-shadow-lg);
}

.legal-detail-main-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -125px;
    top: -130px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49,91,234,.13), rgba(112,68,237,.08));
}

.legal-detail-main-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    left: -100px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(49,91,234,.045);
}

.legal-detail-main-card-top,
.legal-detail-main-card-content,
.legal-detail-main-card-footer {
    position: relative;
    z-index: 2;
}

.legal-detail-main-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 23px;
    margin-bottom: 23px;
    border-bottom: 1px solid var(--ls-border);
}

.legal-detail-service-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--ls-primary), var(--ls-purple));
    box-shadow: 0 13px 27px rgba(49,91,234,.23);
    font-size: 23px;
}

.legal-detail-popular {
    padding: 7px 10px;
    border: 1px solid rgba(22,160,107,.13);
    border-radius: 999px;
    background: rgba(22,160,107,.08);
    color: var(--ls-success);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.legal-detail-main-card-content > span {
    display: block;
    margin-bottom: 6px;
    color: #8b95a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.legal-detail-main-card-content h2 {
    max-width: 380px;
    margin: 0;
    color: var(--ls-dark);
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.legal-detail-main-card-content p {
    margin: 14px 0 0;
    color: var(--ls-muted);
    font-size: 13px;
    line-height: 1.72;
}

.legal-detail-main-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.legal-detail-main-card-footer > div {
    padding: 14px 15px;
    border: 1px solid var(--ls-border);
    border-radius: 14px;
    background: rgba(255,255,255,.75);
}

.legal-detail-main-card-footer small {
    display: block;
    margin-bottom: 5px;
    color: #8993a7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legal-detail-main-card-footer strong {
    color: var(--ls-dark);
    font-size: 14px;
}

.legal-detail-floating-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 185px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 15px 35px rgba(24,39,75,.12);
    backdrop-filter: blur(12px);
}

.legal-detail-floating-card i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #eef3ff;
    color: var(--ls-primary);
    font-size: 16px;
}

.legal-detail-floating-card strong,
.legal-detail-floating-card span {
    display: block;
}

.legal-detail-floating-card strong {
    color: var(--ls-dark);
    font-size: 11px;
}

.legal-detail-floating-card span {
    margin-top: 2px;
    color: var(--ls-muted);
    font-size: 10px;
}

.legal-detail-floating-one {
    left: -28px;
    bottom: 43px;
}

.legal-detail-floating-two {
    right: -27px;
    top: 52px;
}

/* =========================================================
   QUICK INFORMATION
   ========================================================= */

.legal-detail-quick-info {
    position: relative;
    z-index: 5;
    margin-top: -55px;
    padding-bottom: 20px;
}

.legal-detail-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.legal-detail-quick-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(228,232,241,.95);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--ls-shadow-md);
    transition: transform .22s ease, box-shadow .22s ease;
}

.legal-detail-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 55px rgba(35,51,92,.13);
}

.legal-detail-quick-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #eef3ff;
    color: var(--ls-primary);
    font-size: 17px;
}

.legal-detail-quick-card span {
    display: block;
    margin-bottom: 5px;
    color: #8993a7;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.legal-detail-quick-card strong {
    display: block;
    color: var(--ls-dark);
    font-size: 14px;
    line-height: 1.35;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.legal-detail-content-section {
    padding: 82px 0 105px;
    background: #fff;
}

.legal-detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 70px;
    align-items: start;
}

.legal-detail-main-content {
    min-width: 0;
}

.legal-detail-content-block {
    padding: 0 0 72px;
    margin-bottom: 72px;
    border-bottom: 1px solid var(--ls-border);
}

.legal-detail-content-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.legal-detail-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: var(--ls-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.legal-detail-section-label::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.legal-detail-content-block h2 {
    max-width: 760px;
    margin: 0;
    color: var(--ls-dark);
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.legal-detail-description,
.legal-detail-content-block > p {
    max-width: 760px;
    margin: 17px 0 0;
    color: var(--ls-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   OVERVIEW
   ========================================================= */

.legal-detail-overview-list {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.legal-detail-overview-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--ls-border);
    border-radius: 13px;
    background: #fafbfe;
    color: var(--ls-text);
    font-size: 13px;
    font-weight: 600;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.legal-detail-overview-item:hover {
    transform: translateX(4px);
    border-color: rgba(49,91,234,.20);
    background: #fff;
}

.legal-detail-overview-item i {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    flex: 0 0 23px;
    border-radius: 50%;
    background: rgba(22,160,107,.10);
    color: var(--ls-success);
    font-size: 11px;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.legal-detail-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin-top: 27px;
}

.legal-detail-benefit-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid var(--ls-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(24,39,75,.025);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.legal-detail-benefit-card:hover {
    transform: translateY(-3px);
    border-color: rgba(49,91,234,.22);
    box-shadow: var(--ls-shadow-sm);
}

.legal-detail-benefit-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 10px;
    background: #eef3ff;
    color: var(--ls-primary);
    font-size: 14px;
}

.legal-detail-benefit-card span {
    color: var(--ls-dark);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

/* =========================================================
   DOCUMENTS
   ========================================================= */

.legal-detail-document-list {
    display: grid;
    gap: 10px;
    margin-top: 27px;
}

.legal-detail-document-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid var(--ls-border);
    border-radius: 15px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.legal-detail-document-item:hover {
    transform: translateX(4px);
    box-shadow: var(--ls-shadow-sm);
}

.legal-detail-document-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 11px;
    background: #f0f3ff;
    color: var(--ls-primary);
}

.legal-detail-document-item strong,
.legal-detail-document-item span {
    display: block;
}

.legal-detail-document-item strong {
    color: var(--ls-dark);
    font-size: 13px;
}

.legal-detail-document-item span {
    margin-top: 3px;
    color: var(--ls-muted);
    font-size: 11px;
}

/* =========================================================
   PROCESS
   ========================================================= */

.legal-detail-process {
    position: relative;
    display: grid;
    gap: 0;
    margin-top: 31px;
}

.legal-detail-process-item {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1px minmax(0,1fr);
    column-gap: 18px;
    min-height: 91px;
}

.legal-detail-process-item:last-child {
    min-height: auto;
}

.legal-detail-process-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ls-primary);
    border-radius: 50%;
    background: #fff;
    color: var(--ls-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    box-shadow: 0 0 0 7px #fff;
}

.legal-detail-process-line {
    position: relative;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(49,91,234,.45), rgba(49,91,234,.08));
}

.legal-detail-process-item:last-child .legal-detail-process-line {
    display: none;
}

.legal-detail-process-content {
    padding: 4px 0 30px;
}

.legal-detail-process-content > span {
    display: block;
    margin-bottom: 4px;
    color: var(--ls-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.legal-detail-process-content h3 {
    margin: 0;
    color: var(--ls-dark);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 750;
}

/* =========================================================
   FAQ
   ========================================================= */

.legal-detail-faq {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.legal-detail-faq-item {
    overflow: hidden;
    border: 1px solid var(--ls-border);
    border-radius: 15px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.legal-detail-faq-item.active {
    border-color: rgba(49,91,234,.25);
    box-shadow: var(--ls-shadow-sm);
}

.legal-detail-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 21px;
    border: 0;
    background: transparent;
    color: var(--ls-dark);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
}

.legal-detail-faq-question i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--ls-primary);
    transition: transform .25s ease;
}

.legal-detail-faq-item.active .legal-detail-faq-question i {
    transform: rotate(45deg);
}

.legal-detail-faq-answer {
    display: none;
    padding: 0 21px 20px;
    color: var(--ls-muted);
    font-size: 13px;
    line-height: 1.75;
}

.legal-detail-faq-item.active .legal-detail-faq-answer {
    display: block;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.legal-detail-sidebar {
    position: sticky;
    top: 95px;
    display: grid;
    gap: 15px;
}

.legal-detail-sidebar-card {
    padding: 23px;
    border: 1px solid var(--ls-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--ls-shadow-sm);
}

.legal-detail-sidebar-cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    border: 0;
    background:
        radial-gradient(circle at 100% 0, rgba(112,68,237,.65), transparent 36%),
        linear-gradient(145deg, #111a34, #263d7d);
    box-shadow: 0 20px 50px rgba(16,24,45,.18);
}

.legal-detail-sidebar-cta::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -85px;
    bottom: -85px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
}

.legal-detail-sidebar-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    color: #fff;
}

.legal-detail-sidebar-card > span,
.legal-detail-sidebar-label {
    display: block;
    margin-bottom: 8px;
    color: #8b96ab;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.legal-detail-sidebar-cta > span {
    color: #aebdff;
}

.legal-detail-sidebar-card h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--ls-dark);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.legal-detail-sidebar-cta h3 {
    color: #fff;
}

.legal-detail-sidebar-card h3 strong {
    color: var(--ls-primary);
}

.legal-detail-sidebar-cta h3 strong {
    color: #9fb2ff;
}

.legal-detail-sidebar-card p {
    position: relative;
    z-index: 2;
    margin: 11px 0 18px;
    color: var(--ls-muted);
    font-size: 12px;
    line-height: 1.7;
}

.legal-detail-sidebar-cta p {
    color: rgba(255,255,255,.68);
}

.legal-detail-sidebar-btn {
    position: relative;
    z-index: 3;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border-radius: 11px;
    background: #fff;
    color: var(--ls-primary);
    font-size: 12px;
    font-weight: 850;
    transition: transform .2s ease;
}

.legal-detail-sidebar-btn:hover {
    transform: translateY(-2px);
}

.legal-detail-summary {
    display: grid;
    gap: 0;
    margin-top: 5px;
}

.legal-detail-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ls-border);
}

.legal-detail-summary > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-detail-summary > div:first-child {
    padding-top: 3px;
}

.legal-detail-summary > div span {
    color: var(--ls-muted);
    font-size: 11px;
}

.legal-detail-summary > div strong {
    max-width: 170px;
    color: var(--ls-dark);
    font-size: 11px;
    text-align: right;
}

.legal-detail-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 0 15px;
    border: 1px solid var(--ls-border);
    border-radius: 12px;
    background: #fafbfe;
    color: var(--ls-dark);
    font-size: 11px;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease;
}

.legal-detail-back-link:hover {
    transform: translateY(-2px);
    border-color: rgba(49,91,234,.22);
    color: var(--ls-primary);
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.legal-detail-final-cta {
    position: relative;
    padding: 82px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(112,68,237,.30), transparent 28%),
        linear-gradient(135deg, #10172a, #24386e);
}

.legal-detail-final-cta::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: -250px;
    top: -250px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
}

.legal-detail-final-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 45px;
    padding: 43px 48px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 27px;
    background: rgba(255,255,255,.055);
    box-shadow: 0 25px 70px rgba(0,0,0,.12);
}

.legal-detail-final-content {
    position: relative;
    z-index: 2;
}

.legal-detail-final-content .legal-detail-section-label {
    color: #91a9ff;
}

.legal-detail-final-content h2 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 4vw, 47px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.legal-detail-final-content h2 span {
    color: #9fb2ff;
}

.legal-detail-final-content p {
    max-width: 650px;
    margin: 15px 0 0;
    color: rgba(255,255,255,.67);
    font-size: 13px;
    line-height: 1.7;
}

.legal-detail-final-actions {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-detail-final-actions .legal-detail-btn {
    white-space: nowrap;
}

.legal-detail-final-actions .legal-detail-btn-primary {
    background: #fff;
    color: var(--ls-primary);
    box-shadow: 0 12px 25px rgba(0,0,0,.12);
}

.legal-detail-final-actions .legal-detail-btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,.20);
    background: rgba(255,255,255,.08);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
    .legal-detail-hero {
        padding: 60px 0 100px;
    }

    .legal-detail-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .legal-detail-hero h1 {
        max-width: 850px;
    }

    .legal-detail-lead {
        max-width: 760px;
    }

    .legal-detail-hero-visual {
        min-height: 420px;
    }

    .legal-detail-main-card {
        width: min(100%, 560px);
    }

    .legal-detail-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-detail-content-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .legal-detail-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .legal-detail-sidebar-cta {
        grid-row: span 2;
    }

    .legal-detail-back-link {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .legal-detail-container {
        width: min(calc(100% - 30px), var(--ls-container));
    }

    .legal-detail-hero {
        padding: 38px 0 75px;
    }

    .legal-detail-hero-grid {
        gap: 38px;
    }

    .legal-detail-breadcrumb {
        margin-bottom: 17px;
        font-size: 11px;
    }

    .legal-detail-category {
        margin-bottom: 17px;
        font-size: 9px;
    }

    .legal-detail-hero h1 {
        font-size: clamp(38px, 12vw, 58px);
        line-height: .98;
    }

    .legal-detail-lead {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.7;
    }

    .legal-detail-hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 23px;
    }

    .legal-detail-btn {
        width: 100%;
        min-height: 49px;
        padding: 0 12px;
        font-size: 12px;
    }

    .legal-detail-trust {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .legal-detail-trust > div {
        font-size: 10px;
    }

    .legal-detail-hero-visual {
        min-height: 370px;
        padding: 0 8px;
    }

    .legal-detail-main-card {
        width: 100%;
        padding: 21px;
        border-radius: 22px;
    }

    .legal-detail-service-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
        font-size: 20px;
    }

    .legal-detail-main-card-content h2 {
        font-size: 22px;
    }

    .legal-detail-main-card-content p {
        font-size: 12px;
    }

    .legal-detail-main-card-footer {
        gap: 8px;
        margin-top: 19px;
    }

    .legal-detail-main-card-footer > div {
        padding: 11px;
    }

    .legal-detail-main-card-footer strong {
        font-size: 12px;
    }

    .legal-detail-floating-card {
        min-width: 155px;
        padding: 9px 11px;
    }

    .legal-detail-floating-card i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 14px;
    }

    .legal-detail-floating-card strong {
        font-size: 9px;
    }

    .legal-detail-floating-card span {
        font-size: 8px;
    }

    .legal-detail-floating-one {
        left: -4px;
        bottom: 14px;
    }

    .legal-detail-floating-two {
        right: -4px;
        top: 20px;
    }

    .legal-detail-quick-info {
        margin-top: -28px;
    }

    .legal-detail-quick-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 9px;
    }

    .legal-detail-quick-card {
        min-height: 100px;
        padding: 14px;
        gap: 10px;
        border-radius: 15px;
    }

    .legal-detail-quick-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 14px;
    }

    .legal-detail-quick-card span {
        font-size: 8px;
    }

    .legal-detail-quick-card strong {
        font-size: 11px;
    }

    .legal-detail-content-section {
        padding: 65px 0 75px;
    }

    .legal-detail-content-block {
        padding-bottom: 55px;
        margin-bottom: 55px;
    }

    .legal-detail-content-block h2 {
        font-size: 30px;
    }

    .legal-detail-description,
    .legal-detail-content-block > p {
        font-size: 13px;
        line-height: 1.75;
    }

    .legal-detail-benefits-grid {
        grid-template-columns: 1fr;
    }

    .legal-detail-benefit-card {
        min-height: 62px;
    }

    .legal-detail-process-item {
        grid-template-columns: 48px 1px minmax(0,1fr);
        column-gap: 13px;
        min-height: 82px;
    }

    .legal-detail-process-number {
        width: 44px;
        height: 44px;
        box-shadow: 0 0 0 5px #fff;
        font-size: 10px;
    }

    .legal-detail-process-content {
        padding-bottom: 25px;
    }

    .legal-detail-process-content h3 {
        font-size: 14px;
    }

    .legal-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .legal-detail-sidebar-cta {
        grid-row: auto;
    }

    .legal-detail-back-link {
        grid-column: auto;
    }

    .legal-detail-final-cta {
        padding: 60px 0;
    }

    .legal-detail-final-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 29px 22px;
        border-radius: 22px;
        text-align: center;
    }

    .legal-detail-final-content h2 {
        font-size: 30px;
    }

    .legal-detail-final-content p {
        font-size: 12px;
    }

    .legal-detail-final-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {
    .legal-detail-container {
        width: calc(100% - 24px);
    }

    .legal-detail-hero-buttons {
        grid-template-columns: 1fr;
    }

    .legal-detail-trust {
        grid-template-columns: 1fr;
    }

    .legal-detail-hero-visual {
        min-height: 350px;
    }

    .legal-detail-main-card {
        padding: 18px;
    }

    .legal-detail-floating-card {
        min-width: 140px;
    }

    .legal-detail-quick-card {
        min-height: 94px;
        padding: 11px;
    }

    .legal-detail-quick-card span {
        font-size: 7px;
    }

    .legal-detail-quick-card strong {
        font-size: 10px;
    }

    .legal-detail-content-block h2 {
        font-size: 28px;
    }

    .legal-detail-faq-question {
        padding: 16px;
        font-size: 12px;
    }

    .legal-detail-faq-answer {
        padding: 0 16px 17px;
        font-size: 11px;
    }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

.legal-detail-page :focus-visible {
    outline: 3px solid rgba(49,91,234,.28);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .legal-detail-page *,
    .legal-detail-page *::before,
    .legal-detail-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}