/* =========================================================
   Light — Inner pages, brand kit v2 (Ink / Spark)

   The legal pages, Contact and Partner With Us used to sit on
   the legacy light theme (Poppins on #FAF8FC) while the landing
   page had already moved to Ink / Spark. This sheet brings them
   onto the same surface, type scale and controls.

   It is loaded only by those views, so — exactly like home.css —
   every rule here is scoped to them by definition, including the
   body override.

   Nothing here touches page copy: the legal bodies are rendered
   straight from the backend and are styled purely by element.
   ========================================================= */

/* ---------------------------------------------------------
   Surface — identical to the landing page
   --------------------------------------------------------- */
body {
    background-color: var(--ink);
    background-image:
        radial-gradient(900px 620px at 82% -6%, rgba(255, 229, 0, 0.10), rgba(10, 10, 12, 0) 62%),
        radial-gradient(760px 620px at -8% 32%, rgba(255, 229, 0, 0.055), rgba(10, 10, 12, 0) 60%),
        radial-gradient(820px 700px at 96% 74%, rgba(166, 107, 255, 0.07), rgba(10, 10, 12, 0) 62%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-2);
    font-family: var(--brand-body);
    font-size: 15px;
}

.lc-page {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 3.5rem;
}

/* ---------------------------------------------------------
   Page header
   Matches .lc-section-title / .lc-section-sub on the landing
   page so a visitor crossing over feels no change of voice.
   --------------------------------------------------------- */
.lc-page>.header {
    max-width: 760px;
    margin: 0 auto 2.75rem;
}

/* The views carry Bootstrap's .fs-4 / .fw-bold utilities, which are
   !important, so the brand type scale has to match that weight to
   land — done here rather than by editing the views. */
.lc-page>.header .title {
    font-family: var(--brand-display);
    font-weight: 700 !important;
    font-size: 40px !important;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--text-1);
    margin-bottom: 0.85rem;
}

.lc-page>.header .description {
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.62;
    color: var(--text-3);
}

/* A spark rule under the heading, the same accent the landing
   page uses to mark a section start. */
.lc-page>.header::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: var(--spark);
    margin: 1.6rem auto 0;
}

/* ---------------------------------------------------------
   Legal prose
   Privacy Policy, Terms and UPI Terms all render backend HTML
   into .legal-content, so everything below is element-level.
   --------------------------------------------------------- */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    color: var(--text-2);
    font-family: var(--brand-body);
    font-size: 15px;
    line-height: 1.75;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
    font-family: var(--brand-display);
    color: var(--text-1);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.legal-content h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 2.5rem 0 0.9rem;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 2.25rem 0 0.75rem;
}

.legal-content h4,
.legal-content h5,
.legal-content h6 {
    font-size: 16.5px;
    font-weight: 600;
    margin: 1.75rem 0 0.6rem;
}

.legal-content p {
    margin: 0 0 1.15rem;
}

.legal-content strong,
.legal-content b {
    color: var(--text-1);
    font-weight: 600;
}

.legal-content a {
    color: var(--spark);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 229, 0, 0.35);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.legal-content a:hover,
.legal-content a:focus {
    color: var(--spark-neon);
    border-bottom-color: var(--spark-neon);
}

/* Lists get a spark marker rather than the browser bullet */
.legal-content ul,
.legal-content ol {
    margin: 0 0 1.3rem;
    padding-left: 1.35rem;
}

.legal-content li {
    margin-bottom: 0.55rem;
    padding-left: 0.2rem;
}

.legal-content ul {
    list-style: none;
    padding-left: 1.5rem;
}

.legal-content ul>li {
    position: relative;
}

.legal-content ul>li::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 0.66em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--spark);
}

.legal-content ol>li::marker {
    color: var(--spark);
    font-weight: 600;
}

.legal-content hr {
    border: 0;
    border-top: 1px solid var(--hair);
    margin: 2.25rem 0;
    opacity: 1;
}

.legal-content blockquote {
    margin: 1.5rem 0;
    padding: 0.2rem 0 0.2rem 1.15rem;
    border-left: 2px solid var(--spark);
    color: var(--text-2);
}

.legal-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--lc-radius-sm, 12px);
}

/* ---- Tables ------------------------------------------------------
   Wrapped in their own scroll container so a wide backend table
   never forces the page sideways. */
.legal-content table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--graphite);
    border: 1px solid var(--hair);
    border-radius: 16px;
    overflow: hidden;
    font-size: 14px;
}

.legal-content th,
.legal-content td {
    padding: 0.85rem 1.05rem;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid var(--hair);
    border-right: 1px solid var(--hair);
}

.legal-content th:last-child,
.legal-content td:last-child {
    border-right: 0;
}

.legal-content tr:last-child td {
    border-bottom: 0;
}

.legal-content th {
    font-family: var(--brand-display);
    font-weight: 600;
    color: var(--text-1);
    background: rgba(255, 229, 0, 0.06);
    border-bottom-color: rgba(255, 229, 0, 0.24);
}

.legal-content tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Backend HTML often ships tables at a fixed pixel width */
.lc-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------
   Forms — shared by Contact and Partner With Us
   --------------------------------------------------------- */
.lc-page .form-label,
.lc-page .form-group>label,
.lc-page label {
    font-family: var(--brand-display);
    font-weight: 500;
    font-size: 13.5px;
    color: var(--text-2);
    margin-bottom: 0.15rem;
}

.lc-page .form-control,
.lc-page .form-select,
.lc-page textarea.form-control {
    background-color: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--hair);
    border-radius: 14px;
    color: var(--text-1);
    font-family: var(--brand-body);
    font-size: 14.5px;
    padding: 0.8rem 1rem;
    box-shadow: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.lc-page .form-control::placeholder,
.lc-page textarea.form-control::placeholder {
    color: var(--text-4);
}

.lc-page .form-control:focus,
.lc-page .form-select:focus,
.lc-page textarea.form-control:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 229, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 229, 0, 0.12);
    color: var(--text-1);
}

.lc-page .form-control:disabled,
.lc-page .form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-3);
}

.lc-page textarea.form-control {
    min-height: 118px;
    resize: vertical;
}

/* Bootstrap input groups (Contact) */
.lc-page .input-group-text {
    background-color: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--hair);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    color: var(--text-3);
}

.lc-page .input-group .form-control {
    border-left: 0;
    border-radius: 0 14px 14px 0;
}

.lc-page .input-group:focus-within .input-group-text {
    border-color: rgba(255, 229, 0, 0.55);
}

.lc-page .input-group .form-control:focus {
    box-shadow: none;
}

.lc-page .form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--slate);
}

.lc-page .form-check-input:checked {
    background-color: var(--spark);
    border-color: var(--spark);
}

.lc-page .form-check-input:focus {
    border-color: rgba(255, 229, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 229, 0, 0.12);
}

/* Validation messages from jQuery Validate */
.lc-page .my-error-class {
    display: block;
    color: var(--ember);
    font-family: var(--brand-body);
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 0.3rem;
}

/* ---- Primary control, same pill as .lc-btn-solid ---------------- */
.lc-page .btn-primary,
.lc-page .submit-d2c {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: var(--spark);
    border: 1px solid var(--spark);
    color: var(--ink);
    font-family: var(--brand-display);
    font-weight: 600;
    font-size: 15px;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(255, 229, 0, 0.26);
    transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.lc-page .btn-primary:hover,
.lc-page .btn-primary:focus,
.lc-page .submit-d2c:hover,
.lc-page .submit-d2c:focus {
    background: var(--spark);
    border-color: var(--spark);
    color: var(--ink);
    box-shadow: 0 14px 40px rgba(255, 229, 0, 0.42);
}

.lc-page .btn-primary:disabled,
.lc-page .submit-d2c:disabled {
    opacity: 0.55;
    box-shadow: none;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
    .lc-page>.header .title {
        font-size: 32px !important;
    }

    .legal-content h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 21px;
    }

    .legal-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .lc-page {
        padding-bottom: 2.5rem;
    }

    .lc-page>.header {
        margin-bottom: 2rem;
    }

    .lc-page>.header .title {
        font-size: 26px !important;
    }

    .legal-content {
        font-size: 14.5px;
    }

    .legal-content h1 {
        font-size: 24px;
    }

    .legal-content h2 {
        font-size: 19px;
    }

    .legal-content h3 {
        font-size: 17px;
    }

    .legal-content th,
    .legal-content td {
        padding: 0.7rem 0.8rem;
    }
}
