/* ============================================================
   MinerCore — Hosting Terms Page Styles (Standard Container Width)
   ============================================================ */

.hosting-terms-page {
    padding: 0 !important;
    background: #f3f6fa;
    color: #29445a;
    width: 100%;
}

/* Standard Site Container Width (Matches all site pages) */
.hosting-terms-page .container {
    width: 100%;
    max-width: var(--container-width, 1280px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* --- Hero Section --- */
.hosting-terms-hero {
    padding: 62px 16px;
    background: linear-gradient(135deg, #ffffff, #edf8f5 60%, #eaf1f8);
    text-align: center;
    border-bottom: 1px solid #d7e2ea;
    width: 100%;
    box-sizing: border-box;
}

.hosting-terms-hero > div > span,
.hosting-selector-card > div > span {
    color: #118574;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.hosting-terms-hero h1 {
    margin: 9px 0 13px;
    color: #15354e;
    font-size: clamp(2rem, 4vw, 3.05rem);
}

.hosting-terms-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #62798a;
    line-height: 1.65;
}

.hosting-terms-hero > div > div {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 21px;
}

.hosting-terms-hero b {
    padding: 7px 10px;
    border: 1px solid #cfe1df;
    border-radius: 18px;
    background: #ffffff;
    color: #4c6577;
    font-size: 0.68rem;
}

/* --- Plan Selector --- */
.hosting-plan-selector {
    padding: 38px 0 24px;
}

.hosting-selector-card {
    padding: 25px;
    border: 1px solid #d7e2ea;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(15, 42, 67, 0.05);
}

.hosting-selector-card > div:first-child {
    text-align: center;
}

.hosting-selector-card h2 {
    margin: 6px 0;
    color: #183750;
}

.hosting-selector-card > div:first-child p {
    margin: 0;
    color: #6c8090;
}

.hosting-selector-card > label {
    max-width: 620px;
    display: block;
    margin: 20px auto;
    color: #344f63;
    font-size: 0.75rem;
    font-weight: 850;
}

.hosting-selector-card select {
    width: 100%;
    height: 48px;
    margin-top: 7px;
    padding: 0 13px;
    border: 1px solid #cad7e0;
    border-radius: 9px;
    background: #fbfcfd;
    color: #213e54;
}

.hosting-cost-breakdown {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
}

.hosting-cost-breakdown > div {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #dce5ea;
    border-radius: 9px;
    background: #fff;
}

.hosting-cost-breakdown span,
.hosting-cost-breakdown strong {
    display: block;
    font-size: .68rem;
    line-height: 1.35;
}

.hosting-cost-breakdown span {
    color: #687d8d;
    font-weight: 700;
}

.hosting-cost-breakdown strong {
    margin-top: 3px;
    color: #d14343;
    font-size: .79rem;
    font-weight: 850;
}

.hosting-cost-breakdown > div:first-child strong {
    color: #168f7d;
}

@media (max-width: 720px) {
    .hosting-cost-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hosting-fee-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-top: 20px;
}

.hosting-fee-summary[hidden] {
    display: none !important;
}

.hosting-fee-summary > div {
    padding: 16px;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    background: #f9fbfc;
    text-align: center;
}

.hosting-fee-summary small,
.hosting-fee-summary strong,
.hosting-fee-summary span {
    display: block;
}

.hosting-fee-summary small {
    color: #647989;
    font-size: 0.65rem;
}

.hosting-fee-summary strong {
    margin: 5px 0;
    color: #117565;
    font-size: 1.08rem;
}

.hosting-fee-summary span {
    color: #83919c;
    font-size: 0.62rem;
}

.hosting-selector-note {
    margin: 14px 0 0 !important;
    color: #748696;
    font-size: 0.67rem;
    text-align: center;
}

/* --- Contract Main Section --- */
.hosting-contract {
    padding: 25px 0 70px;
    width: 100%;
}

.hosting-contract__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-width: 0;
}

.hosting-contract__layout > * {
    min-width: 0;
}

.hosting-contract aside {
    position: sticky;
    top: 20px;
    min-width: 0;
}

.hosting-contract aside > div {
    padding: 18px;
    border: 1px solid #d7e2ea;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 42, 67, 0.03);
}

.hosting-contract aside > div > span,
.hosting-contract aside > div > strong {
    display: block;
}

.hosting-contract aside > div > span {
    color: #118574;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.hosting-contract aside > div > strong {
    margin: 4px 0 12px;
    color: #52697a;
    font-size: 0.72rem;
}

.hosting-contract aside a {
    display: flex;
    gap: 8px;
    padding: 8px 4px;
    border-top: 1px solid #e5ebef;
    color: #5d7283 !important;
    font-size: 0.68rem;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.hosting-contract aside a:hover {
    color: #168f7d !important;
}

.hosting-contract aside a b {
    color: #168f7d;
}

/* --- Document Content Container --- */
.hosting-contract__document {
    border: 1px solid #d7e2ea;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 42, 67, 0.055);
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.hosting-contract__document > header {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 28px 32px;
    border-bottom: 1px solid #dce5eb;
    background: #f1f6f8;
}

.hosting-contract__document > header small {
    color: #118574;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.hosting-contract__document > header h2 {
    margin: 5px 0;
    color: #183750;
    font-size: 1.4rem;
}

.hosting-contract__document > header p {
    margin: 0;
    color: #617687;
    font-size: 0.78rem;
    line-height: 1.7;
}

.hosting-contract__document > section {
    padding: 24px 32px;
    border-bottom: 1px solid #e2e9ee;
    scroll-margin-top: 20px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hosting-contract__document > section > header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-contract__document > section > header span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e9f4f2;
    color: #147b6e;
    font-size: 0.7rem;
    font-weight: 900;
    flex-shrink: 0;
}

.hosting-contract__document > section h2 {
    margin: 0;
    color: #244359;
    font-size: 1.05rem;
}

.hosting-contract__document > section > p {
    margin: 14px 0 0;
    color: #5f7586;
    font-size: 0.85rem;
    line-height: 1.75;
}

.hosting-deduction-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}

.hosting-deduction-flow > div {
    padding: 12px;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    background: #f9fbfc;
}

.hosting-deduction-flow b,
.hosting-deduction-flow span {
    display: block;
}

.hosting-deduction-flow b {
    color: #315067;
    font-size: 0.72rem;
}

.hosting-deduction-flow span {
    margin-top: 4px;
    color: #7b8b97;
    font-size: 0.6rem;
}

.hosting-deduction-flow i {
    color: #84949f;
    font-style: normal;
    font-weight: 900;
}

.hosting-deduction-flow .is-net {
    border-color: #b8ddd6;
    background: #eaf7f3;
}

.hosting-contract__document > footer {
    padding: 24px 32px;
    background: #f1f6f8;
}

.hosting-contract__document > footer p {
    margin: 0 0 8px;
    color: #687d8d;
    font-size: 0.75rem;
    line-height: 1.6;
}

.hosting-contract__document > footer strong {
    color: #31536a;
    font-size: 0.78rem;
}

/* --- Responsive Tablet Adjustments --- */
@media (max-width: 850px) {
    .hosting-contract__layout {
        grid-template-columns: 1fr;
    }

    .hosting-contract aside {
        position: static;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .hosting-contract aside > div {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .hosting-contract aside > div > span,
    .hosting-contract aside > div > strong {
        display: none;
    }

    .hosting-contract aside a {
        flex: 0 0 auto;
        border: 1px solid #e0e8ed;
        border-radius: 8px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .hosting-deduction-flow {
        grid-template-columns: 1fr;
    }

    .hosting-deduction-flow i {
        text-align: center;
    }
}

/* --- Responsive Mobile Layout --- */
@media (max-width: 600px) {
    .hosting-terms-hero {
        padding: 40px 16px;
    }

    .hosting-terms-page .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .hosting-contract {
        padding: 20px 0 40px;
    }

    .hosting-contract__document {
        border-radius: 12px;
    }

    .hosting-contract__document > header {
        flex-direction: column;
        padding: 20px 18px;
        gap: 12px;
    }

    .hosting-contract__document > header h2 {
        font-size: 1.2rem;
    }

    .hosting-contract__document > section {
        padding: 20px 18px;
    }

    .hosting-contract__document > section h2 {
        font-size: 0.98rem;
    }

    .hosting-contract__document > section > p {
        font-size: 0.85rem;
        line-height: 1.65;
    }

    .hosting-contract__document > footer {
        padding: 18px;
    }
}
