/* The legal pages: the HOUSBE Master Terms of Service and each schedule shown on its own (inc/master_terms.php). Moved from terms-condition.php on 2026-10-10. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color:          #061121;
    --surface-color:     rgba(6,17,33,0.70);
    --surface-secondary: rgba(14,30,55,0.85);
    --border-color:      rgba(235,216,176,0.18);
    --primary-text:      #eaf1f7;
    --secondary-text:    #cbd5e1;
    --accent-color:      #ebd8b0;
    --gold-primary:      #ebd8b0;
    --gold-hover:        #dfc89d;
    --gold-active:       #c5ad83;
}

body {
    background-color: #061121 !important;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(43,93,153,0.15) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(235,216,176,0.10) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
    color: var(--primary-text) !important;
    font-family: 'Outfit', sans-serif !important;
    position: relative;
}

#wrapper {
    background: transparent !important;
}

#page-galaxy-bg {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.30)  1px,   transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.18)  1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(235,216,176,0.18)  1px,   transparent 1px) !important;
    background-size: 84px 84px, 126px 126px, 105px 105px;
    animation: pageGalaxyFloat 120s infinite linear;
    opacity: 0.35;
}

@keyframes pageGalaxyFloat {
    0%   { transform: translateY(0)     rotate(0deg);   }
    50%  { transform: translateY(-30px) rotate(180deg); }
    100% { transform: translateY(0)     rotate(360deg); }
}

section {
    min-height: 100vh;
    padding: 120px 20px 80px;
    position: relative;
    z-index: 1;
}

.terms-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top left, rgba(235, 216, 176, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(43, 93, 153, 0.14) 0%, transparent 55%),
        linear-gradient(160deg, rgba(14, 30, 55, 0.88) 0%, rgba(6, 17, 33, 0.80) 100%) !important;
    border: 1px solid rgba(235, 216, 176, 0.25) !important;
    border-radius: 24px;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    box-shadow:
        3px 5px 0 rgba(195, 145, 35, 0.45),
        4px 7px 8px rgba(0, 0, 0, 0.55),
        0 12px 24px rgba(0, 0, 0, 0.45),
        0 20px 40px rgba(0, 0, 0, 0.22),
        0 0 28px rgba(235, 216, 176, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 18px rgba(235, 216, 176, 0.18) !important;
    z-index: 1;
    isolation: isolate;
}

.terms-card::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid rgba(235, 216, 176, 0.13);
    border-radius: 18px;
    pointer-events: none;
    z-index: 3;
}

.card-stars {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.20) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(235, 216, 176, 0.20) 1px, transparent 1px) !important;
    background-size: 70px 70px, 105px 105px, 84px 84px;
    animation: galaxyRotate 80s infinite linear;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}

.card-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0) 100%
      );
    transform: rotate(45deg);
    animation: luxuryCardShimmer 6s infinite linear;
    pointer-events: none;
    z-index: 2;
}

.mouse-light {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(235, 216, 176, 0.15) 0%, rgba(235, 216, 176, 0) 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.terms-card:hover .mouse-light {
    opacity: 1;
}

@keyframes galaxyRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes luxuryCardShimmer {
    0% { transform: rotate(45deg) translateY(120%); }
    50% { transform: rotate(45deg) translateY(-120%); }
    100% { transform: rotate(45deg) translateY(-120%); }
}

.terms-card > *:not(.card-stars):not(.card-shimmer):not(.mouse-light) {
    position: relative;
    z-index: 5;
}

.back-nav {
    margin-bottom: 30px;
}

.btn-back-legal {
    background: rgba(6, 17, 33, 0.6) !important;
    color: #ebd8b0 !important;
    border: 1px solid rgba(235, 216, 176, 0.4) !important;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
}

.btn-back-legal::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right,
        rgba(255,255,255,0)   0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0)   100%);
    transform: skewX(-20deg);
    animation: back-shimmer 3s infinite linear;
}

@keyframes back-shimmer {
    0%   { left: -100%; }
    100% { left: 200%;  }
}

.btn-back-legal:hover {
    background: rgba(235, 216, 176, 0.12) !important;
    border-color: rgba(235, 216, 176, 0.8) !important;
    color: #ebd8b0 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 216, 176, 0.15) !important;
}

.terms-title {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #dfc89d 50%, #ebd8b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.terms-subtitle {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(235, 216, 176, 0.15);
    padding-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.terms-subtitle span {
    background: rgba(235, 216, 176, 0.08);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(235, 216, 176, 0.12);
}

.terms-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.terms-content h2::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, #ebd8b0, #c5ad83);
    border-radius: 3px;
}

.terms-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--secondary-text);
    font-size: 15px;
}

.terms-content ol, .terms-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--secondary-text);
    padding-left: 10px;
    font-size: 15px;
}

.terms-content li::marker {
    color: #ebd8b0;
    font-weight: 600;
}

.terms-content strong {
    color: #ffffff;
    font-weight: 600;
}

.contact-info {
    background: rgba(6, 17, 33, 0.5) !important;
    border: 1px solid rgba(235, 216, 176, 0.18) !important;
    padding: 25px;
    border-radius: 14px;
    margin-top: 20px;
    display: inline-block;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 8px;
    color: var(--secondary-text);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 1px solid rgba(235, 216, 176, 0.18);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(6, 17, 33, 0.4);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(235, 216, 176, 0.1);
    color: var(--secondary-text);
    font-size: 14px;
}

th {
    background: rgba(235, 216, 176, 0.05);
    color: #ffffff;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 768px) {
    section {
        padding-top: 100px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .terms-card {
        padding: 24px;
        border-radius: 16px;
    }
    .terms-title {
        font-size: 28px;
    }
    .terms-subtitle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ---- HOUSBE Master Terms of Service (inc/master_terms.php) ---- */
/* The site stylesheet keeps table cells on one line; the document's tables wrap. */
.terms-content th, .terms-content td { white-space: normal !important; overflow-wrap: anywhere; vertical-align: top; }
.terms-content table { table-layout: auto; }

.terms-content h2, .terms-content h3, .terms-content a[id] { scroll-margin-top: calc(var(--housbe-navh, 90px) + 18px); }
.terms-content h2.mt-part { display: block; font-size: 26px; margin: 64px 0 10px; padding-top: 26px; border-top: 1px solid rgba(235, 216, 176, 0.22); }
.terms-content h2.mt-part::after { display: none; }
.terms-content h2.mt-part .mt-part-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ebd8b0; }
.terms-content h3 { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: #ffffff; margin: 32px 0 12px; }
.terms-content p.mt-applies { display: inline-block; margin: 6px 0 14px; padding: 6px 12px; border-radius: 8px; background: rgba(235, 216, 176, 0.08); border: 1px solid rgba(235, 216, 176, 0.16); font-size: 14px; color: #e6dcc6; }
.terms-content p.mt-integ { font-size: 13.5px; line-height: 1.7; color: #9fb0c6; }
.terms-content p.mt-lead { font-size: 17px; color: #dbe5f0; }
.terms-content a { color: #ebd8b0; text-decoration: none; }
.terms-content a:hover, .terms-content a:focus-visible { text-decoration: underline; }
.terms-content .callout { margin: 0 0 28px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(235, 216, 176, 0.3); background: rgba(235, 216, 176, 0.07); color: #e6dcc6; font-size: 15px; line-height: 1.65; }
.terms-content .callout p { margin: 0; color: inherit; }
.mt-toc { margin: 8px 0 36px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(235, 216, 176, 0.18); background: rgba(6, 17, 33, 0.45); }
.mt-toc > p { margin: 0 0 10px !important; font-size: 13px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ebd8b0 !important; }
.mt-toc ol { list-style: none; margin: 0 !important; padding: 0 !important; }
.mt-toc > ol > li { margin: 0 !important; padding: 0 !important; border-top: 1px solid rgba(235, 216, 176, 0.1); }
.mt-toc > ol > li:first-child { border-top: 0; }
.mt-toc details > summary { display: flex; gap: 10px; align-items: baseline; padding: 9px 2px; cursor: pointer; list-style: none; color: #eaf1f7; font-size: 15px; }
.mt-toc details > summary::-webkit-details-marker { display: none; }
.mt-toc details > summary b { flex: 0 0 auto; min-width: 92px; color: #ebd8b0; font-weight: 700; }
.mt-toc details > summary a { color: #eaf1f7; }
.mt-toc details[open] > summary { color: #fff; }
.mt-toc details ol { padding: 0 0 10px 102px !important; }
.mt-toc details ol li { margin: 0 !important; padding: 3px 0 !important; font-size: 14px; line-height: 1.5; }
.mt-toc details ol li::marker { content: none; }
.mt-toc details ol a { color: #b9c6d8; }
@media (max-width: 768px) {
    .terms-content h2.mt-part { font-size: 21px; }
    .mt-toc details > summary b { min-width: 0; }
    .mt-toc details ol { padding-left: 12px !important; }
}
@media print {
    #page-galaxy-bg, .card-stars, .card-shimmer, .mouse-light, .back-nav, .mt-toc { display: none !important; }
}
