/* ===== LEGAL STANDALONE PAGE ===== */

:root {
    --black: #000000;
    --white: #ffffff;
    --green: #128E51;
    --font-quicksand: 'Quicksand', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a, button { border: none; text-decoration: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

.legal-standalone body,
body.legal-standalone {
    font-family: var(--font-quicksand);
    background: #fff;
    color: var(--black);
}

.legal-standalone-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.legal-standalone-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.legal-standalone-logo {
    height: 36px;
    width: auto;
}

.legal-standalone-name {
    font-family: var(--font-quicksand);
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.3px;
}

/* ===== LEGAL HUB PAGE ===== */

.legal-hub-main {
    background: #fff;
    min-height: 60vh;
    padding: 80px 0 100px;
}

.legal-hub-title {
    font-family: var(--font-quicksand);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 40px;
}

.legal-hub-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
}

.legal-hub-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.legal-hub-card:hover {
    border-color: var(--green);
    box-shadow: 0 4px 20px rgba(18,142,81,0.08);
}

.legal-hub-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(18,142,81,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.legal-hub-card-icon svg {
    width: 24px;
    height: 24px;
}

.legal-hub-card-body {
    flex: 1;
    min-width: 0;
}

.legal-hub-card-title {
    font-family: var(--font-quicksand);
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.legal-hub-card-desc {
    font-family: var(--font-quicksand);
    font-size: 14px;
    color: rgba(0,0,0,0.5);
    line-height: 1.5;
}

.legal-hub-card-arrow {
    flex-shrink: 0;
    color: rgba(0,0,0,0.25);
    transition: color 0.2s ease, transform 0.2s ease;
}

.legal-hub-card-arrow svg {
    width: 22px;
    height: 22px;
    display: block;
}

.legal-hub-card:hover .legal-hub-card-arrow {
    color: var(--green);
    transform: translateX(3px);
}

/* ===== MAIN CONTENT ===== */

.legal-main {
    background: #fff;
    min-height: 60vh;
    padding: 32px 0 64px;
}

.legal-main .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .legal-main .container { padding: 0 40px; }
}

/* ===== FLAT SECTIONS ===== */

.legal-sections {
    max-width: 860px;
    margin: 0 auto;
}

.legal-section {
    padding: 28px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-page-title {
    font-family: var(--font-quicksand);
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 32px;
}

.legal-section:first-child { padding-top: 0; }
.legal-section:last-child { border-bottom: none; }

.legal-section-title {
    font-family: var(--font-quicksand);
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    .legal-section-title { font-size: 17px; }
}

.legal-section p {
    font-family: var(--font-quicksand);
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section strong {
    font-weight: 700;
    color: var(--black);
}

.legal-section a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-list li {
    font-family: var(--font-quicksand);
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.legal-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ===== ACCORDION (kept for possible future use) ===== */

.legal-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.legal-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    gap: 16px;
}

.legal-btn-title {
    font-family: var(--font-quicksand);
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    transition: color 0.2s ease;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .legal-btn-title { font-size: 18px; }
    .legal-btn { padding: 26px 0; }
}

.legal-btn:hover .legal-btn-title,
.legal-btn[aria-expanded="true"] .legal-btn-title {
    color: var(--green);
}

.legal-btn-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.legal-btn[aria-expanded="true"] .legal-btn-icon {
    transform: rotate(45deg);
    background: var(--green);
    color: var(--white);
}

/* ===== ACCORDION CONTENT ===== */

.legal-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.legal-content.is-open {
    max-height: 3000px;
}

.legal-content-inner {
    padding: 0 0 28px;
}

.legal-content-inner p {
    font-family: var(--font-quicksand);
    font-size: 15px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-content-inner p:last-child {
    margin-bottom: 0;
}

.legal-content-inner strong {
    font-weight: 700;
    color: var(--black);
}

.legal-content-inner a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content-inner a:hover {
    opacity: 0.8;
}

/* ===== COMPANY DATA TABLE ===== */

.legal-company-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 4px;
}

.legal-company-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    font-family: var(--font-quicksand);
    font-size: 15px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-company-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 560px) {
    .legal-company-row {
        grid-template-columns: 200px 1fr;
        gap: 12px;
        padding-bottom: 0;
        border-bottom: none;
    }
    .legal-company-table { gap: 8px; }
}

.legal-company-label {
    font-weight: 700;
    color: var(--black);
}

/* ===== WITHDRAWAL LINK BUTTON ===== */

.legal-withdrawal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 22px;
    border: 2px solid var(--green);
    border-radius: 45px;
    color: var(--green);
    font-family: var(--font-quicksand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.legal-withdrawal-link:hover {
    background: var(--green);
    color: var(--white);
    opacity: 1;
    text-decoration: none;
}

