/* GrandLiga Privacy Policy / technical long-form pages — 2026-08-21 */

.gl-policy {
    --gl-policy-navy: #19374e;
    --gl-policy-dark: #12273a;
    --gl-policy-teal: #238174;
    --gl-policy-teal-dark: #196960;
    --gl-policy-muted: #5f7080;
    --gl-policy-line: #d8e0e8;
    --gl-policy-soft: #f6f9fb;
    --gl-policy-card: #ffffff;
    box-sizing: border-box;
    padding: 120px 0 24px;
    color: var(--gl-policy-dark);
    background: var(--gl-policy-soft);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gl-policy *,
.gl-policy *::before,
.gl-policy *::after {
    box-sizing: border-box;
}

body.grandliga-privacy-page,
body.grandliga-privacy-page #wrapper,
body.grandliga-privacy-page section#link-contacts.gl-contacts {
    background: var(--gl-policy-soft, #f6f9fb);
}

body.grandliga-privacy-page section#link-contacts.gl-contacts {
    margin-top: 0 !important;
    padding-top: 18px !important;
}

.gl-policy-shell {
    width: min(1420px, calc(100% - 40px));
    margin: 0 auto;
}

.gl-policy-card {
    overflow: hidden;
    border: 1px solid #e0e7ed;
    border-radius: 26px;
    background: var(--gl-policy-card);
    box-shadow: 0 12px 34px rgba(18, 39, 58, 0.07);
}

.gl-policy-header {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 34px 30px;
    text-align: center;
}

.gl-policy-header h1 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    color: var(--gl-policy-navy);
    font-size: clamp(36px, 3vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-transform: none;
    text-wrap: balance;
}

.gl-policy-title-line {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 76px;
    height: 3px;
    margin: 20px auto 0;
    overflow: hidden;
    border-radius: 999px;
}

.gl-policy-title-line > span:first-child {
    width: 50px;
    height: 100%;
    background: var(--gl-policy-navy);
}

.gl-policy-title-line > span:last-child {
    width: 26px;
    height: 100%;
    background: var(--gl-policy-teal);
}

.gl-policy-reading {
    width: min(960px, calc(100% - 64px));
    margin: 0 auto;
    padding: 6px 0 54px;
    color: #243b4f;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.gl-policy-reading > :first-child {
    margin-top: 0 !important;
}

.gl-policy-reading p {
    margin: 0 0 21px;
}

.gl-policy-reading h2,
.gl-policy-reading h3,
.gl-policy-reading h4 {
    padding: 0;
    color: var(--gl-policy-dark);
    text-transform: none;
    letter-spacing: -0.015em;
}

.gl-policy-reading h2 {
    margin: 48px 0 16px;
    font-size: 28px;
    line-height: 1.28;
    font-weight: 760;
}

.gl-policy-reading h3 {
    margin: 34px 0 13px;
    font-size: 22px;
    line-height: 1.34;
    font-weight: 720;
}

.gl-policy-reading h4 {
    margin: 28px 0 11px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
}

.gl-policy-reading ul,
.gl-policy-reading ol {
    margin: 0 0 23px;
    padding-left: 1.45em;
}

.gl-policy-reading li {
    margin: 0 0 9px;
    padding-left: .15em;
}

.gl-policy-reading strong,
.gl-policy-reading b {
    color: #1c3448;
    font-weight: 700;
}

.gl-policy-reading a {
    color: var(--gl-policy-teal-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.gl-policy-reading a:hover {
    text-decoration-thickness: 2px;
}

.gl-policy-reading blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--gl-policy-teal);
    border-radius: 0 14px 14px 0;
    background: #f4faf9;
    color: #344a5f;
}

.gl-policy-reading table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.5;
}

.gl-policy-reading th,
.gl-policy-reading td {
    padding: 12px 14px;
    border: 1px solid #dce4ea;
    text-align: left;
    vertical-align: top;
}

.gl-policy-reading th {
    background: #f3f7f9;
    color: var(--gl-policy-dark);
    font-weight: 700;
}

/* Chinese: keep the same rhythm but use native CJK fallbacks. */
.gl-policy--cn {
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

.gl-policy--cn .gl-policy-header h1 {
    letter-spacing: 0;
    line-height: 1.28;
    font-weight: 700;
}

.gl-policy--cn .gl-policy-reading {
    line-height: 1.82;
}

.gl-policy--cn .gl-policy-reading h2,
.gl-policy--cn .gl-policy-reading h3,
.gl-policy--cn .gl-policy-reading h4 {
    letter-spacing: 0;
}

@media (max-width: 767px) {
    .gl-policy {
        padding-top: 190px;
        padding-bottom: 16px;
    }

    .gl-policy-shell {
        width: calc(100% - 20px);
    }

    .gl-policy-card {
        border-radius: 20px;
    }

    .gl-policy-header {
        padding: 27px 18px 22px;
    }

    .gl-policy-header h1 {
        font-size: 29px;
        line-height: 1.18;
        letter-spacing: -0.02em;
    }

    .gl-policy-title-line {
        width: 64px;
        margin-top: 16px;
    }

    .gl-policy-title-line > span:first-child { width: 42px; }
    .gl-policy-title-line > span:last-child { width: 22px; }

    .gl-policy-reading {
        width: calc(100% - 34px);
        padding: 4px 0 36px;
        font-size: 17px;
        line-height: 1.68;
    }

    .gl-policy-reading p {
        margin-bottom: 19px;
    }

    .gl-policy-reading h2 {
        margin: 38px 0 13px;
        font-size: 23px;
        line-height: 1.3;
    }

    .gl-policy-reading h3 {
        margin: 29px 0 11px;
        font-size: 20px;
    }

    .gl-policy-reading h4 {
        margin: 24px 0 10px;
        font-size: 18px;
    }

    .gl-policy-reading ul,
    .gl-policy-reading ol {
        padding-left: 1.3em;
    }

    .gl-policy--cn .gl-policy-header h1 {
        font-size: 28px;
        line-height: 1.35;
    }

    .gl-policy--cn .gl-policy-reading {
        font-size: 17px;
        line-height: 1.82;
    }
}

/* ======================================================================
   Branded 404 / 410 technical pages — v23
   ====================================================================== */
.gl-tech-error {
    --gl-tech-navy: #19374e;
    --gl-tech-dark: #12273a;
    --gl-tech-teal: #238174;
    --gl-tech-teal-dark: #196960;
    --gl-tech-muted: #677584;
    --gl-tech-line: #d8e0e8;
    --gl-tech-soft: #f6f9fb;
    box-sizing: border-box;
    min-height: 620px;
    padding: 120px 0 32px;
    color: var(--gl-tech-dark);
    background: var(--gl-tech-soft);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.gl-tech-error *, .gl-tech-error *::before, .gl-tech-error *::after { box-sizing: border-box; }
.gl-tech-error-shell {
    width: min(1420px, calc(100% - 40px));
    margin: 0 auto;
}
.gl-tech-error-card {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    padding: 68px 46px;
    border: 1px solid var(--gl-tech-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20,43,63,.09);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gl-tech-error-card::before,
.gl-tech-error-card::after {
    content: "";
    position: absolute;
    border: 1px dotted rgba(25,55,78,.14);
    border-radius: 50%;
    pointer-events: none;
}
.gl-tech-error-card::before { width: 280px; height: 180px; left: -90px; top: -60px; }
.gl-tech-error-card::after { width: 330px; height: 220px; right: -120px; bottom: -90px; }
.gl-tech-error-content { position: relative; z-index: 2; width: min(760px, 100%); }
.gl-tech-error-code {
    margin: 0;
    color: var(--gl-tech-navy);
    font-size: clamp(92px, 10vw, 148px);
    line-height: .9;
    font-weight: 800;
    letter-spacing: -.055em;
    opacity: .09;
}
.gl-tech-error h1 {
    margin: -18px 0 0;
    padding: 0;
    color: var(--gl-tech-navy);
    font-size: clamp(34px, 3.1vw, 46px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.025em;
    text-transform: none;
}
.gl-tech-error-title-line {
    display: flex;
    width: 72px;
    height: 3px;
    margin: 18px auto 0;
    overflow: hidden;
    border-radius: 99px;
}
.gl-tech-error-title-line span:first-child { width: 47px; background: var(--gl-tech-navy); }
.gl-tech-error-title-line span:last-child { flex: 1; background: var(--gl-tech-teal); }
.gl-tech-error-text {
    max-width: 650px;
    margin: 22px auto 0;
    color: var(--gl-tech-muted);
    font-size: 18px;
    line-height: 1.65;
}
.gl-tech-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}
.gl-tech-error-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid #cbd8df;
    border-radius: 24px;
    color: var(--gl-tech-navy);
    background: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 750;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gl-tech-error-action--primary {
    border-color: var(--gl-tech-teal);
    color: #fff;
    background: var(--gl-tech-teal);
}
.gl-tech-error-action:hover {
    transform: translateY(-1px);
    border-color: var(--gl-tech-teal);
    box-shadow: 0 8px 18px rgba(20,43,63,.09);
}
body.grandliga-technical-error-page,
body.grandliga-technical-error-page #wrapper,
body.grandliga-technical-error-page section#link-contacts.gl-contacts { background: #f6f9fb; }
body.grandliga-technical-error-page section#link-contacts.gl-contacts { margin-top: 0 !important; padding-top: 18px !important; }

@media (max-width: 767px) {
    .gl-tech-error { min-height: 0; padding: 190px 0 16px; }
    .gl-tech-error-shell { width: calc(100% - 20px); }
    .gl-tech-error-card { min-height: 390px; padding: 48px 20px 42px; border-radius: 20px; }
    .gl-tech-error-code { font-size: 92px; }
    .gl-tech-error h1 { margin-top: -11px; font-size: 29px; line-height: 1.18; }
    .gl-tech-error-text { margin-top: 18px; font-size: 16px; line-height: 1.62; }
    .gl-tech-error-actions { gap: 9px; margin-top: 25px; }
    .gl-tech-error-action { width: 100%; min-height: 50px; border-radius: 25px; font-size: 14px; }
}

/* ======================================================================
   WordPress Search / No Results — v25
   ====================================================================== */
.gl-tech-search,
.gl-tech-search * { box-sizing: border-box; }

.gl-tech-search {
    --gl-search-navy: #19374e;
    --gl-search-dark: #12273a;
    --gl-search-teal: #238174;
    --gl-search-teal-dark: #196960;
    --gl-search-muted: #677584;
    --gl-search-line: #d8e0e8;
    --gl-search-soft: #f6f9fb;
    min-height: 640px;
    padding: 120px 0 42px;
    color: var(--gl-search-dark);
    background: var(--gl-search-soft);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gl-tech-search--cn {
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

.gl-tech-search-shell {
    width: min(1420px, calc(100% - 40px));
    margin: 0 auto;
}

.gl-tech-search-panel {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 46px;
    border: 1px solid var(--gl-search-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20,43,63,.09);
}

.gl-tech-search-header {
    text-align: center;
}

.gl-tech-search-header h1 {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    color: var(--gl-search-navy);
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
    text-transform: none;
}

.gl-tech-search-title-line {
    display: flex;
    width: 68px;
    height: 3px;
    margin: 16px auto 28px;
    overflow: hidden;
    border-radius: 999px;
}
.gl-tech-search-title-line span:first-child { width: 44px; background: var(--gl-search-navy); }
.gl-tech-search-title-line span:last-child { width: 24px; background: var(--gl-search-teal); }

.gl-tech-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #cfdbe3;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20,43,63,.06);
}

.gl-tech-search-form input {
    min-width: 0;
    height: 48px;
    padding: 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gl-search-dark);
    font: inherit;
    font-size: 16px;
}

.gl-tech-search-form button {
    min-width: 132px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--gl-search-teal);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}
.gl-tech-search-form button:hover { background: var(--gl-search-teal-dark); }

.gl-tech-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.gl-tech-search-result {
    display: flex;
    min-width: 0;
    min-height: 230px;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--gl-search-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20,43,63,.055);
}

.gl-tech-search-result-type {
    margin-bottom: 10px;
    color: var(--gl-search-teal-dark);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.gl-tech-search-result h2 {
    margin: 0;
    padding: 0;
    color: var(--gl-search-navy);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 780;
    text-transform: none;
}
.gl-tech-search-result h2 a { color: inherit; text-decoration: none; }
.gl-tech-search-result h2 a:hover { color: var(--gl-search-teal-dark); }

.gl-tech-search-result p {
    margin: 14px 0 18px;
    color: #526578;
    font-size: 15px;
    line-height: 1.62;
}

.gl-tech-search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--gl-search-teal-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.gl-tech-search-result-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.gl-tech-search-empty {
    width: min(780px, 100%);
    margin: 42px auto 8px;
    padding: 34px;
    border: 1px solid #dce6eb;
    border-radius: 20px;
    background: #f7fbfa;
    text-align: center;
}
.gl-tech-search-empty h2 {
    margin: 0 0 10px;
    padding: 0;
    color: var(--gl-search-navy);
    font-size: 26px;
    line-height: 1.25;
    text-transform: none;
}
.gl-tech-search-empty p {
    margin: 0 auto;
    max-width: 640px;
    color: var(--gl-search-muted);
    font-size: 16px;
    line-height: 1.6;
}
.gl-tech-search-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.gl-tech-search-empty-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid #b9cec9;
    border-radius: 999px;
    color: var(--gl-search-teal-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.gl-tech-search-empty-actions a:hover { background: #edf8f5; }

.gl-tech-search-pagination { margin-top: 30px; }
.gl-tech-search-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gl-tech-search-pagination .page-numbers li { margin: 0; }
.gl-tech-search-pagination a,
.gl-tech-search-pagination span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e0e7;
    border-radius: 50%;
    color: var(--gl-search-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.gl-tech-search-pagination .current {
    border-color: var(--gl-search-teal);
    background: var(--gl-search-teal);
    color: #fff;
}

@media (max-width: 767px) {
    .gl-tech-search {
        padding-top: 190px;
        padding-bottom: 18px;
    }
    .gl-tech-search-shell { width: calc(100% - 20px); }
    .gl-tech-search-panel {
        padding: 25px 16px 28px;
        border-radius: 20px;
    }
    .gl-tech-search-header h1 {
        font-size: 29px;
        line-height: 1.18;
    }
    .gl-tech-search-title-line { margin: 14px auto 22px; }
    .gl-tech-search-form {
        grid-template-columns: minmax(0, 1fr) 88px;
        padding: 4px;
    }
    .gl-tech-search-form input {
        height: 46px;
        padding: 0 14px;
        font-size: 16px;
    }
    .gl-tech-search-form button {
        min-width: 0;
        height: 46px;
        padding: 0 12px;
        font-size: 12px;
    }
    .gl-tech-search-results {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 26px;
    }
    .gl-tech-search-result {
        min-height: 0;
        padding: 20px;
        border-radius: 16px;
    }
    .gl-tech-search-result h2 { font-size: 20px; }
    .gl-tech-search-result p { font-size: 15px; }
    .gl-tech-search-empty {
        margin-top: 28px;
        padding: 25px 18px;
    }
    .gl-tech-search-empty h2 { font-size: 22px; }
    .gl-tech-search-empty-actions { flex-direction: column; }
    .gl-tech-search-empty-actions a { width: 100%; }
}
