/* Shared styling for /terms-of-service, /privacy-policy, /refund-policy. */

.bytesglue-legal-page {
    color: #122036;
    background: #F5F8FC;
}

.bytesglue-legal-page .container {
    max-width: 1180px;
}

/* ---- meta card under the shared _SecondaryHero ---- */
.bytesglue-legal-meta {
    padding: 40px 0 0;
}
.bytesglue-legal-meta-card {
    background: #FFFFFF;
    border: 1px solid #E4EAF1;
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 18px 40px -28px rgba(18, 32, 54, 0.16);
    margin-top: -56px;
    position: relative;
    z-index: 2;
}
@media (max-width: 600px) {
    .bytesglue-legal-meta-card { padding: 22px 22px; margin-top: -36px; }
}
.bytesglue-legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: 700 11px/1 "Inter", system-ui, sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2E8BFF;
    margin-bottom: 16px;
}
.bytesglue-legal-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2E8BFF);
}
.bytesglue-legal-lead {
    font-size: clamp(15.5px, 1.15vw, 17.5px);
    line-height: 1.6;
    color: #324155;
    max-width: 68ch;
    margin: 0 0 22px;
}
.bytesglue-legal-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin: 0;
    padding: 16px 20px;
    background: rgba(46, 139, 255, 0.06);
    border: 1px solid rgba(46, 139, 255, 0.18);
    border-radius: 12px;
    width: max-content;
    max-width: 100%;
}
.bytesglue-legal-dates dt {
    font: 700 11px/1 "Inter", system-ui, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2E8BFF;
    margin-bottom: 6px;
}
.bytesglue-legal-dates dd {
    margin: 0;
    font: 600 15px/1 "Inter", system-ui, sans-serif;
    color: #122036;
}

/* ---- body layout ---- */
.bytesglue-legal-body-section {
    position: relative;
    padding: 56px 0 120px;
}
.bytesglue-legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
@media (max-width: 991px) {
    .bytesglue-legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---- table of contents ---- */
.bytesglue-legal-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    background: #FFFFFF;
    border: 1px solid #E4EAF1;
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 14px 36px -22px rgba(18, 32, 54, 0.18);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}
@media (max-width: 991px) {
    .bytesglue-legal-toc {
        position: static;
        max-height: none;
    }
}
.bytesglue-legal-toc__title {
    font: 700 11px/1 "Inter", system-ui, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8595A8;
    margin: 0 0 14px;
}
.bytesglue-legal-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px;
}
.bytesglue-legal-toc__list a {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #324155;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.bytesglue-legal-toc__list a span {
    font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace;
    letter-spacing: 0.04em;
    color: #2E8BFF;
}
.bytesglue-legal-toc__list a:hover {
    background: rgba(46, 139, 255, 0.07);
    color: #122036;
}

/* ---- content ---- */
.bytesglue-legal-content {
    max-width: 760px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #324155;
}
.bytesglue-legal-content p { margin: 0 0 18px; }
.bytesglue-legal-content a {
    color: #1E6FE0;
    text-decoration: underline;
    text-decoration-color: rgba(30, 111, 224, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s ease, color .15s ease;
}
.bytesglue-legal-content a:hover {
    color: #122036;
    text-decoration-color: #1E6FE0;
}
.bytesglue-legal-intro {
    font-size: 17.5px;
    color: #122036;
    line-height: 1.7;
    padding: 22px 24px;
    background: #FFFFFF;
    border: 1px solid #E4EAF1;
    border-left: 3px solid #2E8BFF;
    border-radius: 12px;
    margin: 0 0 28px;
}

.bytesglue-legal-content h2 {
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 700;
    color: #122036;
    margin: 56px 0 18px;
    scroll-margin-top: 100px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.bytesglue-legal-content h2:first-of-type { margin-top: 32px; }
.bytesglue-legal-content h3 {
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #122036;
    margin: 28px 0 12px;
    letter-spacing: -0.005em;
    scroll-margin-top: 100px;
}
.bytesglue-legal-num {
    font: 700 14px/1 "JetBrains Mono", ui-monospace, monospace;
    color: #2E8BFF;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(46, 139, 255, 0.10);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.bytesglue-legal-content ul {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.bytesglue-legal-content ul li {
    position: relative;
    padding-left: 26px;
    line-height: 1.6;
}
.bytesglue-legal-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(46, 139, 255, 0.12);
}
.bytesglue-legal-content ul li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2E8BFF;
}

.bytesglue-legal-content strong { color: #122036; font-weight: 600; }

/* inline DL used in privacy "Who we are" block */
.bytesglue-legal-inline-dl {
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 28px;
    background: #FFFFFF;
    border: 1px solid #E4EAF1;
    border-radius: 14px;
    padding: 22px 24px;
}
.bytesglue-legal-inline-dl div { margin: 0; }
.bytesglue-legal-inline-dl dt {
    font: 700 10.5px/1 "Inter", system-ui, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8595A8;
    margin: 0 0 6px;
}
.bytesglue-legal-inline-dl dd {
    margin: 0;
    font-size: 14.5px;
    color: #122036;
    line-height: 1.45;
}
.bytesglue-legal-inline-dl a { color: #1E6FE0; }

/* callout used in refund "How to file" block */
.bytesglue-legal-callout {
    margin: 0 0 22px;
    padding: 18px 22px;
    background: rgba(46, 139, 255, 0.06);
    border: 1px solid rgba(46, 139, 255, 0.20);
    border-radius: 12px;
}
.bytesglue-legal-callout p { margin: 0; line-height: 1.7; }

/* ---- contact/entity card (rendered by _LegalEntityCard partial) ---- */
.bytesglue-legal-card {
    margin: 18px 0 0;
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, #0F1B30 0%, #16243E 100%);
    color: #EAF1FB;
    box-shadow: 0 30px 70px -36px rgba(15, 27, 48, 0.55);
}
.bytesglue-legal-card__title {
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-size: 20px;
    color: #FFFFFF;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.bytesglue-legal-card__lead {
    margin: 0 0 18px;
    color: rgba(233, 241, 251, 0.78);
    font-size: 14.5px;
    line-height: 1.55;
}
.bytesglue-legal-card__grid {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 28px;
}
.bytesglue-legal-card__grid > div { margin: 0; }
.bytesglue-legal-card__grid dt {
    font: 700 10.5px/1 "Inter", system-ui, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6FD3F5;
    margin: 0 0 6px;
}
.bytesglue-legal-card__grid dd {
    margin: 0;
    font-size: 14.5px;
    color: #FFFFFF;
    line-height: 1.5;
}
.bytesglue-legal-card__grid dd a {
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-color: rgba(111, 211, 245, 0.6);
    text-underline-offset: 3px;
}
.bytesglue-legal-card__grid dd a:hover {
    text-decoration-color: #6FD3F5;
}

/* ---- mobile polish ---- */
@media (max-width: 600px) {
    .bytesglue-legal-body-section { padding: 36px 0 90px; }
    .bytesglue-legal-content { font-size: 15.5px; }
    .bytesglue-legal-content h2 { margin: 40px 0 14px; }
    .bytesglue-legal-content h2 .bytesglue-legal-num { font-size: 12.5px; padding: 5px 8px; }
    .bytesglue-legal-dates { gap: 24px; padding: 14px 16px; }
    .bytesglue-legal-card { padding: 22px; }
}
