/* Urban Seller - Legal documents stylesheet
   Used by privacy.html and terms.html.
   Self-contained modern theme: a clean white "card" on a light page,
   so the content stays readable regardless of the site's body background. */

/* ---- Page canvas ---- */
body.legal-page {
    background: #eef2f6 !important;
    color: #3a4654;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---- Modern top bar (overrides the legacy navbar look) ---- */
body.legal-page .navbar-fixed-top .navbar-inner {
    background: #ffffff;
    border: 0;
    box-shadow: 0 1px 10px rgba(20, 40, 60, 0.08);
    padding: 8px 0;
}

body.legal-page .navbar .brand img { height: 30px; width: auto; }

body.legal-page .navbar .nav > li > a {
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
}

body.legal-page .navbar .nav > li > a:hover { color: #f15a29; }

/* ---- The content card ---- */
.legal-wrapper {
    max-width: 920px;
    margin: 110px auto 64px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(20, 40, 60, 0.10);
    padding: 56px 64px 64px;
    color: #3a4654;
    font-size: 16px;
    line-height: 1.75;
}

/* Brand accent bar across the top of the card */
.legal-wrapper {
    border-top: 5px solid #f15a29;
}

.legal-wrapper h1 {
    font-size: 38px;
    line-height: 1.15;
    margin: 0 0 6px;
    color: #1f2d3d;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.legal-wrapper > p:first-of-type,
.legal-wrapper h1 + p {
    color: #7a8794;
    font-size: 18px;
    margin-bottom: 8px;
}

.legal-wrapper h2 {
    font-size: 23px;
    margin: 48px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7ecf1;
    color: #1f2d3d;
    font-weight: 700;
    scroll-margin-top: 100px;
}

.legal-wrapper h3 {
    font-size: 18px;
    margin: 28px 0 8px;
    color: #f15a29;
    font-weight: 700;
    scroll-margin-top: 100px;
}

.legal-wrapper p,
.legal-wrapper li { margin-bottom: 12px; }

.legal-wrapper ul,
.legal-wrapper ol { padding-left: 22px; }

.legal-wrapper a { color: #f15a29; text-decoration: none; }
.legal-wrapper a:hover { text-decoration: underline; }

/* ---- Document control / version block ---- */
.legal-meta {
    background: #f7f9fb;
    border: 1px solid #e7ecf1;
    border-radius: 8px;
    padding: 8px 24px;
    margin: 20px 0 36px;
    font-size: 14px;
}

.legal-meta table { width: 100%; border-collapse: collapse; }
.legal-meta td { padding: 7px 8px; vertical-align: top; border-bottom: 1px solid #eef2f6; }
.legal-meta tr:last-child td { border-bottom: 0; }
.legal-meta td:first-child {
    font-weight: 700;
    color: #1f2d3d;
    width: 170px;
    white-space: nowrap;
}

/* ---- Table of contents ---- */
.legal-toc {
    background: #fbfcfd;
    border: 1px solid #e7ecf1;
    border-radius: 8px;
    padding: 20px 28px;
    margin-bottom: 44px;
}

.legal-toc h2 { border: 0; margin: 0 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: #7a8794; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }

/* ---- Content tables ---- */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 26px;
    font-size: 14.5px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(20, 40, 60, 0.06);
}

.legal-table th,
.legal-table td { border: 1px solid #e7ecf1; padding: 11px 14px; text-align: left; vertical-align: top; }
.legal-table th { background: #1f2d3d; color: #fff; font-weight: 700; }
.legal-table tr:nth-child(even) td { background: #f7f9fb; }

/* ---- Callout ---- */
.legal-callout {
    background: #fff6f2;
    border: 1px solid #f6c9b3;
    border-left: 4px solid #f15a29;
    border-radius: 8px;
    padding: 16px 22px;
    margin: 20px 0;
    font-size: 15px;
}

.legal-callout ul { margin-top: 8px; margin-bottom: 0; }

.legal-back {
    display: inline-block;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .legal-wrapper { margin: 86px 16px 40px; padding: 32px 22px 40px; border-radius: 8px; }
    .legal-wrapper h1 { font-size: 30px; }
    .legal-toc ol { columns: 1; }
    .legal-meta td:first-child { width: auto; display: block; padding-bottom: 0; }
    .legal-table { display: block; overflow-x: auto; white-space: nowrap; }
}
