/* Terms of Service Optimized CSS */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3263D6;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Base styles */
html {
    -webkit-print-color-adjust: exact;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #0f172a;
    max-width: 65ch;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    line-height: 1.65;
}

/* Layout */
.header {
    margin-bottom: 2rem;
}

.page-body {
    color: #475569;
}

.meta-text {
    color: #6b7280;
}

/* Typography */
.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

h1, h2, h3 {
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #0f172a;
}

h1 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.125rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* Links */
a, a.visited {
    color: #3263D6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ol, ul {
    margin: 0;
    margin-block-start: 0.75em;
    margin-block-end: 1.5rem;
    padding-left: 0;
    line-height: 1.65;
}

ol {
    padding-inline-start: 1.6em;
}

ul {
    padding-inline-start: 1.7em;
}

ol > li, ul > li {
    padding-left: 0.2em;
    margin-bottom: 0.75rem;
}

ul > li {
    list-style: disc;
}

ol.numbered-list {
    counter-reset: item;
    padding-left: 0;
}

ol.numbered-list > li {
    display: block;
    margin-bottom: 0.75rem;
    padding-left: 0;
}

ol.numbered-list > li::before {
    content: counter(item) ". ";
    counter-increment: item;
    font-weight: normal;
    margin-right: 0.5rem;
}

.bulleted-list {
    list-style-type: disc;
}

.bulleted-list li {
    margin-bottom: 0.75rem;
}

/* Strong text */
strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* Layout */
.header {
    margin-bottom: 2rem;
}

.page-body {
    color: rgb(55, 53, 47);
}

/* Responsive design */
@media (max-width: 640px) {
    body {
        padding: 1.5rem 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.125rem;
    }
}

@media only print {
    body {
        margin: 0;
        max-width: none;
    }
}