/* AppIn500 — Terms & Conditions / Privacy Policy (resources/views/legal.blade.php).
 *
 * Self-contained: this page does not load home-revamp.css. The first block
 * is copied verbatim from home-revamp.css (base + the header's button
 * styles), in the same order; everything after the "Legal pages only"
 * marker is this page's own design.
 */

/* AppIn500 home revamp
 * Naming: #homeXxxSec / .homeXxxSecInner… (camelCase)
 * JS hooks kept: .faq-item, .plan-options, .plan-option-pill, #enquiry-form, .form-status
 */

html {
  scroll-behavior: smooth;
}

body {
    background: #fff;
}

.btn-primary,
.btn-outline,
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 8.4px;
    gap: 10px;
    padding: 16px 30px;
    font-size: 15.6px;
    font-weight: 600;
    line-height: 23.4px;
    letter-spacing: 0;
    text-align: center;
    font-family: Mona Sans, sans-serif;
    text-decoration: none;
    text-transform: capitalize;
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s;
    display: inline-flex
}

.btn-primary:hover,
.btn-outline:hover,
.btn-accent:hover {
    transform: translateY(-2px)
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    border: none;
    background: #173D2C;
    color: #FFFFFF;
    padding: 16px 30px;
    font-family: Mona Sans, sans-serif;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 15.6px;
    line-height: 23.4px;
    letter-spacing: 0;
    text-align: center;
    border-radius: 8.4px;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--cs-forest-card)
}

/* html normally keeps scrollbar-gutter:stable (app.css) so the reserved
   space doesn't flicker on/off as content height changes elsewhere on the
   page (that's what stops the pinned Team section from jumping sideways
   when its pin engages). But that same reserved gutter leaves a visible
   gap down #heroLoader's right edge while it's fullscreen. Scrolling is
   already fully blocked during this state (overflow:hidden right above),
   so there's no shift risk to guard against yet — safe to drop the
   reservation only for as long as body.hero-loading is present. */

html:has(body.hero-loading) {
    overflow: hidden;
    scrollbar-gutter: auto;
}

/* ---------- Legal pages only ---------- */

.legalInner {
    width: min(1400px, 100% - 48px);
    margin: 0 auto;
}

/* ---- head: tag, title, updated line, page switch ---- */
.legalHead {
    margin: 48px 0 0 0;
}

.legalHead .legalInner {
    padding-bottom: 36px;
    border-bottom: 1px solid #E6EFD8;
}

.legalTag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 26px 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #F3FBE4;
    font-family: Mona Sans, sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .6px;
    color: #173D2C;
}

.legalTag > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9BC53D;
}

.legalHead h1 {
    font-family: Alan Sans, sans-serif;
    font-weight: 600;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: #202A24;
    margin: 0;
}

.legalHead h1 span {
    color: #527B3F;
    white-space: normal; /* app.css keeps h1>span on one line */
}

.legalMeta {
    margin: 18px 0 0 0;
    font-family: Instrument Sans, sans-serif;
    font-size: 16px;
    color: #6C756D;
}

.legalSwitch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 30px 0 0 0;
    padding: 5px;
    border-radius: 999px;
    background: #F3FBE4;
}

.legalSwitch a {
    padding: 9px 18px;
    border-radius: 999px;
    font-family: Mona Sans, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #173D2C;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.legalSwitch a:hover {
    background: #E8F3D4;
}

.legalSwitch a.is-active {
    background: #173D2C;
    color: #FFFFFF;
}

/* ---- contents + body ---- */
.legalLayout {
    display: grid;
    grid-template-columns: 260px minmax(0, 820px);
    gap: 80px;
    align-items: start;
    margin: 64px auto 150px;
}

.legalToc {
    position: sticky;
    top: 110px;
}

.legalToc p {
    margin: 0 0 14px 0;
    font-family: Mona Sans, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #55724D;
}

.legalToc ol {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
    border-left: 1px solid #E6EFD8;
    display: grid;
    gap: 10px;
}

.legalToc a {
    font-family: Instrument Sans, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #4E5A52;
    text-decoration: none;
}

.legalToc a:hover {
    color: #173D2C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legalIntro p {
    margin: 0 0 18px 0;
    font-family: Instrument Sans, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #202A24;
}

.legalSection {
    position: relative;
    padding: 36px 0 0 0;
    margin: 36px 0 0 0;
    border-top: 1px solid #EDF0EA;
    scroll-margin-top: 100px;
}

.legalNum {
    display: block;
    margin: 0 0 8px 0;
    font-family: Mona Sans, sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .6px;
    color: #9BC53D;
}

.legalSection h2,
.legalContact h2 {
    margin: 0 0 12px 0;
    font-family: Alan Sans, sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #173D2C;
}

.legalSection p {
    margin: 0;
    font-family: Instrument Sans, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #4E5A52;
}

.legalContact {
    margin: 56px 0 0 0;
    padding: 32px 36px;
    border-radius: 24px;
    background: #F3FBE4;
    scroll-margin-top: 100px;
}

.legalContact ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.legalContact li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    font-family: Instrument Sans, sans-serif;
    font-size: 18px;
}

.legalContact li span {
    min-width: 72px;
    font-family: Mona Sans, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #55724D;
}

.legalContact a {
    color: #173D2C;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
}

@media (max-width: 1100px) {
    .legalLayout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .legalHead {
        margin-top: 24px;
    }

    .legalHead .legalInner {
        padding-bottom: 28px;
    }

    .legalHead h1 {
        font-size: clamp(36px, 10vw, 48px);
    }

    /* One column: the short contents list sits above the text. */
    .legalLayout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin: 40px auto 80px;
    }

    .legalToc {
        position: static;
        padding: 20px 22px;
        border-radius: 18px;
        background: #F7FBF0;
    }

    .legalIntro p {
        font-size: 18px;
    }

    .legalSection {
        padding-top: 28px;
        margin-top: 28px;
    }

    .legalSection h2,
    .legalContact h2 {
        font-size: 24px;
    }

    .legalSection p,
    .legalContact li {
        font-size: 16px;
    }

    .legalContact {
        padding: 24px 22px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legalSwitch a {
        transition: none;
    }
}
