/*==================================================
  SENDARRO UI REDESIGN
  PART 1
==================================================*/

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

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

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;

    --text: #0f172a;
    --muted: #64748b;

    --bg: #f4f7fc;

    --card: #ffffff;

    --line: #e5e7eb;

    --success: #16a34a;

    --danger: #ef4444;

    --radius: 26px;

    --shadow:
        0 20px 60px rgba(15, 23, 42, .08);

}

html {

    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;

}

body {

    font-family: 'Poppins', sans-serif;

    background: var(--bg);

    color: var(--text);

    overflow-x: hidden;
    max-width: 100vw;

    min-height: 100vh;

    position: relative;

    display: flex;
    flex-direction: column;

}

/*==============================
Background
==============================*/

body::before {

    content: "";

    position: fixed;

    left: -260px;

    top: -260px;

    width: 700px;

    height: 700px;

    background:

        radial-gradient(circle, #dbeafe 0%, transparent 70%);

    z-index: -2;

}

body::after {

    content: "";

    position: fixed;

    right: -220px;

    bottom: -220px;

    width: 700px;

    height: 700px;

    background:

        radial-gradient(circle, #ede9fe 0%, transparent 72%);

    z-index: -2;

}

/*==============================
Navbar
==============================*/

.topbar {

    width: min(1450px, 94%);

    margin: 10px auto;

    padding: 8px 24px;

    background: white;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-radius: 20px;

    box-shadow: var(--shadow);

}

.logo {

    display: flex;

    align-items: center;

    text-decoration: none;

    font-size: 34px;

    font-weight: 800;

}

.logo-img {
    max-height: 70px;
}

.logo .send {

    color: #111827;

}

.logo .arro {

    margin-left: 8px;

    padding: 5px 14px;

    border-radius: 12px;

    background:

        linear-gradient(135deg, #2563eb, #3b82f6);

    color: white;

}

.nav-links {

    display: flex;

    gap: 36px;

}

.nav-links a {

    text-decoration: none;

    font-weight: 700;

    font-size: 15px;

    color: #475569;

    transition: .3s;

    position: relative;

}

.nav-links a:hover,
.nav-links a.active {

    color: var(--primary);

}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 3px;

    background: var(--primary);

    transition: .3s;

}

.nav-links a:hover::after,
.nav-links a.active::after {

    width: 100%;

}

/*==============================
Hero
==============================*/

.hero {
    padding: 15px 20px 10px;
    text-align: center;
}

.hero-badge {

    display: inline-block;

    padding: 10px 22px;

    border-radius: 999px;

    background: #e8f2ff;

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 16px;

}

.hero h1 {

    font-size: 56px;

    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 12px;

}

.hero h1 span {

    color: var(--primary);

}

.hero p {

    max-width: 720px;

    margin: 12px auto 0;

    font-size: 18px;

    line-height: 1.8;

    color: var(--muted);

}

/*==============================
Layout
==============================*/

.main-wrapper {

    width: min(1450px, 94%);

    margin: 0 auto;

    flex-grow: 1;

    display: grid;

    grid-template-columns:

        280px minmax(520px, 760px) 280px;

    gap: 35px;

    align-items: start;


    padding-top: 0px;
    padding-bottom: 40px;


    position: relative;

}

.card-area {

    display: flex;

    justify-content: center;

    align-items: flex-start;

}

.card {

    width: 100%;

    background: white;

    border-radius: 32px;

    padding: 26px;

    box-shadow: var(--shadow);

    border: 1px solid rgba(255, 255, 255, .4);

}

/*==============================
Tabs
==============================*/

.tabs {

    display: flex;

    justify-content: center;

    gap: 14px;

    margin-bottom: 30px;

}

.tab-btn {

    height: 54px;

    min-width: 170px;

    border: none;

    border-radius: 999px;

    cursor: pointer;

    font-size: 16px;

    font-weight: 700;

    background: #eef2ff;

    color: #64748b;

    transition: .3s;

}

.tab-btn.active {

    background:

        linear-gradient(135deg,
            #2563eb,
            #3b82f6);

    color: white;

    box-shadow:

        0 12px 30px rgba(37, 99, 235, .30);

}

.tab-btn:hover {

    transform: translateY(-2px);

}

/*==============================
Screen Handling
==============================*/

.screen {

    display: none;

    width: 100%;

    animation: fade .3s ease;

}

.screen.active {

    display: block;

}

@keyframes fade {

    from {

        opacity: 0;

        transform: translateY(12px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

/*==============================
Buttons
==============================*/

button {

    font-family: inherit;

}

.primary-btn {

    width: 100%;

    height: 58px;

    margin-top: 25px;

    border: none;

    border-radius: 18px;

    cursor: pointer;

    font-size: 17px;

    font-weight: 700;

    color: white;

    background:

        linear-gradient(135deg,
            #2563eb,
            #3b82f6);

    transition: .3s;

}

.primary-btn:hover {

    transform: translateY(-2px);

    box-shadow:

        0 18px 40px rgba(37, 99, 235, .30);

}

.primary-btn:disabled,
.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-btn {

    width: 100%;

    height: 56px;

    margin-top: 20px;

    border: none;

    border-radius: 18px;

    cursor: pointer;

    font-size: 16px;

    font-weight: 700;

    background: #eef2ff;

    color: #334155;

    transition: .3s;

}

.secondary-btn:hover {

    background: #dbeafe;

}

.ghost-btn {

    width: 100%;

    height: 56px;

    margin-top: 18px;

    border: none;

    border-radius: 18px;

    cursor: pointer;

    font-size: 16px;

    font-weight: 700;

    background: white;

    border: 2px solid #dbeafe;

    transition: .3s;

}

.ghost-btn:hover {

    background: #eef6ff;

    border-color: #2563eb;

}

/*==================================================
  PART 2
  Upload Card + Send Screen
==================================================*/

/***********************
Upload Header
************************/

.upload-card {
    width: 100%;
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.upload-header p {
    max-width: 520px;
    margin: auto;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

/***********************
Drop Zone
************************/

.drop-zone {

    position: relative;

    border: 3px dashed #93c5fd;

    border-radius: 28px;

    background: #fbfdff;

    padding: 60px 30px;

    text-align: center;

    cursor: pointer;

    transition: .35s;

    overflow: hidden;

}

.drop-zone::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(135deg,
            rgba(37, 99, 235, .03),
            rgba(124, 58, 237, .04));

    opacity: 0;

    transition: .3s;

}

.drop-zone:hover::before {

    opacity: 1;

}

.drop-zone:hover {

    border-color: #2563eb;

    transform: translateY(-4px);

    box-shadow:

        0 20px 45px rgba(37, 99, 235, .12);

}

.drop-zone.dragover {

    border-color: #2563eb;

    background: #eef6ff;

}

/* Global Drag Overlay */
.drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drag-overlay.active {
    opacity: 1;
}

.drag-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.drag-overlay.active .drag-overlay-content {
    transform: translateY(0);
}

.drag-overlay h2 {
    font-size: 38px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .drag-overlay h2 {
        font-size: 26px;
    }
}

/***********************
Cloud Icon
************************/

.upload-icon {

    width: 90px;

    height: 90px;

    margin: auto;

    margin-bottom: 25px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 44px;

    color: white;

    background:

        linear-gradient(135deg,
            #2563eb,
            #3b82f6);

    box-shadow:

        0 15px 35px rgba(37, 99, 235, .30);

}

/***********************
Drop Text
************************/

.drop-zone h3 {

    font-size: 30px;

    font-weight: 800;

    margin-bottom: 10px;

    color: #111827;

}

.drop-zone p {

    color: #64748b;

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 25px;

}

/***********************
Browse Button
************************/

.browse-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 15px 34px;

    border-radius: 999px;

    color: white;

    font-size: 15px;

    font-weight: 700;

    background:

        linear-gradient(135deg,
            #2563eb,
            #3b82f6);

    box-shadow:

        0 10px 28px rgba(37, 99, 235, .25);

}

/***********************
Hidden Input
************************/

#fileInput {

    display: none;

}

/***********************
Messages
************************/

.message {

    margin-top: 18px;

    text-align: center;

    min-height: 24px;

    font-size: 14px;

    font-weight: 600;

}

.message.error {

    color: #dc2626;

}

.message.success {

    color: #16a34a;

}

/***********************
File List
************************/

.file-list {

    margin-top: 25px;

}

.file-list.scrollable {

    max-height: 260px;

    overflow-y: auto;

    padding-right: 8px;

}

/***********************
File Item
************************/

.file-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 18px;

    margin-bottom: 14px;

    border-radius: 18px;

    background: white;

    border: 1px solid #edf2f7;

    box-shadow:

        0 8px 20px rgba(15, 23, 42, .04);

}

.file-item:hover {

    border-color: #bfdbfe;

}

/***********************
File Name
************************/

.file-name {

    flex: 1;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-weight: 600;

    color: #0f172a;

}

/***********************
File Size
************************/

.file-size {

    color: #64748b;

    font-size: 14px;

}

/***********************
Remove Button
************************/

.remove-file {

    width: 34px;

    height: 34px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    background: #fee2e2;

    color: #dc2626;

    transition: .25s;

}

.remove-file:hover {

    background: #dc2626;

    color: white;

}

/***********************
Summary
************************/

.file-summary {

    display: flex;

    justify-content: space-between;

    margin-top: 18px;

    padding: 16px 18px;

    border-radius: 18px;

    background: #eef6ff;

    font-weight: 700;

    color: #2563eb;

}

/***********************
Scrollbar
************************/

.file-list::-webkit-scrollbar {

    width: 8px;

}

.file-list::-webkit-scrollbar-thumb {

    background: #cbd5e1;

    border-radius: 20px;

}

.file-list::-webkit-scrollbar-thumb:hover {

    background: #94a3b8;

}

/*==================================================
  PART 3
  Uploading + Waiting Screen
==================================================*/

/***********************
Status Titles
************************/

.status-title,
.waiting-label {

    text-align: center;

    font-size: 30px;

    font-weight: 800;

    color: #0f172a;

    margin-bottom: 28px;

    line-height: 1.4;

}

/***********************
Preview Card
************************/

.transfer-preview {

    width: 100%;

    background: #f8fbff;

    border: 2px solid #dbeafe;

    border-radius: 26px;

    padding: 28px;

    margin-bottom: 30px;

}

.preview-placeholder {

    width: 140px;

    height: 140px;

    margin: auto;

    border-radius: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 42px;

    font-weight: 800;

    color: white;

    background:

        linear-gradient(135deg,
            #2563eb,
            #3b82f6);

    box-shadow:

        0 18px 40px rgba(37, 99, 235, .30);

}

/***********************
Progress
************************/

.progress-bar-wrap {

    width: 100%;

    height: 16px;

    background: #dbeafe;

    border-radius: 50px;

    overflow: hidden;

    margin-top: 25px;

}

.progress-bar-fill {

    width: 0;

    height: 100%;

    border-radius: 50px;

    background:

        linear-gradient(90deg,
            #2563eb,
            #60a5fa);

    transition: width .35s;

}

.progress-bar-fill.orange {

    background:

        linear-gradient(90deg,
            #f59e0b,
            #fbbf24);

}

.progress-bar-fill.complete {

    background:

        linear-gradient(90deg,
            #16a34a,
            #22c55e);

}

.progress-bar-fill.failed {

    background:

        linear-gradient(90deg,
            #dc2626,
            #ef4444);

}

/***********************
Progress Info
************************/

.progress-info {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 12px;

    color: #64748b;

    font-weight: 600;

    font-size: 14px;

}

/***********************
Sender Code
************************/

.code-display {

    display: flex;

    justify-content: center;

    gap: 14px;

    margin: 35px 0;

}

.code-digit {

    width: 62px;

    height: 70px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 18px;

    background: #eef6ff;

    border: 2px solid #bfdbfe;

    color: #2563eb;

    font-size: 32px;

    font-weight: 800;

}

/***********************
Download Watch
************************/

.download-watch {

    margin-top: 30px;

    padding: 22px;

    border-radius: 24px;

    background: white;

    border: 1px solid #e5e7eb;

    box-shadow:

        0 12px 30px rgba(15, 23, 42, .05);

}

.watch-head {

    display: flex;

    justify-content: space-between;

    margin-bottom: 18px;

    font-weight: 700;

    color: #334155;

}

.download-watch.complete {

    border-color: #16a34a;

    background: #f0fdf4;

}

.download-watch.complete .watch-head {

    color: #16a34a;

}

.download-watch.failed {

    border-color: #ef4444;

    background: #fef2f2;

}

.download-watch.failed .watch-head {

    color: #dc2626;

}

/***********************
Waiting File List
************************/

#uploadedFileList {

    margin-top: 25px;

}

#uploadedFileList .file-item {

    background: #f8fbff;

}

/***********************
Waiting Button
************************/

#newSendBtn {

    margin-top: 30px;

}

/***********************
Animation
************************/

@keyframes pulseUpload {

    0% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.05);

    }

    100% {

        transform: scale(1);

    }

}

.preview-placeholder {

    animation: pulseUpload 2.5s infinite;

}

/*==================================================
  PART 4
  Receive + Receiving + Complete
==================================================*/

/************************
Receive Title
************************/

.receive-label {

    text-align: center;

    font-size: 30px;

    font-weight: 800;

    margin-bottom: 30px;

    color: #0f172a;

}

/************************
Code Inputs
************************/

.code-inputs {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin: 35px 0;

    flex-wrap: nowrap;

}

.code-input-box {

    width: 62px;

    height: 72px;

    border-radius: 18px;

    border: 2px solid #dbeafe;

    background: #fff;

    color: #2563eb;

    font-size: 30px;

    font-weight: 800;

    text-align: center;

    outline: none;

    transition: .25s;

}

.code-input-box:focus {

    border-color: #2563eb;

    box-shadow: 0 0 0 6px rgba(37, 99, 235, .12);

}

.code-input-box:hover {

    border-color: #60a5fa;

}

.code-separator {

    font-size: 32px;

    color: #94a3b8;

    font-weight: 700;

}

/************************
Receive Button
************************/

#btnDownload {

    margin-top: 20px;

}

/************************
Receiving Screen
************************/

#screen-receiving {

    text-align: center;

}

#receiverFileList {

    margin-bottom: 25px;

}

#receivePreview {

    animation: downloadPulse 2s infinite;

}

@keyframes downloadPulse {

    0% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.04);

    }

    100% {

        transform: scale(1);

    }

}

/************************
Done Screen
************************/

.done-card {

    text-align: center;

    padding: 20px 0;

}

.done-mark {

    width: 110px;

    height: 110px;

    margin: 0 auto 25px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 48px;

    color: white;

    background:

        linear-gradient(135deg,
            #16a34a,
            #22c55e);

    box-shadow:

        0 20px 45px rgba(22, 163, 74, .25);

}

.done-card h2 {

    font-size: 36px;

    font-weight: 800;

    color: #0f172a;

    margin-bottom: 15px;

}

.done-card p {

    color: #64748b;

    font-size: 17px;

    line-height: 1.8;

    max-width: 500px;

    margin: auto;

}

#receiveAnotherBtn {

    margin-top: 35px;

}

/************************
Compact Lists
************************/

.file-list.compact {

    margin-top: 20px;

}

.file-list.compact .file-item {

    padding: 14px 18px;

}

/************************
Success Animation
************************/

@keyframes successPop {

    0% {

        opacity: 0;

        transform: scale(.75);

    }

    70% {

        transform: scale(1.08);

    }

    100% {

        opacity: 1;

        transform: scale(1);

    }

}

.done-mark {

    animation: successPop .6s ease;

}

/************************
Message Box
************************/

#receiveMessage {

    margin-top: 15px;

    font-size: 15px;

    font-weight: 600;

    text-align: center;

    min-height: 24px;

}

/************************
Responsive Receive
************************/

@media(max-width:768px) {

    .code-inputs {

        gap: 4px;

    }

    .code-input-box {

        width: 36px;

        height: 50px;

        font-size: 20px;

    }

    .code-separator {

        font-size: 20px;

    }

    .done-mark {

        width: 85px;

        height: 85px;

        font-size: 36px;

    }

    .done-card h2 {

        font-size: 28px;

    }

}

/*==================================================
  PART 5
  Sidebar + Footer + Responsive + Final Polish
==================================================*/

/************************
Floating Circles
************************/

.floating-circle {

    position: absolute;

    border-radius: 50%;

    z-index: -1;

    opacity: .45;

    filter: blur(3px);

}

.circle1 {

    width: 260px;

    height: 260px;

    left: -120px;

    top: 180px;

    background: #bfdbfe;

}

.circle2 {

    width: 340px;

    height: 340px;

    right: -120px;

    top: 260px;

    background: #ddd6fe;

}

.circle3 {

    width: 180px;

    height: 180px;

    left: 50%;

    bottom: 60px;

    transform: translateX(-50%);

    background: #bfdbfe;

}

/************************
Side Panels
************************/

.panel-strip {

    display: flex;

    justify-content: center;

    align-items: flex-start;

}

.ad-card {

    width: 100%;

    max-width: 280px;

    padding: 26px;

    border-radius: 30px;

    background: white;

    box-shadow:

        0 20px 50px rgba(15, 23, 42, .08);

    position: sticky;

    top: 120px;

    overflow: hidden;

}

.ad-card::before {

    content: "";

    position: absolute;

    right: -70px;

    top: -70px;

    width: 180px;

    height: 180px;

    background:

        radial-gradient(circle, #dbeafe, transparent);

    opacity: .45;

}

.ad-title {

    font-size: 32px;

    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 18px;

    color: #111827;

}

.ad-card p {

    font-size: 15px;

    line-height: 1.8;

    color: #64748b;

    margin-bottom: 25px;

}

.ad-card ul {

    list-style: none;

    margin: 25px 0;

}

.ad-card li {

    padding: 10px 0;

    font-weight: 600;

    color: #334155;

    border-bottom: 1px solid #eef2f7;

}

.ad-card li:last-child {

    border-bottom: none;

}

.ad-card a {

    display: flex;

    justify-content: center;

    align-items: center;

    height: 54px;

    border-radius: 50px;

    background:

        linear-gradient(135deg, #2563eb, #3b82f6);

    color: white;

    font-weight: 700;

    text-decoration: none;

    transition: .3s;

}

.ad-card a:hover {

    transform: translateY(-3px);

    box-shadow:

        0 15px 35px rgba(37, 99, 235, .25);

}

/************************
Purple Card
************************/

.ad-card.purple {

    background:

        linear-gradient(180deg,
            #5b5cf0,
            #7c3aed);

    color: white;

}

.ad-card.purple::before {

    background:

        radial-gradient(circle, #ffffff55, transparent);

}

.ad-card.purple h3 {

    font-size: 34px;

    line-height: 1.2;

    margin-bottom: 22px;

    font-weight: 800;

}

.ad-card.purple p {

    color: #ece8ff;

}

.ad-card.purple li {

    color: white;

    border-bottom: 1px solid rgba(255, 255, 255, .15);

}

.ad-card.purple a {

    background: white;

    color: #5b5cf0;

}

.shield {

    width: 110px;

    height: 110px;

    margin: auto auto 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .15);

    font-size: 55px;

}

/************************
Footer
************************/

footer {

    margin-top: 80px;

    padding: 30px 6%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: white;

    border-top: 1px solid #eef2f7;

}

footer a {

    text-decoration: none;

    margin-right: 28px;

    color: #64748b;

    font-weight: 600;

    transition: .3s;

}

footer a:hover {

    color: #2563eb;

}

.footer-right {

    font-weight: 700;

    color: #94a3b8;

}

/************************
Hover Effects
************************/

.card:hover {

    transform: translateY(-4px);

    transition: .35s;

}

.primary-btn:active,

.secondary-btn:active {

    transform: scale(.98);

}

.ad-card:hover {

    transform: translateY(-6px);

    transition: .35s;

}

/************************
Tablet
************************/

@media(max-width:1200px) {

    .main-wrapper {

        grid-template-columns: 1fr;

    }

    .panel-strip {

        order: 2;

    }

    .ad-card {

        max-width: 800px;

        position: relative;

        top: auto;

        margin: auto;

    }

    .card {

        max-width: 900px;

        margin: auto;

    }

}

/************************
Mobile
************************/

@media(max-width:768px) {



    .hero {

        padding: 45px 20px;

    }

    .hero h1 {

        font-size: 42px;

    }

    .hero p {

        font-size: 15px;

    }

    .card {

        padding: 24px;

        border-radius: 24px;

    }

    .tabs {

        flex-direction: row;

        align-items: center;

    }

    .tab-btn {

        width: 100%;

        max-width: 320px;

    }

    .ad-card {

        padding: 28px;

    }

    footer {

        flex-direction: column;

        gap: 15px;

        text-align: center;

    }

}

/************************
Small Phones
************************/

@media(max-width:480px) {

    .hero h1 {

        font-size: 34px;

    }

    .hero-badge {

        font-size: 12px;

        padding: 8px 16px;

    }

    .logo {

        font-size: 26px;

    }

    .main-wrapper {

        width: 95%;

    }

    .card {

        padding: 18px;

    }

    .ad-title {

        font-size: 28px;

    }

    .ad-card.purple h3 {

        font-size: 28px;

    }

}

/************************
Large Screens
************************/

@media(min-width:1600px) {

    .main-wrapper {

        max-width: 1700px;

        grid-template-columns:

            300px 760px 300px;

    }

    .hero h1 {

        font-size: 74px;

    }

}

/************************
Scrollbar
************************/

::-webkit-scrollbar {

    width: 10px;

}

::-webkit-scrollbar-thumb {

    background: #cbd5e1;

    border-radius: 30px;

}

::-webkit-scrollbar-thumb:hover {

    background: #94a3b8;

}

@media (min-width:1024px) {

    .hero {

        padding: 20px 20px 10px;

    }

    .hero h1 {

        font-size: 52px;

    }

    .main-wrapper {

        margin-top: 5px;

    }

}

/* ==========================
   Mobile Layout
========================== */

@media (max-width:768px) {

    .main-wrapper {

        display: flex;

        flex-direction: column;

        align-items: center;

        width: 100%;

        max-width: 100%;

        padding: 10px 15px;

        gap: 15px;

    }

    .topbar {
        padding: 8px 15px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .logo img {
        max-height: 45px !important;
    }

    .hero {
        padding: 10px 15px 5px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .hero-badge {
        margin-bottom: 12px;
        padding: 6px 16px;
        font-size: 12px;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.5;
        margin: 5px auto 0;
    }

    /* Hero stays on top */

    /* Top Advertisement */
    .left-strip {

        order: 1;

        width: 100%;

        display: none !important;

    }

    /* Main Card */
    .card-area {

        order: 2;

        width: 100%;

        display: flex;

        justify-content: center;

    }

    .card {

        width: 100%;

        max-width: 100%;

        padding: 22px;

    }

    /* Bottom Advertisement */
    .right-strip {

        order: 3;

        width: 100%;

        display: none !important;

    }

    /* Ad Cards */

    .ad-card {

        width: 100%;

        max-width: 380px;

        position: static;

        margin: 0 auto;

    }

    /* Footer */

    footer {

        flex-direction: row;

        justify-content: space-between;

        align-items: center;

        padding: 20px 10px;

        gap: 5px;

    }

    footer a {
        font-size: 11px;
        margin-right: 10px;
    }

    .footer-right {
        font-size: 12px;
    }

    .ad-card {

        padding: 20px;

        border-radius: 20px;

    }

    .ad-title {

        font-size: 26px;

    }

    .ad-card p {

        font-size: 14px;

    }

    .ad-card ul {

        margin: 15px 0;

    }

    .ad-card li {

        padding: 8px 0;

    }

    .shield {

        width: 80px;

        height: 80px;

        font-size: 40px;

    }

    .tabs {
        gap: 8px;
    }

    .tab-btn {
        min-width: 0;
        flex: 1;
        font-size: 14px;
        height: 48px;
    }

    .upload-header {
        margin-bottom: 20px;
    }

    .upload-header h2 {
        font-size: clamp(18px, 6vw, 26px);
        white-space: nowrap;
    }

    .upload-header p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .drop-zone {
        padding: 25px 15px;
    }

    .upload-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
        margin-bottom: 15px;
    }

    .drop-zone h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .drop-zone p {
        margin-bottom: 15px;
    }

    .browse-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

}

/* Homepage content and support pages */
.content-sections,
.support-content {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.content-sections {
    padding: 10px 0 0;
}

.content-section {
    padding: 58px 0;
    border-top: 1px solid rgba(100, 116, 139, .18);
    scroll-margin-top: 24px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 26px;
}

.section-kicker {
    margin-bottom: 9px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.section-heading h2,
.closing-cta h2 {
    color: var(--text);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.intro-section {
    display: grid;
    grid-template-columns: minmax(240px, .85fr) minmax(300px, 1.15fr);
    gap: 50px;
    align-items: start;
}

.intro-section .section-heading {
    margin: 0;
}

.intro-section>p,
.security-copy p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.steps-grid,
.feature-grid,
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.steps-panel,
.feature-grid article {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
}

.steps-panel h3,
.feature-grid h3 {
    margin-bottom: 18px;
    font-size: 19px;
}

.steps-panel ol {
    display: grid;
    gap: 17px;
    list-style: none;
}

.steps-panel li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    align-items: start;
}

.steps-panel li>span,
.feature-mark {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.steps-panel li strong {
    font-size: 14px;
}

.steps-panel li p,
.feature-grid p,
.use-cases-grid span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.feature-grid article {
    min-height: 154px;
}

.feature-grid h3 {
    margin: 10px 0 7px;
}

.security-section {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(300px, 1.2fr);
    gap: 48px;
}

.security-section .section-heading {
    margin: 0;
}

.security-copy p+p {
    margin-top: 14px;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.use-cases-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

.use-cases-grid p {
    padding: 20px 17px 18px 0;
    border-bottom: 1px solid var(--line);
}

.use-cases-grid strong,
.use-cases-grid span {
    display: block;
}

.use-cases-grid strong {
    font-size: 14px;
}

.spec-list {
    margin: 0;
    border-top: 1px solid var(--line);
}

.spec-list>div {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) 1.45fr;
    gap: 25px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.spec-list dt {
    font-size: 14px;
    font-weight: 700;
}

.spec-list dd {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.faq-list details p {
    max-width: 850px;
    padding: 11px 25px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.closing-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 10px 0 55px;
    padding: 30px;
    border-radius: 8px;
    background: #e8f2ff;
}

.closing-cta h2 {
    font-size: 28px;
}

.closing-cta>div:first-child>p:last-child {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.cta-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cta-actions a+a {
    background: white;
    color: var(--primary-dark);
}

footer {
    display: block;
    margin-top: 25px;
    padding: 34px max(4%, calc((100% - 1120px) / 2));
}

.footer-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 26px;
}

.footer-groups h2 {
    margin-bottom: 11px;
    color: var(--text);
    font-size: 13px;
}

.footer-groups a {
    display: block;
    width: fit-content;
    margin: 7px 0 0;
    font-size: 13px;
    font-weight: 500;
}

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

.footer-bottom .footer-brand {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.support-page {
    min-height: 100vh;
}

.support-content {
    flex: 1;
    min-height: 48vh;
    padding: 76px 0 100px;
}

.support-content h1 {
    margin-bottom: 25px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.content-placeholder {
    max-width: 780px;
    padding: 23px;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    background: white;
}

.content-placeholder strong {
    font-size: 15px;
}

.content-placeholder p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 768px) {

    .content-sections,
    .support-content {
        width: min(100% - 32px, 600px);
    }

    .content-section {
        padding: 39px 0;
    }

    .intro-section,
    .security-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .steps-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .use-cases-grid p:nth-child(odd) {
        padding-right: 15px;
    }

    .use-cases-grid p:nth-child(even) {
        padding-left: 15px;
        border-left: 1px solid var(--line);
    }

    .closing-cta {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 35px;
        padding: 22px;
    }

    .footer-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .support-content {
        min-height: 42vh;
        padding: 48px 0 70px;
    }
}

@media (max-width: 480px) {
    .topbar .nav-links {
        gap: 9px;
    }

    .topbar .nav-links a {
        font-size: 10px;
    }

    .spec-list>div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions a {
        flex: 1;
        padding: 0 10px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

.about-page-content,
.contact-page-content,
.faq-page-content {
    width: min(1120px, 92%);
    min-height: 0;
    padding: 38px 0 70px;
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .62fr);
    align-items: center;
    gap: 45px;
    padding: 28px 0 42px;
}

.support-hero h1 {
    margin: 0 0 13px;
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1.08;
}

.support-hero>div:first-child>p:not(.section-kicker),
.contact-hero>p:not(.section-kicker) {
    max-width: 680px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.hero-tagline {
    margin-bottom: 8px;
    color: var(--text) !important;
    font-size: 19px !important;
    font-weight: 700;
    line-height: 1.4 !important;
}

.support-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.support-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font: 700 14px 'Poppins', sans-serif;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.support-button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.support-button:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.support-button.secondary {
    background: #fff;
    color: var(--primary-dark);
}

.support-button.secondary:hover {
    background: #eff6ff;
}

.about-hero-note {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid #d8e5f3;
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
}

.hero-note-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.about-hero-note strong {
    max-width: 270px;
    font-size: 22px;
    line-height: 1.35;
}

.about-hero-note>span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.about-section {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    gap: 45px;
    padding: 34px 0;
    border-top: 1px solid rgba(100, 116, 139, .18);
}

.support-section-heading h2,
.about-purpose h2,
.about-experience h2,
.contact-guidance h2 {
    margin: 0;
    color: var(--text);
    font-size: 27px;
    line-height: 1.25;
}

.about-section>div:nth-child(2)>p,
.about-audience>p,
.about-purpose>p:last-child,
.about-experience>div>p:last-child {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.about-section>div:nth-child(2)>p+p {
    margin-top: 13px;
}

.about-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-service-grid article {
    min-height: 142px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .8);
}

.about-service-grid article>span,
.contact-option-mark {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.about-service-grid h3 {
    margin: 9px 0 5px;
    font-size: 15px;
}

.about-service-grid p,
.principle-list p,
.contact-options p,
.contact-guidance li,
.self-service p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.about-purpose {
    margin: 8px 0;
    padding: 27px 30px;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    background: #eaf3ff;
}

.about-purpose h2 {
    max-width: 580px;
    margin-bottom: 10px;
}

.about-purpose>p:last-child {
    max-width: 850px;
}

.principle-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 24px;
}

.principle-list article {
    padding-top: 10px;
    border-top: 2px solid #c8dcf6;
}

.principle-list strong {
    font-size: 14px;
}

.principle-list p {
    margin-top: 4px;
}

.about-experience {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    margin-top: 20px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.about-experience>div {
    max-width: 530px;
}

.about-experience>div>p:last-child {
    margin-top: 9px;
}

.about-experience ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    list-style: none;
}

.about-experience li {
    padding: 8px 10px;
    border-radius: 4px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.about-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 27px;
    padding: 22px 25px;
    border-radius: 8px;
    background: #0f2d4f;
}

.about-cta h2 {
    color: #fff;
    font-size: 24px;
}

.about-cta>div:first-child>p:last-child {
    margin-top: 7px;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.6;
}

.about-cta .section-kicker {
    color: #b8d8ff;
}

.contact-page-content {
    padding-bottom: 65px;
}

.contact-hero {
    display: block;
    max-width: 760px;
    padding-top: 28px;
    padding-bottom: 23px;
}

.contact-hero h1 {
    margin-bottom: 10px;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 34px;
}

.contact-options article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
}

.contact-options h2 {
    margin: 8px 0 5px;
    font-size: 15px;
}

.contact-options a {
    color: var(--primary-dark);
    font-weight: 700;
    text-underline-offset: 3px;
}

.contact-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(255px, .75fr);
    align-items: start;
    gap: 24px;
}

.contact-form-column,
.contact-guidance {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
}

.contact-form-column .support-section-heading {
    margin-bottom: 19px;
}

.contact-form-column .support-section-heading h2 {
    font-size: 23px;
}

.contact-form-column .support-section-heading>p:last-child {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.form-field {
    display: grid;
    align-content: start;
    gap: 6px;
}

.form-field:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: 400 14px 'Poppins', sans-serif;
}

.contact-form textarea {
    min-height: 136px;
    resize: vertical;
}

.contact-form [aria-invalid="true"] {
    border-color: #dc2626;
}

.field-hint {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.field-error {
    min-height: 18px;
    color: #b91c1c;
    font-size: 11px;
    line-height: 1.5;
}

.contact-submit {
    justify-self: start;
    min-width: 140px;
}

.contact-form-status {
    align-self: center;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.contact-form-status.error {
    color: #b91c1c;
}

.contact-form-status.notice {
    color: #854d0e;
}

.contact-form-status.loading {
    color: var(--primary-dark);
}

.contact-form-status.success {
    color: #15803d;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: .7;
}

.contact-guidance h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.contact-guidance ul {
    display: grid;
    gap: 9px;
    padding-left: 18px;
}

.self-service {
    margin-top: 25px;
    padding: 16px;
    border-radius: 6px;
    background: #eff6ff;
}

.self-service strong {
    font-size: 13px;
}

.self-service a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    text-underline-offset: 3px;
}

.self-service .support-button {
    margin-top: 12px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.audience-grid article {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .75);
}

.audience-grid strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 4px;
}

.audience-grid p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.contact-info-section {
    margin-bottom: 30px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.contact-info-cards article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
}

.contact-info-cards .info-label {
    display: block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.contact-info-cards h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--text);
}

.contact-info-cards p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.guidance-warning {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    line-height: 1.5;
}

.guidance-intro {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

@media (max-width: 768px) {

    .about-page-content,
    .contact-page-content,
    .faq-page-content {
        width: min(100% - 32px, 600px);
        padding-top: 25px;
    }

    .support-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 18px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 27px 0;
    }

    .about-experience,
    .about-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-experience ol {
        justify-content: flex-start;
    }

    .contact-options,
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .about-service-grid,
    .principle-list,
    .contact-form,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .form-field:nth-child(n + 3) {
        grid-column: auto;
    }

    .contact-form-status {
        grid-column: 1;
    }

    .about-purpose,
    .about-experience,
    .contact-form-column,
    .contact-guidance {
        padding: 18px;
    }

    .about-cta {
        padding: 20px;
    }
}

.faq-hero {
    border-bottom: 1px solid rgba(100, 116, 139, .18);
    padding-bottom: 34px;
}

.faq-category {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(100, 116, 139, .18);
}

.faq-category:first-of-type {
    margin-top: 24px;
    border-top: none;
    padding-top: 0;
}

.faq-category .support-section-heading {
    margin-bottom: 16px;
}

.faq-category .faq-list {
    background: rgba(255, 255, 255, .72);
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 0 20px;
}

.faq-category .faq-list details:last-child {
    border-bottom: none;
}

/*==============================
Legal Documents & Policies
==============================*/

.legal-page-content {
    width: min(1000px, 92%);
    margin: 0 auto;
    padding: 40px 0 90px;
}

.legal-hero {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    color: var(--text);
    margin: 8px 0 14px;
    line-height: 1.2;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legal-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.legal-nav-tab {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
}

.legal-nav-tab:hover {
    color: var(--primary);
    background: #e0e7ff;
    border-color: #c7d2fe;
}

.legal-nav-tab.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.legal-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-section h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    margin: 0;
}

.legal-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 10px 0 0;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin: 0;
}

.legal-section ul {
    margin: 0;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-section li {
    font-size: 15px;
    line-height: 1.75;
    color: #475569;
}

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

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.legal-section a:hover {
    color: #1d4ed8;
}

.legal-callout {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 18px 22px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    border-right: 1px solid rgba(226, 232, 240, 0.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.legal-callout strong {
    color: var(--text);
}

@media (max-width: 768px) {
    .legal-page-content {
        padding: 24px 0 60px;
        width: min(100% - 32px, 600px);
    }

    .legal-card {
        padding: 24px 20px;
        border-radius: 16px;
        gap: 26px;
    }

    .legal-section h2 {
        font-size: 18px;
    }

    .legal-meta {
        font-size: 13px;
        gap: 10px;
    }

    .legal-nav-tabs {
        gap: 8px;
    }

    .legal-nav-tab {
        padding: 6px 14px;
        font-size: 12px;
    }
}