@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Inter:wght@400;500;600&display=swap');

/* ─── Reset & Variables ──────────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand palette, sampled from the logo (logo.jpg): a vibrant pixel rainbow. */
    --magenta: #EC1188;
    --red:     #D81F2A;
    --red-dk:  #B3141B;
    --orange:  #F6821F;
    --yellow:  #FBC400;
    --lime:    #7BC043;
    --green:   #2E9E4F;
    --teal:    #08A8DD;
    --blue:    #1380CB;
    --purple:  #6E3FA3;

    /* The wordmark gradient, in logo order. */
    --brand-rainbow: linear-gradient(90deg,
        #EC1188 0%, #D81F2A 17%, #F6821F 33%, #FBC400 50%, #7BC043 66%, #08A8DD 83%, #6E3FA3 100%);

    --cream:  #F5F5F0;
    --sand:   #ECEAE2;
    --slate:  #263238;
    --ink:    #1C2429;
    --muted:  #5E6A70;
    --white:  #FFFFFF;
    --border: #E0DED8;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 40px rgba(38, 50, 56, 0.14);
    --radius: 14px;
    --radius-sm: 9px;

    /* Semantic z-index scale */
    --z-sticky: 100;
    --z-header: 200;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */

body {
    font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--slate);
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body > main {
    flex: 1;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */

.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 5px;
    background: var(--brand-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: var(--slate);
    opacity: 0.45;
    text-transform: uppercase;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
    background: #fef3f3;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--slate);
    color: #aaa;
    margin-top: 64px;
    padding: 48px 24px 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
    background: var(--brand-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: #888;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.footer-copy span {
    font-size: 12px;
    color: #6c7479;
}

.footer-note {
    font-size: 11px !important;
    color: #5a6166 !important;
    font-style: italic;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s, opacity 0.15s, border-color 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid rgba(25, 118, 210, 0.45);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.25);
}

.btn-primary:not(:disabled):hover {
    background: var(--red-dk);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--slate);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--slate);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

.btn-ghost:hover {
    color: var(--red);
}

.btn-large {
    padding: 14px 30px;
    font-size: 15px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12.5px;
}

.btn-block {
    width: 100%;
}

/* ─── App layout ─────────────────────────────────────────────────────────── */

.app {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 72px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.app-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4px;
}

.app-intro h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

.app-intro p {
    margin-top: 12px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    text-wrap: pretty;
}

/* ─── Stepper ────────────────────────────────────────────────────────────── */

.stepper {
    position: sticky;
    top: 70px;
    z-index: var(--z-sticky);
    background: rgba(245, 245, 240, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px;
    align-self: center;
}

.stepper ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.step {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 16px 6px 8px;
    border-radius: 999px;
    cursor: default;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
}

.step:not(:first-child)::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--border);
    margin-left: -8px;
    margin-right: 2px;
}

.step.is-reached {
    cursor: pointer;
}

.step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--muted);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.step.is-done .step-dot {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.step.is-current {
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
}

.step.is-current .step-dot {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ─── Step panels ────────────────────────────────────────────────────────── */

.step-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
}

.step-panel.is-open {
    animation: panelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--red);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.step-sub {
    margin-top: 3px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
    max-width: 62ch;
}

/* ─── Upload zone ────────────────────────────────────────────────────────── */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 56px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    background: linear-gradient(180deg, var(--cream), #fbfbf8);
    color: var(--muted);
}

.upload-zone:hover,
.upload-zone.drag-over,
.upload-zone:focus-visible {
    border-color: var(--red);
    background: #fef5f4;
    outline: none;
}

.upload-zone.drag-over {
    transform: scale(1.01);
}

.upload-icon {
    width: 52px;
    height: 52px;
    color: var(--red);
    margin-bottom: 14px;
}

.upload-lead {
    font-size: 16px;
    color: var(--slate);
}

.upload-lead strong {
    color: var(--red);
}

.upload-note {
    margin-top: 9px;
    font-size: 12.5px;
    color: var(--muted);
}

/* ─── Errors & hints ─────────────────────────────────────────────────────── */

.field-error,
.form-error {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--red-dk);
    background: #fdecea;
    border: 1px solid #f6c9c4;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.hint {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* ─── Frame step ─────────────────────────────────────────────────────────── */

.frame-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.crop-container {
    height: 460px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sand);
}

#crop-image {
    display: block;
    max-width: 100%;
}

.frame-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.frame-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.frame-done {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #edf7ee;
    border: 1px solid #c5e6c8;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.done-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.done-badge::before {
    content: "✓";
    font-size: 12px;
}

.frame-newimg {
    align-self: flex-start;
    padding-left: 0;
}

/* ─── Form controls ──────────────────────────────────────────────────────── */

.setting-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}

.setting-group select {
    width: 100%;
    padding: 11px 38px 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--slate);
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235E6A70'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.setting-group select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

/* ─── Design step ────────────────────────────────────────────────────────── */

.design-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 16px;
}

.design-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.18s, transform 0.18s;
}

.design-card:hover {
    border-color: #c9c6bd;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.design-card:focus-visible {
    outline: 3px solid rgba(25, 118, 210, 0.45);
    outline-offset: 2px;
}

.design-card.is-selected {
    border-color: var(--red);
    box-shadow: 0 0 0 2px var(--red), var(--shadow);
}

.design-canvas-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: pixelated;
}

.design-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s, transform 0.18s;
}

.design-check svg { width: 16px; height: 16px; }

.design-card.is-selected .design-check {
    opacity: 1;
    transform: scale(1);
}

.design-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.design-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.swatch-strip {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Fine-tune disclosure */
.tweak {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--cream);
}

.tweak > summary {
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tweak > summary::-webkit-details-marker { display: none; }

.tweak > summary::before {
    content: "+";
    font-size: 16px;
    color: var(--red);
    font-weight: 700;
    width: 14px;
}

.tweak[open] > summary::before { content: "–"; }

.tweak-body {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    padding: 4px 16px 18px;
}

.tweak-body .btn { height: 43px; }

.design-foot {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

/* ─── Order step ─────────────────────────────────────────────────────────── */

.order-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

.order-summary {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.order-summary h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 14px;
}

.summary-preview {
    border-radius: 10px;
    overflow: hidden;
    background: var(--sand);
    margin-bottom: 16px;
}

#summary-canvas {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
}

.summary-specs {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.summary-specs > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13.5px;
}

.summary-specs dt {
    color: var(--muted);
}

.summary-specs dd {
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.summary-colours-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 10px;
}

.summary-legend {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.legend-tile {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}

.legend-tile img {
    width: 18px;
    height: 18px;
    display: block;
}

.legend-name {
    flex: 1;
    font-weight: 500;
    color: var(--slate);
}

.legend-count {
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* Order form */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field .req,
.field .opt {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 999px;
}

.field .req { background: #fdecea; color: var(--red-dk); }
.field .opt { background: var(--sand); color: var(--muted); }

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder { color: #9aa3a8; }

.field input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

/* Honeypot: visually and physically removed, but still in the DOM for bots. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf-turnstile {
    min-height: 65px;
}

.form-note {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    text-align: center;
}

.form-note a {
    color: var(--red);
    font-weight: 500;
}

/* Success */
.order-success {
    text-align: center;
    padding: 24px 16px 12px;
    max-width: 460px;
    margin: 0 auto;
    animation: panelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-icon {
    width: 56px;
    height: 56px;
    color: var(--green);
    margin-bottom: 8px;
}

.order-success h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}

.order-success p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 22px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .frame-grid { grid-template-columns: 1fr; }
    .order-grid { grid-template-columns: 1fr; }
    .order-summary { order: 2; }
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-copy { text-align: left; }
    .navbar-links { gap: 4px; }
    .nav-link { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 600px) {
    .app { padding: 22px 14px 48px; gap: 16px; }
    .step-panel { padding: 22px 18px; }
    .stepper { top: 66px; padding: 6px; border-radius: 16px; overflow-x: auto; max-width: 100%; }
    .stepper ol { gap: 2px; }
    .step { padding: 5px 10px 5px 6px; }
    .step:not(:first-child)::before { width: 8px; }
    .step:not(.is-current) .step-label { display: none; }
    .tweak-body { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .crop-container { height: 360px; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .step-panel.is-open,
    .order-success { animation: none; }
}

/* ─── Legal Pages (Terms / Privacy) ─────────────────────────────────────── */

.legal-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.legal-container {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 56px;
    box-shadow: var(--shadow);
}

.legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--cream);
}

.legal-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--slate);
    margin-bottom: 8px;
}

.legal-date {
    font-size: 13px;
    color: var(--muted);
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 12px;
}

.legal-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    margin: 16px 0 8px;
}

.legal-section p {
    font-size: 14px;
    line-height: 1.75;
    color: #4f595e;
    margin-bottom: 10px;
}

.legal-section ul {
    margin: 8px 0 12px 20px;
}

.legal-section ul li {
    font-size: 14px;
    line-height: 1.75;
    color: #4f595e;
    margin-bottom: 4px;
}

.legal-section a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

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

.legal-section code {
    font-family: monospace;
    font-size: 13px;
    background: var(--cream);
    padding: 1px 6px;
    border-radius: 4px;
}

.legal-highlight {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 12px 0;
}

.legal-highlight p {
    color: #5d4037;
    margin: 0;
}

@media (max-width: 700px) {
    .legal-container {
        padding: 28px 22px;
    }
}
