/* Shared styles for help, legal and support pages — water-polo-stats.com */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', Arial, sans-serif; background: #ffffff; }

/* Header */
.page-header { background: #0f2845; padding: 0 20px; height: 56px; display: flex; align-items: center; }
.page-header-inner { max-width: 860px; margin: 0 auto; width: 100%; }
.home-link { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; font-family: 'Montserrat', Arial, sans-serif; font-size: 1rem; font-weight: 700; }
.home-link:hover { opacity: 0.85; text-decoration: none; }
.home-link img { width: 32px; height: 32px; border-radius: 8px; }

/* Layout & type */
.container { max-width: 860px; margin: 0 auto; padding: 48px 32px 64px; }
h1 { font-family: 'Montserrat', Arial, sans-serif; font-size: 2rem; color: #0f2845; margin-bottom: 8px; text-align: center; }
h2 { font-family: 'Montserrat', Arial, sans-serif; font-size: 1.4rem; color: #1a3a5c; margin-top: 36px; margin-bottom: 12px; scroll-margin-top: 16px; }
h3 { font-family: 'Montserrat', Arial, sans-serif; font-size: 1.1rem; color: #0077b6; margin-top: 24px; margin-bottom: 10px; scroll-margin-top: 16px; }
p { font-size: 1rem; color: #333; line-height: 1.6; margin-bottom: 16px; }
ul, ol { color: #333; line-height: 1.6; margin-bottom: 16px; padding-left: 25px; }
li { margin-bottom: 8px; }
strong { color: #0f2845; }
a { color: #0077b6; text-decoration: none; }
a:hover { text-decoration: underline; }
.subheading { text-align: center; color: #666; font-size: 1rem; margin-bottom: 32px; }
.note { font-size: 0.88rem; color: #666; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.table-wrap table { margin: 0; }
th { background: #0f2845; color: white; padding: 10px 14px; text-align: left; font-family: 'Montserrat', Arial, sans-serif; vertical-align: bottom; }
td { padding: 9px 14px; border-bottom: 1px solid #e8ecf0; color: #333; vertical-align: top; }
tr:nth-child(even) td { background: #f8f9fb; }
td.center, th.center { text-align: center; }

/* Callouts */
.highlight-box { background-color: #f0f6fc; border-left: 3px solid #0077b6; padding: 16px; margin: 20px 0; border-radius: 4px; }
.highlight-box ul, .highlight-box p:last-child { margin-bottom: 0; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; vertical-align: middle; margin-left: 6px; font-family: 'Montserrat', Arial, sans-serif; }
.badge-sub { background: #0077b6; color: #fff; }
.badge-beta { background: #fff3e0; color: #b45309; border: 1px solid #f5c58a; }
.url-example { background: #f8f9fb; border: 1px solid #dde5ed; border-radius: 6px; padding: 10px 16px; font-family: monospace; font-size: 0.95rem; color: #1a3a5c; margin: 12px 0 16px; overflow-wrap: anywhere; }

/* Media */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; margin: 24px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 8px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #e3e8ee; box-shadow: 0 4px 16px rgba(0,0,0,0.06); display: block; }
.shots figcaption { font-size: 0.85rem; color: #666; text-align: center; margin-top: 8px; }
.mp-banner { display: block; margin: 0 auto 32px; max-width: 234px; }
.step-icon { display: inline-block; vertical-align: middle; height: 24px; margin: 0 4px -3px; border-radius: 4px; }

/* Calls to action */
.cta-wrap { text-align: center; margin: 32px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-button { display: inline-block; background: #0077b6; color: #ffffff; padding: 13px 30px; border-radius: 26px; text-decoration: none; font-weight: bold; font-size: 1rem; transition: background 0.25s; }
.cta-button:hover { background: #005f8e; text-decoration: none; }
.cta-button.secondary { background: #ffffff; color: #0077b6; border: 2px solid #0077b6; padding: 11px 28px; }
.cta-button.secondary:hover { background: #f0f6fc; }

/* Shared navigation & footer */
.help-nav { text-align: center; margin: 16px 0 32px; font-size: 0.9rem; color: #bbb; padding-bottom: 24px; border-bottom: 1px solid #eee; line-height: 2; }
.help-nav a { color: #0077b6; margin: 0 6px; font-weight: bold; white-space: nowrap; }
.help-nav a:hover { text-decoration: underline; }
.help-nav span.current { color: #1a3a5c; margin: 0 6px; font-weight: bold; white-space: nowrap; }
.footer-links { text-align: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid #eee; font-size: 0.82rem; color: #aaa; }
.footer-links a { color: #aaa; margin: 0 6px; }
.footer-links a:hover { text-decoration: underline; }

/* Phones */
@media (max-width: 640px) {
    .container { padding: 32px 16px 48px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }
    .shots { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
    th, td { padding: 8px 10px; }
}
