:root {
    --bg-dark: #030712;
    --bg-card: rgba(255, 255, 255, 0.02);
    --primary-color: #8b5cf6;
    --secondary-color: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(10, 10, 15, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-hover-glow {
    border-color: var(--glass-border);
    transition: all 0.3s ease;
}

.btn-hover-glow:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: clamp(2.15rem, 4.4vw, 3.6rem);
    line-height: 1.12;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(10,10,15,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

/* Glass Cards (Packages & Features) */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Feature Icons */
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(236,72,153,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Package Pricing */
.package-price {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.package-popular {
    border: 1px solid var(--primary-color);
    position: relative;
}

.package-popular::before {
    content: 'En Popüler';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--glass-border);
}

.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color) !important;
}

.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: var(--secondary-color) !important;
}

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
    color: white;
}

/* Utils */
.main-wrapper {
    flex: 1;
}

/* User Panel */
.user-panel {
    padding: 132px 0 80px;
}

.user-panel--compact {
    padding-bottom: 72px;
}

.user-panel__container {
    max-width: 1180px;
}

.user-panel--compact .user-panel__container {
    max-width: 1040px;
}

.user-panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.user-panel__intro {
    min-width: 0;
}

.user-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: #a5b4fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.user-panel__header h1 {
    margin: 0;
    color: #fff;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.user-panel__header p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    max-width: 680px;
}

.user-panel .btn,
.user-modal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.user-panel__primary-action,
.user-panel__secondary-action {
    flex: 0 0 auto;
    min-height: 42px;
    border-radius: 8px;
    padding: 0.58rem 1rem;
}

.user-panel__secondary-action {
    border-color: rgba(255, 255, 255, 0.16);
    color: #e5e7eb;
}

.user-panel__status {
    align-self: center;
    flex: 0 0 auto;
}

.user-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
}

.user-back-link:hover {
    color: #fff;
}

.user-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.user-sidebar,
.user-content-stack {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.user-card {
    min-width: 0;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.profile-summary {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(165, 180, 252, 0.22);
    border-radius: 8px;
    color: #c4b5fd;
    font-size: 1.6rem;
}

.profile-summary__text {
    min-width: 0;
}

.profile-summary__text h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-summary__text span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.user-info-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.user-info-row {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.user-info-row dt,
.user-info-row dd {
    margin: 0;
    min-width: 0;
}

.user-info-row dt {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.user-info-row dd {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.user-card__action {
    width: 100%;
    min-height: 42px;
    margin-top: 20px;
    border-radius: 8px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-heading__title {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.section-heading__title h2 {
    margin: 0;
    color: #fff;
    font-size: 1.04rem;
    font-weight: 800;
}

.section-heading__title p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 8px;
    color: #7dd3fc;
    font-size: 1.2rem;
}

.status-pill,
.user-limit-badge,
.user-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.status-pill--success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(74, 222, 128, 0.24);
}

.status-pill--danger {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.24);
}

.status-pill--info {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.13);
    border: 1px solid rgba(96, 165, 250, 0.24);
}

.status-pill--muted {
    color: #d1d5db;
    background: rgba(148, 163, 184, 0.11);
    border: 1px solid rgba(203, 213, 225, 0.18);
}

.user-limit-badge,
.user-count-badge {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.device-list,
.support-list,
.support-table-list {
    display: grid;
    gap: 12px;
}

.device-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.032);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.device-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 1.15rem;
}

.device-content {
    min-width: 0;
}

.device-content h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.device-content span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.device-action {
    margin: 0;
}

.icon-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e5e7eb;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.icon-button--danger:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fecaca;
}

.support-ticket-link,
.support-ticket-row {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.032);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.support-ticket-link:hover,
.support-ticket-row:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(125, 211, 252, 0.28);
}

.support-ticket-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.support-ticket-link__main {
    min-width: 0;
}

.support-ticket-link h3,
.support-ticket-row__subject {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.support-ticket-link span:not(.status-pill),
.support-ticket-row__id,
.support-ticket-row__date {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.support-ticket-row {
    display: grid;
    grid-template-columns: minmax(54px, 72px) minmax(0, 1fr) auto minmax(126px, auto) 34px;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.support-ticket-row__id {
    font-weight: 800;
}

.support-ticket-row__date {
    white-space: nowrap;
}

.support-ticket-row__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 150px;
    padding: 28px 18px;
    color: var(--text-secondary);
    text-align: center;
    background: rgba(255, 255, 255, 0.026);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.empty-state--compact {
    min-height: 118px;
}

.empty-state i {
    color: #a5b4fc;
    font-size: 1.8rem;
}

.empty-state p {
    margin: 0;
}

.user-empty-action,
.user-inline-action {
    border-radius: 8px;
}

.user-alert {
    border-radius: 8px;
}

.user-modal .modal-content {
    background: #101018;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
}

.user-modal .modal-header,
.user-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.support-thread-card {
    padding: 20px;
}

.ticket-thread {
    display: grid;
    gap: 18px;
    max-height: 560px;
    max-height: min(62vh, 560px);
    overflow-y: auto;
    padding-right: 6px;
}

.ticket-message {
    display: flex;
    min-width: 0;
}

.ticket-message--user {
    justify-content: flex-end;
}

.ticket-bubble {
    max-width: min(72%, 720px);
    padding: 16px;
    border-radius: 8px;
    min-width: 0;
}

.ticket-bubble--admin {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.ticket-bubble--user {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-bubble__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.ticket-bubble__header time {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.ticket-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f8fafc;
    font-weight: 800;
    font-size: 0.9rem;
}

.ticket-author--admin {
    color: #bfdbfe;
}

.ticket-bubble__body {
    color: #e5e7eb;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ticket-reply-card {
    margin-top: 20px;
}

.ticket-reply-card__footer {
    display: flex;
    justify-content: flex-end;
}

/* Legal Pages */
.legal-page {
    padding: 132px 0 84px;
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0));
    pointer-events: none;
}

.legal-page__container {
    position: relative;
    z-index: 1;
}

.legal-hero {
    max-width: 920px;
    margin-bottom: 34px;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0;
    color: #fff;
    max-width: 860px;
    font-size: clamp(1.75rem, 2.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.12;
}

.legal-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.75;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    color: #dbeafe;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
}

.legal-language-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.legal-language-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-weight: 800;
}

.legal-language-switch a:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(125, 211, 252, 0.35);
}

.legal-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.legal-toc,
.legal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.legal-toc {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 4px;
    padding: 18px;
}

.legal-toc h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.legal-toc__secondary {
    margin-top: 16px !important;
}

.legal-toc a {
    display: block;
    padding: 9px 10px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.92rem;
}

.legal-toc a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.legal-content {
    padding: 30px;
}

.legal-section {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scroll-margin-top: 110px;
}

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

.legal-section h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.legal-section h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.legal-section p {
    margin: 0 0 14px;
    color: #cbd5e1;
    line-height: 1.78;
}

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

.legal-section a:not(.legal-contact-link) {
    color: #7dd3fc;
}

.legal-section--english {
    scroll-margin-top: 110px;
}

.legal-summary-card {
    margin-top: 18px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 8px;
}

.legal-summary-card .legal-list {
    margin-bottom: 0;
}

.legal-divider {
    margin: 34px 0;
    border: 0;
    border-top: 1px solid rgba(125, 211, 252, 0.24);
    opacity: 1;
}

.legal-list {
    display: grid;
    gap: 10px;
    padding-left: 1.15rem;
    margin: 0 0 16px;
    color: #cbd5e1;
    line-height: 1.65;
}

.legal-list strong {
    color: #f8fafc;
}

.legal-section--contact {
    background: rgba(14, 165, 233, 0.07);
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 8px;
    padding: 22px;
}

.legal-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 14px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    font-weight: 800;
}

.legal-contact-link:hover {
    color: #fff;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.22);
}

.legal-note {
    margin-top: 16px !important;
    color: #94a3b8 !important;
    font-size: 0.92rem;
}

.account-delete-grid {
    grid-template-columns: 320px minmax(0, 1fr);
}

.account-delete-info p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.65;
}

.account-delete-form {
    margin-top: 20px;
}

.account-delete-form .form-control,
.account-delete-form .form-select {
    color: #fff;
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(148, 163, 184, 0.32);
    border-radius: 8px;
}

.account-delete-form .form-control:focus,
.account-delete-form .form-select:focus {
    color: #fff;
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(125, 211, 252, 0.72);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.18);
}

.account-delete-form .form-control[readonly] {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.46);
}

.account-delete-confirm {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    color: #dbeafe;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 8px;
    line-height: 1.55;
}

.account-delete-confirm input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.account-delete-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 800;
}

.account-delete-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(3, 7, 18, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .user-dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .account-delete-grid {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .user-panel {
        padding: 112px 0 56px;
    }

    .legal-page {
        padding: 112px 0 58px;
    }

    .legal-hero p {
        font-size: 1rem;
    }

    .legal-hero h1 {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
    }

    .legal-content {
        padding: 20px;
    }

    .legal-section h2 {
        font-size: 1.18rem;
    }

    .user-panel__header {
        display: grid;
        align-items: start;
        gap: 18px;
        margin-bottom: 22px;
    }

    .user-panel__header h1 {
        font-size: 1.68rem;
    }

    .user-panel__primary-action,
    .user-panel__secondary-action {
        width: 100%;
    }

    .user-panel__status {
        justify-self: start;
    }

    .user-sidebar {
        grid-template-columns: 1fr;
    }

    .user-card {
        padding: 18px;
    }

    .section-heading {
        display: grid;
        gap: 14px;
    }

    .section-heading__title {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .section-icon {
        width: 38px;
        height: 38px;
    }

    .user-info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .user-info-row dd {
        text-align: left;
    }

    .device-item {
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
    }

    .device-icon {
        width: 38px;
        height: 38px;
    }

    .device-action {
        grid-column: 2;
        justify-self: start;
    }

    .support-ticket-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .support-ticket-row__id {
        grid-column: 1;
    }

    .support-ticket-row .status-pill {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .support-ticket-row__subject {
        grid-column: 1 / -1;
    }

    .support-ticket-row__date {
        grid-column: 1;
        white-space: normal;
    }

    .support-ticket-row__icon {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .ticket-thread {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .ticket-bubble {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .profile-summary {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
    }

    .support-ticket-link {
        grid-template-columns: 1fr;
    }

    .support-ticket-link .status-pill {
        justify-self: start;
    }

    .ticket-bubble__header time {
        width: 100%;
        margin-left: 0;
    }
}
