/* public/css/terms.css - Terms of Service page styling */

/* Hero Section */
.terms-hero {
    padding: 140px 0 80px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb i {
    font-size: 10px;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    display: inline-flex;
}

/* Content Section */
.terms-content {
    padding: var(--section-padding);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    padding: 30px 0;
    height: fit-content;
}

.toc-header {
    padding: 0 30px 20px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 20px;
}

.toc-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    margin: 0;
}

.toc-header h3 i {
    color: var(--primary-color);
}

.toc-nav {
    display: flex;
    flex-direction: column;
}

.toc-link {
    display: block;
    padding: 12px 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: var(--transition-normal);
    border-left: 3px solid transparent;
}

.toc-link:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

.toc-link.active {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--primary-color);
}

/* Main Content */
.terms-main {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    padding: 40px;
}

/* Introduction */
.terms-intro {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-primary);
}

.terms-intro h2 {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: 20px;
}

.terms-intro p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.important-note {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

.important-note i {
    color: #f59e0b;
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.important-note strong {
    color: var(--text-primary);
}

.important-note p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Terms Sections */
.terms-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-primary);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: 24px;
    font-weight: 700;
}

.section-number {
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 800;
    flex-shrink: 0;
}

.section-content h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    margin: 32px 0 16px;
    font-weight: 600;
}

.section-content h4 {
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    margin: 24px 0 12px;
    font-weight: 600;
}

.section-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.section-content ul {
    margin: 16px 0;
    padding-left: 0;
}

.section-content li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-content li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.feature-item i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    margin: 0 auto 16px;
}

.feature-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* Service Note */
.service-note {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 24px 0;
}

.service-note h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: var(--font-size-base);
}

/* License Table */
.license-table {
    margin: 24px 0;
    overflow-x: auto;
}

.license-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.license-table th,
.license-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-primary);
}

.license-table th {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
}

.license-table td {
    color: var(--text-secondary);
}

.license-table tr:last-child td {
    border-bottom: none;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.right-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.right-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.right-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.right-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* Prohibition Warning */
.prohibition-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.prohibition-warning i {
    color: #ef4444;
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.prohibition-warning h4 {
    color: #ef4444;
    margin: 0;
    font-size: var(--font-size-lg);
}

/* Prohibited List */
.prohibited-list {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.prohibited-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.prohibited-item i {
    color: #ef4444;
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.prohibited-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.prohibited-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* Consequence Note */
.consequence-note {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 24px 0;
}

.consequence-note h4 {
    color: #ef4444;
    margin-bottom: 16px;
    font-size: var(--font-size-base);
}

/* Security Measures */
.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.security-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.security-item i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    margin: 0 auto 16px;
}

.security-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.security-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.payment-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.payment-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    margin: 0 auto 12px;
}

.payment-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.payment-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* Refund Policy */
.refund-policy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.refund-condition,
.no-refund-condition {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.refund-condition {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.no-refund-condition {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.refund-condition > div,
.no-refund-condition > div {
    display: flex;
    gap: 12px;
}

.refund-condition i {
    color: #22c55e;
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.no-refund-condition i {
    color: #ef4444;
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.refund-condition h4 {
    color: #22c55e;
    margin-bottom: 12px;
    font-size: var(--font-size-base);
}

.no-refund-condition h4 {
    color: #ef4444;
    margin-bottom: 12px;
    font-size: var(--font-size-base);
}

/* Refund Process */
.refund-process {
    display: flex;
    gap: 20px;
    margin: 24px 0;
}

.process-step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.step-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* Support Channels */
.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.support-channel {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.support-channel i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    margin: 0 auto 16px;
}

.support-channel h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.support-channel p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 8px;
}

.support-time {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* Support Hours */
.support-hours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.hours-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.hours-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.hours-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.hours-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* Support Scope */
.support-scope {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.included-support,
.excluded-support {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.included-support {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.excluded-support {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.included-support h4 {
    color: #22c55e;
    margin-bottom: 16px;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.excluded-support h4 {
    color: #ef4444;
    margin-bottom: 16px;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Disclaimer Warning */
.disclaimer-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.disclaimer-warning i {
    color: #f59e0b;
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.disclaimer-warning h4 {
    color: #f59e0b;
    margin-bottom: 8px;
    font-size: var(--font-size-lg);
}

.disclaimer-warning p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Liability Limits */
.liability-limits {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.limit-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.limit-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.limit-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.limit-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* User Responsibility */
.user-responsibility {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 24px 0;
}

/* Termination Reasons */
.termination-reasons {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.reason-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.reason-item i {
    color: #ef4444;
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.reason-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.reason-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* Termination Effects */
.termination-effects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.effect-item {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.effect-item.immediate {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.effect-item.ongoing {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
}

.effect-item h4 {
    margin-bottom: 16px;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.effect-item.immediate h4 {
    color: #ef4444;
}

.effect-item.ongoing h4 {
    color: #f59e0b;
}

/* Notification Methods */
.notification-methods {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.method-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.method-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.method-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.method-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* Acceptance Note */
.acceptance-note {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.acceptance-note i {
    color: #3b82f6;
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.acceptance-note p {
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.6;
}

.acceptance-note p:last-child {
    margin-bottom: 0;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.contact-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    word-break: break-all;
}

/* Response Time */
.response-time {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.response-time i {
    color: #22c55e;
    font-size: var(--font-size-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.response-time h4 {
    color: #22c55e;
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.response-time p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Terms Footer */
.terms-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-primary);
}

.update-info {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.update-info i {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-top: 2px;
    flex-shrink: 0;
}

.update-info h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: var(--font-size-lg);
}

.update-info p {
    color: var(--text-secondary);
    margin: 4px 0;
    line-height: 1.5;
}

.legal-note {
    text-align: center;
    padding: 20px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
}

.legal-note p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.legal-note i {
    color: #7c3aed;
    font-size: var(--font-size-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .toc-sidebar {
        position: static;
        order: 2;
    }
    
    .terms-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .terms-main {
        padding: 24px;
    }
    
    .toc-sidebar {
        padding: 20px 0;
    }
    
    .toc-header {
        padding: 0 20px 16px;
    }
    
    .toc-link {
        padding: 10px 20px;
        font-size: var(--font-size-xs);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .refund-policy {
        grid-template-columns: 1fr;
    }
    
    .refund-process {
        flex-direction: column;
        gap: 16px;
    }
    
    .support-hours {
        grid-template-columns: 1fr;
    }
    
    .support-scope {
        grid-template-columns: 1fr;
    }
    
    .termination-effects {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .license-table {
        font-size: var(--font-size-sm);
    }
    
    .license-table th,
    .license-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .terms-main {
        padding: 16px;
    }
    
    .terms-section h2 {
        font-size: var(--font-size-xl);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-number {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-base);
    }
    
    .important-note {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .support-channels {
        grid-template-columns: 1fr;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
    
    .legal-note p {
        flex-direction: column;
        gap: 8px;
    }
}

/* Print Styles */
@media print {
    .terms-hero::before,
    .toc-sidebar {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .terms-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .terms-main {
        box-shadow: none;
        border: none;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Highlight target section */
.terms-section:target {
    background: rgba(0, 212, 255, 0.05);
    border-radius: var(--radius-lg);
    margin: -10px;
    padding: 40px 10px;
    transition: background 0.3s ease;
}