:root {
    color-scheme: dark;
    --background: #101b2b;
    --surface: #17263a;
    --text: #f3f6fb;
    --muted: #aab8c9;
    --accent: #75c8bd;
    --accent-dark: #193e42;
    --border: rgba(255,255,255,.13);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 78% 42%, #244354 0, transparent 38%),
        linear-gradient(135deg, #101b2b, #14263a 60%, #102c38);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-header {
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1160px;
    margin: auto;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .4px;
}

.brand-symbol {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 11px;
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 1px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.language-selector a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 4px;
}

.language-selector a[aria-current="true"] {
    color: var(--accent);
    font-weight: 700;
}

.language-divider {
    color: #65758a;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero {
    width: 100%;
    max-width: 1160px;
    margin: auto;
    padding: 90px 28px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

h1 {
    margin: 0 0 22px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.intro {
    max-width: 540px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: #d9e6ed;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 155px;
    padding: 14px 21px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    opacity: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.button-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.button-secondary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.button-primary {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #10252b;
}

.button-secondary {
    border: 1px solid #8496a9;
    background: transparent;
    color: var(--text);
}

.notice {
    margin-top: 17px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.world-decoration {
    min-height: 340px;
    position: relative;
    display: grid;
    place-items: center;
}

.world {
    width: 205px;
    height: 205px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(117,200,189,.6);
    background:
        radial-gradient(circle at 32% 28%, #6daea7, #285b67 43%, #172e49 75%);
    box-shadow:
        0 0 65px rgba(117,200,189,.18),
        inset -22px -20px 45px rgba(0,0,0,.35);
    color: #e6ffff;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 4px;
}

.orbit {
    position: absolute;
    width: 300px;
    height: 110px;
    border: 1px solid rgba(117,200,189,.38);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.orbit-two {
    width: 350px;
    height: 145px;
    transform: rotate(35deg);
    border-color: rgba(160,187,214,.22);
}

.world-caption {
    position: absolute;
    bottom: 12px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
}

.site-footer {
    padding: 23px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted);
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 65px 25px;
        gap: 25px;
    }

    .world-decoration {
        min-height: 270px;
    }

    .world {
        width: 165px;
        height: 165px;
    }

    .orbit {
        width: 250px;
    }

    .orbit-two {
        width: 285px;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* TerraPrims account authentication */
.tp-login-shortcut {
    text-align: center;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.tp-auth {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.tp-auth-card {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(10,25,40,.94);
    color: #eef5f7;
    box-sizing: border-box;
}

.tp-auth-brand {
    display: inline-block;
    margin-bottom: 1rem;
    color: #55d6c2;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

.tp-auth-card h1 {
    margin-top: .4rem;
    color: #fff;
}

.tp-auth-card p {
    line-height: 1.6;
}

.tp-auth-card form {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: 1.5rem;
}

.tp-auth-card label {
    margin-top: .4rem;
    font-weight: 600;
}

.tp-auth-card input {
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid #526b7b;
    border-radius: 6px;
    background: #102536;
    color: #fff;
    box-sizing: border-box;
}

.tp-auth-card input:focus {
    outline: 2px solid #55d6c2;
    outline-offset: 2px;
}

.tp-auth-submit {
    margin-top: 1rem;
    cursor: pointer;
}

.tp-auth-error {
    margin: 1rem 0;
    padding: .8rem;
    border: 1px solid #b65d68;
    border-radius: 6px;
    background: rgba(160,45,55,.18);
    color: #ffd8dc;
}

.tp-auth-back,
.tp-auth-languages {
    display: block;
    margin-top: 1.3rem;
    color: #75d9ce;
    text-align: center;
}

.tp-auth-languages {
    font-size: .9rem;
}

.tp-auth-languages a {
    color: inherit;
}

.tp-account-id {
    overflow-wrap: anywhere;
    font-size: .85rem;
}

/* TerraPrims login - layout refinement */
main.tp-auth {
    flex: 1 0 auto;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 48px 20px;
    box-sizing: border-box;
}

.tp-auth-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: clamp(24px, 5vw, 40px);
    border: 1px solid rgba(117, 200, 189, .25);
    border-radius: 18px;
    background: rgba(10, 25, 40, .96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
}

.tp-auth-brand {
    margin-bottom: 20px;
    letter-spacing: .4px;
}

.tp-auth-card h1 {
    margin: 8px 0 12px;
    font-size: clamp(27px, 5vw, 36px);
    line-height: 1.2;
    letter-spacing: -.8px;
}

.tp-auth-card .tp-auth-description {
    margin: 0;
    color: #aab8c9;
    font-size: 15px;
    line-height: 1.65;
}

.tp-auth-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

.tp-auth-card label {
    margin-top: 8px;
    color: #e8f1f5;
    font-size: 14px;
    font-weight: 600;
}

.tp-auth-card input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #40596b;
    border-radius: 8px;
    background: #102536;
    color: #fff;
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.tp-auth-card input::placeholder {
    color: #8295a6;
    opacity: 1;
}

.tp-auth-card input:focus {
    border-color: #75c8bd;
    outline: 2px solid rgba(117, 200, 189, .25);
    outline-offset: 1px;
}

.tp-auth-card .tp-auth-submit {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 49px;
    margin-top: 16px;
    padding: 13px 20px;
    border: 1px solid #75c8bd;
    border-radius: 8px;
    background: #75c8bd;
    color: #10252b;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    opacity: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.tp-auth-card .tp-auth-submit:hover {
    background: #91ded3;
    transform: translateY(-1px);
}

.tp-auth-card .tp-auth-submit:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.tp-auth-error {
    margin: 20px 0 0;
    padding: 13px 15px;
    border: 1px solid #b65d68;
    border-radius: 8px;
    background: rgba(160, 45, 55, .18);
    color: #ffd8dc;
    font-size: 14px;
    line-height: 1.5;
}

.tp-auth-blocked {
    margin-top: 22px;
    color: #ffd8dc;
    line-height: 1.6;
}

.tp-auth-back,
.tp-auth-languages {
    margin-top: 24px;
    text-align: center;
}

.tp-auth-back {
    display: block;
    color: #75d9ce;
    text-decoration: none;
}

.tp-auth-back:hover,
.tp-auth-languages a:hover {
    color: #fff;
    text-decoration: underline;
}

.tp-auth-languages {
    margin-top: 18px;
    color: #aab8c9;
    font-size: 13px;
}

.tp-auth-languages a {
    color: #75d9ce;
    text-decoration: none;
}

@media (max-width: 520px) {
    main.tp-auth {
        min-height: 100vh;
        padding: 24px 14px;
    }

    .tp-auth-card {
        padding: 25px 21px;
        border-radius: 14px;
    }
}

/* TerraPrims - private user profile */
main.tp-dashboard {
    display: block;
    width: 100%;
    min-height: 100vh;
    padding: 35px 22px 55px;
    box-sizing: border-box;
}

.tp-dashboard-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.tp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(117, 200, 189, .2);
}

.tp-dashboard-header-right {
    display: flex;
    gap: 9px;
    color: #aab8c9;
    font-size: 13px;
}

.tp-dashboard-header-right a,
.tp-dashboard-footer a {
    color: #75d9ce;
    text-decoration: none;
}

.tp-profile-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 42px 0 28px;
}

.tp-profile-eyebrow {
    color: #75c8bd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tp-profile-welcome h1 {
    margin: 10px 0;
    color: #f1f6f8;
    font-size: clamp(28px, 5vw, 38px);
}

.tp-profile-welcome p,
.tp-profile-actions p {
    color: #aab8c9;
    line-height: 1.6;
}

.tp-profile-status {
    display: inline-block;
    flex-shrink: 0;
    padding: 9px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.tp-profile-status.is-active {
    background: rgba(66, 180, 132, .15);
    color: #83dfb4;
    border: 1px solid rgba(66, 180, 132, .35);
}

.tp-profile-status.is-inactive {
    background: rgba(190, 75, 85, .15);
    color: #ffb4bc;
    border: 1px solid rgba(190, 75, 85, .35);
}

.tp-profile-card,
.tp-profile-actions {
    padding: 28px;
    border: 1px solid rgba(117, 200, 189, .2);
    border-radius: 15px;
    background: rgba(10, 25, 40, .96);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .18);
}

.tp-profile-card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(117, 200, 189, .15);
}

.tp-profile-avatar {
    display: flex;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #75c8bd;
    color: #10252b;
    font-size: 23px;
    font-weight: 800;
}

.tp-profile-card-heading h2,
.tp-profile-actions h2 {
    margin: 0 0 5px;
    color: #f1f6f8;
    font-size: 20px;
}

.tp-profile-card-heading p {
    margin: 0;
    color: #aab8c9;
    font-size: 13px;
}

.tp-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 35px;
    padding: 27px 0;
}

.tp-profile-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
}

.tp-profile-field span {
    color: #91a6b7;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.tp-profile-field strong,
.tp-profile-field code {
    overflow-wrap: anywhere;
    color: #f1f6f8;
    font-size: 15px;
    font-weight: 600;
}

.tp-profile-field code {
    font-size: 13px;
}

.tp-profile-field-wide {
    grid-column: 1 / -1;
}

.tp-profile-note {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(117, 200, 189, .15);
    color: #91a6b7;
    font-size: 12px;
    line-height: 1.6;
}

.tp-profile-actions {
    margin-top: 22px;
}

.tp-profile-actions p {
    margin-bottom: 0;
    font-size: 14px;
}

.tp-profile-alert {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #b65d68;
    border-radius: 8px;
    background: rgba(160, 45, 55, .18);
    color: #ffd8dc;
}

.tp-dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 28px;
    padding: 20px 2px;
}

.tp-logout-button {
    padding: 10px 17px;
    border: 1px solid rgba(117, 200, 189, .4);
    border-radius: 7px;
    background: transparent;
    color: #75d9ce;
    font: inherit;
    cursor: pointer;
}

.tp-logout-button:hover {
    background: rgba(117, 200, 189, .12);
}

@media (max-width: 620px) {
    main.tp-dashboard {
        padding: 22px 14px 35px;
    }

    .tp-profile-welcome {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 30px;
    }

    .tp-profile-card,
    .tp-profile-actions {
        padding: 21px;
    }

    .tp-profile-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tp-profile-field-wide {
        grid-column: auto;
    }

    .tp-dashboard-footer {
        align-items: flex-start;
    }
}

/* TerraPrims - read-only inventory */
.tp-inventory-card {
    margin-top: 10px;
}

.tp-inventory-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(117, 200, 189, .15);
}

.tp-inventory-heading h2 {
    margin: 0 0 6px;
    color: #f1f6f8;
    font-size: 21px;
    overflow-wrap: anywhere;
}

.tp-inventory-heading p {
    margin: 0;
    color: #91a6b7;
    font-size: 13px;
}

.tp-inventory-back {
    padding: 9px 13px;
    border: 1px solid rgba(117, 200, 189, .35);
    border-radius: 7px;
    color: #75d9ce;
    text-decoration: none;
    font-size: 13px;
}

.tp-inventory-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
    color: #91a6b7;
    font-size: 13px;
}

.tp-inventory-summary span {
    padding: 7px 11px;
    border-radius: 7px;
    background: rgba(117, 200, 189, .08);
}

.tp-inventory-section {
    margin-top: 20px;
}

.tp-inventory-section h3 {
    margin: 0 0 12px;
    color: #75c8bd;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.tp-inventory-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tp-inventory-folder,
.tp-inventory-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(117, 200, 189, .12);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
}

.tp-inventory-folder {
    color: #f1f6f8;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.tp-inventory-folder:hover {
    background: rgba(117, 200, 189, .09);
    border-color: rgba(117, 200, 189, .35);
}

.tp-inventory-folder-icon,
.tp-inventory-item-icon {
    flex-shrink: 0;
    font-size: 19px;
}

.tp-inventory-folder-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 600;
}

.tp-inventory-chevron {
    color: #75c8bd;
    font-size: 23px;
}

.tp-inventory-item {
    align-items: flex-start;
}

.tp-inventory-item-icon {
    color: #75c8bd;
    padding-top: 2px;
}

.tp-inventory-item-content {
    flex: 1;
    min-width: 0;
}

.tp-inventory-item-content strong {
    display: block;
    color: #f1f6f8;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.tp-inventory-item-content p {
    margin: 7px 0;
    color: #aab8c9;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tp-inventory-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin-top: 9px;
    color: #91a6b7;
    font-size: 11px;
}

.tp-inventory-empty {
    padding: 25px 0;
    color: #aab8c9;
    text-align: center;
}

@media (max-width: 620px) {
    .tp-inventory-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tp-inventory-item-meta {
        flex-direction: column;
        gap: 5px;
    }
}

.tp-inventory-open {
    display: inline-flex;
    margin-top: 10px;
    font-weight: 700;
}


/* TerraPrims - grupos y avisos, consulta de solo lectura */
.tp-dashboard-groups-link {
    margin-top: 16px;
}

.tp-groups-card {
    margin-top: 10px;
}

.tp-groups-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0;
}

.tp-groups-nav-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
    padding: 12px 15px;
    border: 1px solid rgba(117, 200, 189, .2);
    border-radius: 8px;
    color: #f1f6f8;
    background: rgba(255, 255, 255, .025);
    text-decoration: none;
}

.tp-groups-nav-item.is-selected {
    border-color: rgba(117, 200, 189, .65);
    background: rgba(117, 200, 189, .12);
}

.tp-groups-nav-item small {
    color: #91a6b7;
    font-size: 11px;
}

.tp-groups-detail {
    margin-top: 25px;
}

.tp-groups-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tp-groups-title h2 {
    margin: 7px 0 0;
    color: #f1f6f8;
    font-size: 23px;
    overflow-wrap: anywhere;
}

.tp-groups-charter {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 3px solid #75c8bd;
    border-radius: 5px;
    background: rgba(117, 200, 189, .06);
    color: #c3d0d8;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.tp-groups-grid {
    padding-top: 22px;
}

.tp-groups-section {
    margin-top: 28px;
}

.tp-groups-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #75c8bd;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.tp-groups-section h3 span {
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(117, 200, 189, .1);
    color: #c3e9e4;
    font-size: 11px;
}

.tp-groups-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.tp-groups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tp-groups-table th,
.tp-groups-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(117, 200, 189, .12);
    text-align: left;
    vertical-align: top;
}

.tp-groups-table th {
    color: #91a6b7;
    font-weight: 600;
}

.tp-groups-table td {
    color: #e2eaf0;
}

.tp-groups-table code,
.tp-profile-field code {
    overflow-wrap: anywhere;
}

.tp-groups-role-list,
.tp-groups-notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-groups-role,
.tp-groups-notice {
    padding: 15px 17px;
    border: 1px solid rgba(117, 200, 189, .14);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
}

.tp-groups-role-heading {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-groups-role-heading strong,
.tp-groups-notice h4 {
    color: #f1f6f8;
    font-size: 14px;
}

.tp-groups-role-heading span,
.tp-groups-role small,
.tp-groups-notice-meta {
    color: #91a6b7;
    font-size: 12px;
}

.tp-groups-role p,
.tp-groups-notice p {
    margin: 9px 0;
    color: #c3d0d8;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.tp-groups-notice h4 {
    margin: 0;
}

.tp-groups-notice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
}

.tp-groups-no-notices {
    padding: 18px;
    border: 1px dashed rgba(117, 200, 189, .25);
    border-radius: 8px;
    color: #aab8c9;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 620px) {
    .tp-groups-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .tp-groups-nav-item {
        flex: 1 1 100%;
    }

    .tp-groups-table {
        min-width: 540px;
    }
}


/* TerraPrims legal pages and notice banner */
.tp-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    font-size: 12px;
}

.tp-legal-links a {
    color: var(--accent);
    text-decoration: none;
}

.tp-legal-links a:hover {
    text-decoration: underline;
}

.site-footer {
    flex-wrap: wrap;
    align-items: center;
}

.site-footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 20px;
    flex: 1 1 300px;
}

.tp-legal-banner {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto 22px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(117, 200, 189, .35);
    border-radius: 10px;
    background: rgba(23, 38, 58, .92);
    color: var(--text);
}

.tp-legal-banner-copy strong {
    color: var(--accent);
    font-size: 14px;
}

.tp-legal-banner-copy p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.tp-legal-banner > a,
.tp-legal-back {
    flex-shrink: 0;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.tp-legal-banner > a:hover,
.tp-legal-back:hover {
    text-decoration: underline;
}

.tp-legal-main {
    display: block;
    width: 100%;
    padding: 45px 20px 60px;
}

.tp-legal-document {
    max-width: 850px;
    margin: 0 auto;
}

.tp-legal-eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tp-legal-document h1 {
    margin: 15px 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
}

.tp-legal-intro {
    color: var(--muted);
    line-height: 1.7;
}

.tp-legal-draft {
    display: inline-block;
    margin: 15px 0 25px;
    padding: 8px 12px;
    border: 1px solid #b88a43;
    border-radius: 6px;
    color: #f0c77e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
}

.tp-legal-section {
    margin: 25px 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.tp-legal-section h2 {
    color: var(--accent);
    font-size: 18px;
}

.tp-legal-section p {
    color: #d0d9e5;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.tp-legal-version {
    margin: 25px 0;
    color: var(--muted);
    font-size: 12px;
}

.tp-legal-document .tp-legal-back {
    display: inline-block;
    margin: 10px 0 25px;
}

.tp-dashboard-footer {
    flex-wrap: wrap;
}

.tp-dashboard-footer-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

@media (max-width: 620px) {
    .tp-legal-banner {
        align-items: flex-start;
        flex-direction: column;
        width: calc(100% - 28px);
    }

    .tp-legal-links {
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .site-footer-main {
        flex-direction: column;
        text-align: center;
    }

    .site-footer > .tp-legal-links {
        justify-content: center;
    }

    .tp-dashboard-footer-main {
        width: 100%;
    }
}
